Commit 62b6f5fe82aac58cebbda869e665596b2a16eacf
1 parent
60df56ee
0.0.3
Showing
7 changed files
with
80 additions
and
1 deletions
CNLiveSubsList.podspec
| ... | ... | @@ -8,7 +8,7 @@ |
| 8 | 8 | |
| 9 | 9 | Pod::Spec.new do |s| |
| 10 | 10 | s.name = 'CNLiveSubsList' |
| 11 | - s.version = '0.0.2' | |
| 11 | + s.version = '0.0.3' | |
| 12 | 12 | s.summary = 'A short description of CNLiveSubsList.' |
| 13 | 13 | |
| 14 | 14 | # This description is used to generate tags and improve search results. |
| ... | ... | @@ -46,4 +46,5 @@ TODO: Add long description of the pod here. |
| 46 | 46 | s.dependency 'CNLiveBaseKit' |
| 47 | 47 | s.dependency 'CNLiveRequestBastKit' |
| 48 | 48 | s.dependency 'MJExtension' |
| 49 | + s.dependency 'CNLiveCoreMediator' | |
| 49 | 50 | end | ... | ... |
CNLiveSubsList/Classes/Actions/CNLiveTarget_GetSubsList.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveTarget_GetSubsList.h | |
| 3 | +// CNLiveSubsList | |
| 4 | +// | |
| 5 | +// Created by 殷巧娟 on 2019/2/18. | |
| 6 | +// | |
| 7 | + | |
| 8 | +#import <Foundation/Foundation.h> | |
| 9 | +#import "CNLiveSubsListViewController.h" | |
| 10 | +NS_ASSUME_NONNULL_BEGIN | |
| 11 | + | |
| 12 | +@interface CNLiveTarget_GetSubsList : NSObject | |
| 13 | +- (UIViewController *)CNLiveAction_getSubsListVc:(NSDictionary *)param type:(SubsType)type; | |
| 14 | +@end | |
| 15 | + | |
| 16 | +NS_ASSUME_NONNULL_END | ... | ... |
CNLiveSubsList/Classes/Actions/CNLiveTarget_GetSubsList.m
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveTarget_GetSubsList.m | |
| 3 | +// CNLiveSubsList | |
| 4 | +// | |
| 5 | +// Created by 殷巧娟 on 2019/2/18. | |
| 6 | +// | |
| 7 | + | |
| 8 | +#import "CNLiveTarget_GetSubsList.h" | |
| 9 | + | |
| 10 | +@implementation CNLiveTarget_GetSubsList | |
| 11 | +- (UIViewController *)CNLiveAction_getSubsListVc:(NSDictionary *)param type:(SubsType)type { | |
| 12 | + CNLiveSubsListViewController *vc = [[CNLiveSubsListViewController alloc] initWithType:type param:param]; | |
| 13 | + return vc; | |
| 14 | +} | |
| 15 | +@end | ... | ... |
CNLiveSubsList/Classes/ModuleA/CNLiveCoreMediator+ModuleAdSubsListActions.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveCoreMediator+ModuleSubsListActions.h | |
| 3 | +// CNLiveSubsList | |
| 4 | +// | |
| 5 | +// Created by 殷巧娟 on 2019/2/18. | |
| 6 | +// | |
| 7 | + | |
| 8 | +#import <CNLiveCoreMediator/CNLiveCoreMediator.h> | |
| 9 | +#import "CNLiveSubsListViewController.h" | |
| 10 | +NS_ASSUME_NONNULL_BEGIN | |
| 11 | + | |
| 12 | +@interface CNLiveCoreMediator (ModuleSubsListActions) | |
| 13 | +//获取达人和生活号 | |
| 14 | +- (UIViewController *)CNLiveCoreMediator_getSubsListVc:(NSDictionary *)param type:(SubsType)type; | |
| 15 | +@end | |
| 16 | + | |
| 17 | +NS_ASSUME_NONNULL_END | ... | ... |
CNLiveSubsList/Classes/ModuleA/CNLiveCoreMediator+ModuleAdSubsListActions.m
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveCoreMediator+ModuleSubsListActions.m | |
| 3 | +// CNLiveSubsList | |
| 4 | +// | |
| 5 | +// Created by 殷巧娟 on 2019/2/18. | |
| 6 | +// | |
| 7 | + | |
| 8 | +#import "CNLiveCoreMediator+ModuleAdSubsListActions.h" | |
| 9 | + | |
| 10 | +NSString * const KCNLiveMediatorTargetAdSubsList = @"GetSubsList"; | |
| 11 | +NSString * const KCNLiveMediatorActionGetSubsListVc = @"getSubsListVc"; | |
| 12 | +@implementation CNLiveCoreMediator (ModuleSubsListActions) | |
| 13 | +- (UIViewController *)CNLiveCoreMediator_getSubsListVc:(NSDictionary *)param type:(SubsType)type { | |
| 14 | + | |
| 15 | + UIViewController *viewController = [self performTarget:KCNLiveMediatorTargetAdSubsList action:KCNLiveMediatorActionGetSubsListVc params:param shouldCacheTarget:NO]; | |
| 16 | + if ([viewController isKindOfClass:[UIViewController class]]) { | |
| 17 | + // viewController交付出去之后,可以由外界选择如何使用 | |
| 18 | + return viewController; | |
| 19 | + }else { | |
| 20 | + //这里处理异常场景,具体如何处理取决于产品 | |
| 21 | + return [[UIViewController alloc]init]; | |
| 22 | + } | |
| 23 | +} | |
| 24 | +@end | ... | ... |
Example/CNLiveSubsList.xcodeproj/project.pbxproj
| ... | ... | @@ -314,6 +314,7 @@ |
| 314 | 314 | "${BUILT_PRODUCTS_DIR}/AFNetworking/AFNetworking.framework", |
| 315 | 315 | "${BUILT_PRODUCTS_DIR}/CNLiveBaseKit/CNLiveBaseKit.framework", |
| 316 | 316 | "${BUILT_PRODUCTS_DIR}/CNLiveCommonCategory/CNLiveCommonCategory.framework", |
| 317 | + "${BUILT_PRODUCTS_DIR}/CNLiveCoreMediator/CNLiveCoreMediator.framework", | |
| 317 | 318 | "${BUILT_PRODUCTS_DIR}/CNLiveRequestBastKit/CNLiveRequestBastKit.framework", |
| 318 | 319 | "${BUILT_PRODUCTS_DIR}/CNLiveSubsList/CNLiveSubsList.framework", |
| 319 | 320 | "${BUILT_PRODUCTS_DIR}/MJExtension/MJExtension.framework", |
| ... | ... | @@ -329,6 +330,7 @@ |
| 329 | 330 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AFNetworking.framework", |
| 330 | 331 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBaseKit.framework", |
| 331 | 332 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCommonCategory.framework", |
| 333 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCoreMediator.framework", | |
| 332 | 334 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveRequestBastKit.framework", |
| 333 | 335 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveSubsList.framework", |
| 334 | 336 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJExtension.framework", |
| ... | ... | @@ -354,6 +356,7 @@ |
| 354 | 356 | "${BUILT_PRODUCTS_DIR}/AFNetworking/AFNetworking.framework", |
| 355 | 357 | "${BUILT_PRODUCTS_DIR}/CNLiveBaseKit/CNLiveBaseKit.framework", |
| 356 | 358 | "${BUILT_PRODUCTS_DIR}/CNLiveCommonCategory/CNLiveCommonCategory.framework", |
| 359 | + "${BUILT_PRODUCTS_DIR}/CNLiveCoreMediator/CNLiveCoreMediator.framework", | |
| 357 | 360 | "${BUILT_PRODUCTS_DIR}/CNLiveRequestBastKit/CNLiveRequestBastKit.framework", |
| 358 | 361 | "${BUILT_PRODUCTS_DIR}/MJExtension/MJExtension.framework", |
| 359 | 362 | "${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework", |
| ... | ... | @@ -368,6 +371,7 @@ |
| 368 | 371 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AFNetworking.framework", |
| 369 | 372 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBaseKit.framework", |
| 370 | 373 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCommonCategory.framework", |
| 374 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCoreMediator.framework", | |
| 371 | 375 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveRequestBastKit.framework", |
| 372 | 376 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJExtension.framework", |
| 373 | 377 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Masonry.framework", | ... | ... |
Example/Podfile
| ... | ... | @@ -14,6 +14,7 @@ target 'CNLiveSubsList_Example' do |
| 14 | 14 | pod 'CNLiveBaseKit' |
| 15 | 15 | pod 'CNLiveRequestBastKit' |
| 16 | 16 | pod 'MJExtension' |
| 17 | + pod 'CNLiveCoreMediator' | |
| 17 | 18 | target 'CNLiveSubsList_Tests' do |
| 18 | 19 | inherit! :search_paths |
| 19 | 20 | pod 'Masonry' |
| ... | ... | @@ -24,5 +25,6 @@ target 'CNLiveSubsList_Example' do |
| 24 | 25 | pod 'CNLiveBaseKit' |
| 25 | 26 | pod 'CNLiveRequestBastKit' |
| 26 | 27 | pod 'MJExtension' |
| 28 | + pod 'CNLiveCoreMediator' | |
| 27 | 29 | end |
| 28 | 30 | end | ... | ... |