Skip to content

Commit 4a22fb1

Browse files
jaeoptthomaszurkan-optimizely
authored andcommitted
cleanup demo apps (#171)
* cleanup demo apps * cleanup demo apps
1 parent 5f5b319 commit 4a22fb1

13 files changed

+9
-235
lines changed

DemoObjCApp/AppDelegate.m

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#import "AppDelegate.h"
1818
#import "VariationViewController.h"
19-
#import "FailureViewController.h"
2019
#import "CustomLogger.h"
2120

2221
@import Optimizely;
@@ -65,7 +64,6 @@ -(void)initializeOptimizelySDKAsynchronous {
6564
NSLog(@"Optimizely SDK initialized successfully!");
6665
} else {
6766
NSLog(@"Optimizely SDK initiliazation failed: %@", error.localizedDescription);
68-
self.optimizely = nil;
6967
}
7068

7169
[self startWithRootViewController];
@@ -76,7 +74,6 @@ -(void)initializeOptimizelySDKSynchronous {
7674
NSString *localDatafilePath = [[NSBundle mainBundle] pathForResource:kOptimizelyDatafileName ofType:@"json"];
7775
if (localDatafilePath == nil) {
7876
NSAssert(false, @"Local datafile cannot be found");
79-
self.optimizely = nil;
8077
return;
8178
}
8279

@@ -86,15 +83,13 @@ -(void)initializeOptimizelySDKSynchronous {
8683

8784
if (datafileJSON == nil) {
8885
NSLog(@"Invalid JSON format");
89-
self.optimizely = nil;
9086
} else {
9187
NSError *error;
9288
BOOL status = [self.optimizely startWithDatafile:datafileJSON error:&error];
9389
if (status) {
9490
NSLog(@"Optimizely SDK initialized successfully!");
9591
} else {
9692
NSLog(@"Optimizely SDK initiliazation failed: %@", error.localizedDescription);
97-
self.optimizely = nil;
9893
}
9994
}
10095

@@ -150,7 +145,6 @@ -(void)initializeOptimizelySDKWithCustomization {
150145
NSLog(@"Optimizely SDK initialized successfully!");
151146
} else {
152147
NSLog(@"Optimizely SDK initiliazation failed: %@", error.localizedDescription);
153-
self.optimizely = nil;
154148
}
155149

156150
[self startWithRootViewController];
@@ -166,7 +160,7 @@ -(void)startWithRootViewController {
166160
userId:self.userId
167161
attributes:self.attributes
168162
error:&error];
169-
163+
170164
if (variationKey != nil) {
171165
[self openVariationViewWithVariationKey:variationKey];
172166
} else {

DemoObjCApp/DemoObjcApp.xcodeproj/project.pbxproj

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@
2525
6E9681B221EEA3D8009B7FEC /* ProximaNova-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = 6E9681A921EEA3D8009B7FEC /* ProximaNova-Regular.otf */; };
2626
6E9681B321EEA3D8009B7FEC /* ProximaNova-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = 6E9681A921EEA3D8009B7FEC /* ProximaNova-Regular.otf */; };
2727
6E9681BA21EEB361009B7FEC /* VariationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6EB8456521EE5DE3005346CC /* VariationViewController.m */; };
28-
6E9681BB21EEB361009B7FEC /* FailureViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6EB8456721EE5DE3005346CC /* FailureViewController.m */; };
29-
6E9681BC21EEB361009B7FEC /* SplashScreenViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6EB8456921EE5DE3005346CC /* SplashScreenViewController.m */; };
3028
6E9681BD21EEB364009B7FEC /* VariationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6EB8456521EE5DE3005346CC /* VariationViewController.m */; };
31-
6E9681BE21EEB364009B7FEC /* FailureViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6EB8456721EE5DE3005346CC /* FailureViewController.m */; };
32-
6E9681BF21EEB364009B7FEC /* SplashScreenViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6EB8456921EE5DE3005346CC /* SplashScreenViewController.m */; };
3329
6E9681D821EFA5B2009B7FEC /* CustomLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = 6E9681D721EFA5B2009B7FEC /* CustomLogger.m */; };
3430
6E9681D921EFA5B2009B7FEC /* CustomLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = 6E9681D721EFA5B2009B7FEC /* CustomLogger.m */; };
3531
6EB8456B21EE5DE3005346CC /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6EB8456421EE5DE3005346CC /* AppDelegate.m */; };
@@ -178,13 +174,9 @@
178174
6E9681A921EEA3D8009B7FEC /* ProximaNova-Regular.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "ProximaNova-Regular.otf"; sourceTree = "<group>"; };
179175
6E9681D421EFA5B2009B7FEC /* CustomLogger.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomLogger.h; sourceTree = "<group>"; };
180176
6E9681D721EFA5B2009B7FEC /* CustomLogger.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomLogger.m; sourceTree = "<group>"; };
181-
6EB8456321EE5DE3005346CC /* SplashScreenViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SplashScreenViewController.h; sourceTree = "<group>"; };
182177
6EB8456421EE5DE3005346CC /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
183178
6EB8456521EE5DE3005346CC /* VariationViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VariationViewController.m; sourceTree = "<group>"; };
184179
6EB8456621EE5DE3005346CC /* VariationViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VariationViewController.h; sourceTree = "<group>"; };
185-
6EB8456721EE5DE3005346CC /* FailureViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FailureViewController.m; sourceTree = "<group>"; };
186-
6EB8456821EE5DE3005346CC /* FailureViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FailureViewController.h; sourceTree = "<group>"; };
187-
6EB8456921EE5DE3005346CC /* SplashScreenViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SplashScreenViewController.m; sourceTree = "<group>"; };
188180
6EB8456A21EE5DE3005346CC /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
189181
6EF7498E21E404BB008B22A0 /* DemoObjciOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DemoObjciOS.app; sourceTree = BUILT_PRODUCTS_DIR; };
190182
6EF7499F21E404BC008B22A0 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
@@ -307,10 +299,6 @@
307299
6EB8456421EE5DE3005346CC /* AppDelegate.m */,
308300
6EB8456621EE5DE3005346CC /* VariationViewController.h */,
309301
6EB8456521EE5DE3005346CC /* VariationViewController.m */,
310-
6EB8456821EE5DE3005346CC /* FailureViewController.h */,
311-
6EB8456721EE5DE3005346CC /* FailureViewController.m */,
312-
6EB8456321EE5DE3005346CC /* SplashScreenViewController.h */,
313-
6EB8456921EE5DE3005346CC /* SplashScreenViewController.m */,
314302
6E96812021EE957B009B7FEC /* Customization */,
315303
6E96817721EEA321009B7FEC /* DemoObjciOS */,
316304
6E96817321EEA321009B7FEC /* DemoObjctvOS */,
@@ -640,9 +628,7 @@
640628
6E9681BA21EEB361009B7FEC /* VariationViewController.m in Sources */,
641629
6EB8456B21EE5DE3005346CC /* AppDelegate.m in Sources */,
642630
6E9681D821EFA5B2009B7FEC /* CustomLogger.m in Sources */,
643-
6E9681BB21EEB361009B7FEC /* FailureViewController.m in Sources */,
644631
6E4DD7F721E51E5500B0C2C7 /* main.m in Sources */,
645-
6E9681BC21EEB361009B7FEC /* SplashScreenViewController.m in Sources */,
646632
);
647633
runOnlyForDeploymentPostprocessing = 0;
648634
};
@@ -653,9 +639,7 @@
653639
6E9681BD21EEB364009B7FEC /* VariationViewController.m in Sources */,
654640
6EB8456C21EE5DE3005346CC /* AppDelegate.m in Sources */,
655641
6E9681D921EFA5B2009B7FEC /* CustomLogger.m in Sources */,
656-
6E9681BE21EEB364009B7FEC /* FailureViewController.m in Sources */,
657642
6E4DD7F821E51E5600B0C2C7 /* main.m in Sources */,
658-
6E9681BF21EEB364009B7FEC /* SplashScreenViewController.m in Sources */,
659643
);
660644
runOnlyForDeploymentPostprocessing = 0;
661645
};

