Commit f160a21379b080f3e347b596a6b172038b947bed

Authored by zhangxiaowen
1 parent abbd91f6

no message

CNLiveEnvironment/Classes/CNLiveEnvironmentManager.m
... ... @@ -415,10 +415,4 @@ static CNLiveEnvironmentManager *_instance = nil;
415 415  
416 416 }
417 417  
418   -#pragma mark - CNLiveEnvironmentServiceProtocol
419   -- (void)setEnvironment:(CNLiveEnvironmentType)isEnvironment{
420   - [CNLiveEnvironmentManager setEnvironment:isEnvironment];
421   -
422   -}
423   -
424 418 @end
... ...
Example/CNLiveEnvironment/XWAppDelegate.m
... ... @@ -13,6 +13,14 @@
13 13  
14 14 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
15 15 {
  16 +
  17 + NSLog(@"%@",EnvironmentDesc);
  18 + NSLog(@"%d",TestEnvironment);
  19 +
  20 + [CNLiveEnvironmentManager setEnvironment:CNLiveProductionInHouse];
  21 + NSLog(@"%@",EnvironmentDesc);
  22 + NSLog(@"%d",TestEnvironment);
  23 +
16 24 return YES;
17 25 }
18 26  
... ...
Example/CNLiveEnvironment/XWViewController.m
... ... @@ -20,12 +20,12 @@
20 20 [super viewDidLoad];
21 21 // Do any additional setup after loading the view, typically from a nib.
22 22 NSLog(@"%@",EnvironmentDesc);
23   - NSLog(@"%@",DisplayName);
  23 + NSLog(@"%d",TestEnvironment);
  24 +
24 25 [CNLiveEnvironmentManager setEnvironment:CNLiveProductionAppStore];
25 26 NSLog(@"%@",EnvironmentDesc);
26   - NSLog(@"%@",DisplayName);
  27 + NSLog(@"%d",TestEnvironment);
27 28  
28   -
29 29 }
30 30  
31 31 - (void)didReceiveMemoryWarning
... ...