Commit 6da16ff85aaa45a49ab5f7fa6f24fd5f7747bbc6

Authored by zhangxiaowen
1 parent cb954db3

no message

Example/CNLiveEnvironment/XWAppDelegate.m
... ... @@ -13,11 +13,6 @@
13 13  
14 14 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
15 15 {
16   -
17   - NSLog(@"%@",EnvironmentDesc);
18   - NSLog(@"%@",DisplayName);
19   -
20   - [CNLiveEnvironmentManager setEnvironment:CNLiveDebugInHouse];
21 16 return YES;
22 17 }
23 18  
... ...
Example/CNLiveEnvironment/XWViewController.m
... ... @@ -8,6 +8,7 @@
8 8  
9 9 #import "XWViewController.h"
10 10 #import "CNLiveEnvironment.h"
  11 +#import "CNLiveEnvironmentServiceProtocol.h"
11 12  
12 13 @interface XWViewController ()
13 14  
... ... @@ -21,8 +22,8 @@
21 22 // Do any additional setup after loading the view, typically from a nib.
22 23 NSLog(@"%@",EnvironmentDesc);
23 24 NSLog(@"%@",DisplayName);
24   -
25   - [CNLiveEnvironmentManager setEnvironment:CNLiveProductionAppStore];
  25 + id<CNLiveEnvironmentServiceProtocol> environment = [[BeeHive shareInstance] createService:@protocol(CNLiveEnvironmentServiceProtocol)];
  26 + [environment setEnvironment:CNLiveProductionAppStore];
26 27 NSLog(@"%@",EnvironmentDesc);
27 28 NSLog(@"%@",DisplayName);
28 29  
... ...