DemoObjCApp/FailureViewController.h

Lines changed: 0 additions & 25 deletions
This file was deleted.

DemoObjCApp/FailureViewController.m

Lines changed: 0 additions & 29 deletions
This file was deleted.

DemoObjCApp/SplashScreenViewController.h

Lines changed: 0 additions & 25 deletions
This file was deleted.

DemoObjCApp/SplashScreenViewController.m

Lines changed: 0 additions & 33 deletions
This file was deleted.

DemoSwiftApp/AppDelegate.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
6363
switch result {
6464
case .failure(let error):
6565
print("Optimizely SDK initiliazation failed: \(error)")
66-
self.optimizely = nil
6766
case .success:
6867
print("Optimizely SDK initialized successfully!")
6968
}
@@ -87,7 +86,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
8786
print("Optimizely SDK initialized successfully!")
8887
} catch {
8988
print("Optimizely SDK initiliazation failed: \(error)")
90-
optimizely = nil
9189
}
9290

9391
startWithRootViewController()
@@ -157,7 +155,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
157155
switch result {
158156
case .failure(let error):
159157
print("Optimizely SDK initiliazation failed: \(error)")
160-
self.optimizely = nil
161158
case .success:
162159
print("Optimizely SDK initialized successfully!")
163160
}

DemoSwiftApp/DemoSwiftApp-Bridging-Header.h

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)