Commit 1822bd958365df4756425390bedccc760142fb8d

Authored by zhangxiaowen
1 parent 4f53f9ec

no message

CNLiveLoginModule.podspec
@@ -42,5 +42,7 @@ TODO: 网家家-登录模块. @@ -42,5 +42,7 @@ TODO: 网家家-登录模块.
42 42
43 # s.public_header_files = 'Pod/Classes/**/*.h' 43 # s.public_header_files = 'Pod/Classes/**/*.h'
44 # s.frameworks = 'UIKit', 'MapKit' 44 # s.frameworks = 'UIKit', 'MapKit'
45 - # s.dependency 'AFNetworking', '~> 2.3' 45 +
  46 + s.dependency 'CNLiveServices'
  47 +
46 end 48 end
CNLiveLoginModule/Classes/Module/CNLiveLoginModule.m
@@ -7,11 +7,10 @@ @@ -7,11 +7,10 @@
7 // 7 //
8 8
9 #import "CNLiveLoginModule.h" 9 #import "CNLiveLoginModule.h"
10 -//#import "BeeHive.h" 10 +#import "CNLiveServices.h"
11 11
12 -//@BeeHiveMod(CNLiveLoginModule)  
13 -//@interface CNLiveLoginModule()<BHModuleProtocol>  
14 -@interface CNLiveLoginModule() 12 +@BeeHiveMod(CNLiveLoginModule)
  13 +@interface CNLiveLoginModule()<BHModuleProtocol>
15 14
16 @end 15 @end
17 16
@@ -29,21 +28,21 @@ @@ -29,21 +28,21 @@
29 28
30 } 29 }
31 30
32 -//- (void)modSetUp:(BHContext *)context {  
33 -// switch (context.env) {  
34 -// case BHEnvironmentDev:  
35 -// //....初始化开发环境  
36 -// break;  
37 -// case BHEnvironmentProd:  
38 -// //....初始化生产环境  
39 -// default:  
40 -// break;  
41 -// }  
42 -//  
43 -//}  
44 -//  
45 -//- (void)modInit:(BHContext *)context {  
46 -//  
47 -//} 31 +- (void)modSetUp:(BHContext *)context {
  32 + switch (context.env) {
  33 + case BHEnvironmentDev:
  34 + //....初始化开发环境
  35 + break;
  36 + case BHEnvironmentProd:
  37 + //....初始化生产环境
  38 + default:
  39 + break;
  40 + }
  41 +
  42 +}
  43 +
  44 +- (void)modInit:(BHContext *)context {
  45 +
  46 +}
48 47
49 @end 48 @end
CNLiveLoginModule/Classes/Module/CNLiveLoginService.m
@@ -7,29 +7,47 @@ @@ -7,29 +7,47 @@
7 // 7 //
8 8
9 #import "CNLiveLoginService.h" 9 #import "CNLiveLoginService.h"
  10 +#import "CNLiveServices.h"
10 11
11 -//@BeeHiveService(CNLiveLoginServiceProtocol,CNLiveLoginService)  
12 -//@interface CNLiveLoginService ()<CNLiveLoginServiceProtocol>  
13 -@interface CNLiveLoginService () 12 +@BeeHiveService(CNLiveLoginServiceProtocol,CNLiveLoginService)
  13 +@interface CNLiveLoginService ()<CNLiveLoginServiceProtocol>
14 14
15 @end 15 @end
16 16
17 @implementation CNLiveLoginService 17 @implementation CNLiveLoginService
18 18
19 -//- (UIViewController *)getFoundController {  
20 -// return [XWFoundController new];  
21 -//}  
22 -//  
23 -//- (void)pushToFoundController {  
24 -// XWFoundController *vc = [[XWFoundController alloc]init]; 19 +- (void)pushToLoginController {
  20 + UIViewController *vc = [[UIViewController alloc]init];
25 // [XWPageJumpManager pushViewController:vc]; 21 // [XWPageJumpManager pushViewController:vc];
26 -//}  
27 -//  
28 -//- (void)presentToFoundController {  
29 -// XWFoundController *vc = [[XWFoundController alloc]init];  
30 -// vc.modalPresentationStyle = UIModalPresentationOverFullScreen;  
31 -// vc.hidesBottomBarWhenPushed = YES; 22 +}
  23 +
  24 +- (void)presentToFoundController {
  25 + UIViewController *vc = [[UIViewController alloc]init];
  26 + vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
  27 + vc.hidesBottomBarWhenPushed = YES;
32 // [XWPageJumpManager presentViewController:vc]; 28 // [XWPageJumpManager presentViewController:vc];
33 -//} 29 +}
  30 +
  31 +- (UIViewController *)getLoginViewController{
  32 + return [UIViewController new];
  33 +
  34 +}
  35 +- (void)pushToLoginViewController{
  36 +
  37 +}
  38 +- (void)pushToLoginViewController:(BOOL)isShow{
  39 +
  40 +}
  41 +
  42 +- (void)presentToLoginViewController{
  43 +
  44 +}
  45 +- (void)presentToLoginViewController:(BOOL)isShow{
  46 +
  47 +}
  48 +
  49 +- (void)loginIfNeedWithCompleteBlock:(void (^)(BOOL))completeBlock{
  50 +
  51 +}
34 52
35 @end 53 @end
Example/CNLiveLoginModule.xcodeproj/project.pbxproj
@@ -346,10 +346,12 @@ @@ -346,10 +346,12 @@
346 ); 346 );
347 inputPaths = ( 347 inputPaths = (
348 "${PODS_ROOT}/Target Support Files/Pods-CNLiveLoginModule_Example/Pods-CNLiveLoginModule_Example-frameworks.sh", 348 "${PODS_ROOT}/Target Support Files/Pods-CNLiveLoginModule_Example/Pods-CNLiveLoginModule_Example-frameworks.sh",
  349 + "${BUILT_PRODUCTS_DIR}/CNLiveBeeHive/CNLiveBeeHive.framework",
349 "${BUILT_PRODUCTS_DIR}/CNLiveLoginModule/CNLiveLoginModule.framework", 350 "${BUILT_PRODUCTS_DIR}/CNLiveLoginModule/CNLiveLoginModule.framework",
350 ); 351 );
351 name = "[CP] Embed Pods Frameworks"; 352 name = "[CP] Embed Pods Frameworks";
352 outputPaths = ( 353 outputPaths = (
  354 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBeeHive.framework",
353 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveLoginModule.framework", 355 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveLoginModule.framework",
354 ); 356 );
355 runOnlyForDeploymentPostprocessing = 0; 357 runOnlyForDeploymentPostprocessing = 0;
Example/Podfile
1 use_frameworks! 1 use_frameworks!
  2 +source 'https://github.com/CocoaPods/Specs.git'
  3 +source 'http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git'
2 4
3 platform :ios, '9.0' 5 platform :ios, '9.0'
4 6