Commit 2b395a0a6cb82a049173b6f13ff10ce7ad8070bb
1 parent
ecd79679
no message
Showing
5 changed files
with
41 additions
and
36 deletions
CNLiveMineModule.podspec
CNLiveMineModule/Classes/Module/CNLiveMineModule.m
| @@ -7,11 +7,10 @@ | @@ -7,11 +7,10 @@ | ||
| 7 | // | 7 | // |
| 8 | 8 | ||
| 9 | #import "CNLiveMineModule.h" | 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 | @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 |
CNLiveMineModule/Classes/Module/CNLiveMineService.m
| @@ -7,29 +7,29 @@ | @@ -7,29 +7,29 @@ | ||
| 7 | // | 7 | // |
| 8 | 8 | ||
| 9 | #import "CNLiveMineService.h" | 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 | @end | 15 | @end |
| 16 | 16 | ||
| 17 | @implementation CNLiveMineService | 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 | // [XWPageJumpManager pushViewController:vc]; | 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 | // [XWPageJumpManager presentViewController:vc]; | 32 | // [XWPageJumpManager presentViewController:vc]; |
| 33 | -//} | 33 | +} |
| 34 | 34 | ||
| 35 | @end | 35 | @end |
Example/CNLiveMineModule.xcodeproj/project.pbxproj
| @@ -302,10 +302,12 @@ | @@ -302,10 +302,12 @@ | ||
| 302 | ); | 302 | ); |
| 303 | inputPaths = ( | 303 | inputPaths = ( |
| 304 | "${PODS_ROOT}/Target Support Files/Pods-CNLiveMineModule_Example/Pods-CNLiveMineModule_Example-frameworks.sh", | 304 | "${PODS_ROOT}/Target Support Files/Pods-CNLiveMineModule_Example/Pods-CNLiveMineModule_Example-frameworks.sh", |
| 305 | + "${BUILT_PRODUCTS_DIR}/CNLiveBeeHive/CNLiveBeeHive.framework", | ||
| 305 | "${BUILT_PRODUCTS_DIR}/CNLiveMineModule/CNLiveMineModule.framework", | 306 | "${BUILT_PRODUCTS_DIR}/CNLiveMineModule/CNLiveMineModule.framework", |
| 306 | ); | 307 | ); |
| 307 | name = "[CP] Embed Pods Frameworks"; | 308 | name = "[CP] Embed Pods Frameworks"; |
| 308 | outputPaths = ( | 309 | outputPaths = ( |
| 310 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBeeHive.framework", | ||
| 309 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveMineModule.framework", | 311 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveMineModule.framework", |
| 310 | ); | 312 | ); |
| 311 | runOnlyForDeploymentPostprocessing = 0; | 313 | runOnlyForDeploymentPostprocessing = 0; |