Commit 2b395a0a6cb82a049173b6f13ff10ce7ad8070bb

Authored by zhangxiaowen
1 parent ecd79679

no message

CNLiveMineModule.podspec
... ... @@ -45,4 +45,6 @@ TODO: 网家家-我的模块.
45 45 # s.frameworks = 'UIKit', 'MapKit'
46 46 # s.dependency 'AFNetworking', '~> 2.3'
47 47  
  48 + s.dependency 'CNLiveServices'
  49 +
48 50 end
... ...
CNLiveMineModule/Classes/Module/CNLiveMineModule.m
... ... @@ -7,11 +7,10 @@
7 7 //
8 8  
9 9 #import "CNLiveMineModule.h"
10   -//#import "BeeHive.h"
  10 +#import "CNLiveServices.h"
11 11  
12   -//@BeeHiveMod(CNLiveMineModule)
13   -//@interface CNLiveMineModule()<BHModuleProtocol>
14   -@interface CNLiveMineModule()
  12 +@BeeHiveMod(CNLiveMineModule)
  13 +@interface CNLiveMineModule()<BHModuleProtocol>
15 14  
16 15 @end
17 16  
... ... @@ -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 48 @end
... ...
CNLiveMineModule/Classes/Module/CNLiveMineService.m
... ... @@ -7,29 +7,29 @@
7 7 //
8 8  
9 9 #import "CNLiveMineService.h"
  10 +#import "CNLiveServices.h"
10 11  
11   -//@BeeHiveService(CNLiveMineServiceProtocol,CNLiveMineService)
12   -//@interface CNLiveMineService ()<CNLiveMineServiceProtocol>
13   -@interface CNLiveMineService ()
  12 +@BeeHiveService(CNLiveMineServiceProtocol,CNLiveMineService)
  13 +@interface CNLiveMineService ()<CNLiveMineServiceProtocol>
14 14  
15 15 @end
16 16  
17 17 @implementation CNLiveMineService
18 18  
19   -//- (UIViewController *)getFoundController {
20   -// return [XWFoundController new];
21   -//}
22   -//
23   -//- (void)pushToFoundController {
24   -// XWFoundController *vc = [[XWFoundController alloc]init];
  19 +- (UIViewController *)getMineViewController {
  20 + return [UIViewController new];
  21 +}
  22 +
  23 +- (void)pushToMineViewController {
  24 + UIViewController *vc = [[UIViewController alloc]init];
25 25 // [XWPageJumpManager pushViewController:vc];
26   -//}
27   -//
28   -//- (void)presentToFoundController {
29   -// XWFoundController *vc = [[XWFoundController alloc]init];
30   -// vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
31   -// vc.hidesBottomBarWhenPushed = YES;
  26 +}
  27 +
  28 +- (void)presentToFoundController {
  29 + UIViewController *vc = [[UIViewController alloc]init];
  30 + vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
  31 + vc.hidesBottomBarWhenPushed = YES;
32 32 // [XWPageJumpManager presentViewController:vc];
33   -//}
  33 +}
34 34  
35 35 @end
... ...
Example/CNLiveMineModule.xcodeproj/project.pbxproj
... ... @@ -302,10 +302,12 @@
302 302 );
303 303 inputPaths = (
304 304 "${PODS_ROOT}/Target Support Files/Pods-CNLiveMineModule_Example/Pods-CNLiveMineModule_Example-frameworks.sh",
  305 + "${BUILT_PRODUCTS_DIR}/CNLiveBeeHive/CNLiveBeeHive.framework",
305 306 "${BUILT_PRODUCTS_DIR}/CNLiveMineModule/CNLiveMineModule.framework",
306 307 );
307 308 name = "[CP] Embed Pods Frameworks";
308 309 outputPaths = (
  310 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBeeHive.framework",
309 311 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveMineModule.framework",
310 312 );
311 313 runOnlyForDeploymentPostprocessing = 0;
... ...
Example/Podfile
1 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 5 platform :ios, '9.0'
4 6  
... ...