diff --git a/iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.h b/iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.h index d13813ba1..51ed7c499 100644 --- a/iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.h +++ b/iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.h @@ -9,6 +9,64 @@ typedef void (^DoraemonH5DoorBlock)(NSString *); +typedef NS_ENUM(NSUInteger, DoraemonManagerPluginType) { + #pragma mark - 常用工具 + // App信息 + DoraemonManagerPluginType_DoraemonAppInfoPlugin, + // 沙盒浏览 + DoraemonManagerPluginType_DoraemonSandboxPlugin, + // MockGPS + DoraemonManagerPluginType_DoraemonGPSPlugin, + // H5任意门 + DoraemonManagerPluginType_DoraemonH5Plugin, + // Crash查看 + DoraemonManagerPluginType_DoraemonCrashPlugin, + // 子线程UI + DoraemonManagerPluginType_DoraemonSubThreadUICheckPlugin, + // 清除本地数据 + DoraemonManagerPluginType_DoraemonDeleteLocalDataPlugin, + // NSLog + DoraemonManagerPluginType_DoraemonNSLogPlugin, + // 日志显示 + DoraemonManagerPluginType_DoraemonCocoaLumberjackPlugin, + + #pragma mark - 性能检测 + // 帧率监控 + DoraemonManagerPluginType_DoraemonFPSPlugin, + // CPU监控 + DoraemonManagerPluginType_DoraemonCPUPlugin, + // 内存监控 + DoraemonManagerPluginType_DoraemonMemoryPlugin, + // 流量监控 + DoraemonManagerPluginType_DoraemonNetFlowPlugin, + // 卡顿检测 + DoraemonManagerPluginType_DoraemonANRPlugin, + // 自定义 性能数据保存到本地 + DoraemonManagerPluginType_DoraemonAllTestPlugin, + // Load耗时 + DoraemonManagerPluginType_DoraemonMethodUseTimePlugin, + + #pragma mark - 视觉工具 + // 颜色吸管 + DoraemonManagerPluginType_DoraemonColorPickPlugin, + // 组件检查 + DoraemonManagerPluginType_DoraemonViewCheckPlugin, + // 对齐标尺 + DoraemonManagerPluginType_DoraemonViewAlignPlugin, + // 元素边框线 + DoraemonManagerPluginType_DoraemonViewMetricsPlugin +}; + +@interface DoraemonManagerPluginTypeModel : NSObject + +@property(nonatomic, copy) NSString *title; +@property(nonatomic, copy) NSString *desc; +@property(nonatomic, copy) NSString *icon; +@property(nonatomic, copy) NSString *pluginName; +@property(nonatomic, copy) NSString *atModule; + +@end + @interface DoraemonManager : NSObject + (DoraemonManager *)shareInstance; @@ -23,6 +81,8 @@ typedef void (^DoraemonH5DoorBlock)(NSString *); - (void)addPluginWithTitle:(NSString *)title icon:(NSString *)iconName desc:(NSString *)desc pluginName:(NSString *)entryName atModule:(NSString *)moduleName; +- (void)removePluginWithPluginType:(DoraemonManagerPluginType)pluginType; +// 推荐使用 removePluginWithPluginType 方法 - (void)removePluginWithPluginName:(NSString *)pluginName atModule:(NSString *)moduleName; - (void)addStartPlugin:(NSString *)pluginName; diff --git a/iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.m b/iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.m index 6342cc8ba..6cb7b849a 100644 --- a/iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.m +++ b/iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.m @@ -28,6 +28,16 @@ #import "DoraemonCocoaLumberjackListViewController.h" #endif +#define kTitle @"title" +#define kDesc @"desc" +#define kIcon @"icon" +#define kPluginName @"pluginName" +#define kAtModule @"atModule" + +@implementation DoraemonManagerPluginTypeModel + +@end + typedef void (^DoraemonANRBlock)(NSDictionary *); typedef void (^DoraemonPerformanceBlock)(NSDictionary *); @@ -130,33 +140,37 @@ - (void)installWithCustomBlock:(void(^)())customBlock{ 初始化内置工具数据 */ - (void)initData{ - - [self addPluginWithTitle:DoraemonLocalizedString(@"App信息") icon:@"doraemon_app_info" desc:DoraemonLocalizedString(@"App的一些基本信息") pluginName:@"DoraemonAppInfoPlugin" atModule:DoraemonLocalizedString(@"常用工具")]; - [self addPluginWithTitle:DoraemonLocalizedString(@"沙盒浏览") icon:@"doraemon_file" desc:DoraemonLocalizedString(@"沙盒浏览") pluginName:@"DoraemonSandboxPlugin" atModule:DoraemonLocalizedString(@"常用工具")]; + #pragma mark - 常用工具 + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonAppInfoPlugin]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonSandboxPlugin]; #if DoraemonWithGPS - [self addPluginWithTitle:@"MockGPS" icon:@"doraemon_mock_gps" desc:@"mock GPS" pluginName:@"DoraemonGPSPlugin" atModule:DoraemonLocalizedString(@"常用工具")]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonGPSPlugin]; #endif - [self addPluginWithTitle:DoraemonLocalizedString(@"H5任意门") icon:@"doraemon_h5" desc:DoraemonLocalizedString(@"H5通用跳转") pluginName:@"DoraemonH5Plugin" atModule:DoraemonLocalizedString(@"常用工具")]; - [self addPluginWithTitle:DoraemonLocalizedString(@"Crash查看") icon:@"doraemon_crash" desc:DoraemonLocalizedString(@"Crash本地查看") pluginName:@"DoraemonCrashPlugin" atModule:DoraemonLocalizedString(@"常用工具")]; - [self addPluginWithTitle:DoraemonLocalizedString(@"子线程UI") icon:@"doraemon_ui" desc:DoraemonLocalizedString(@"非主线程UI渲染检查") pluginName:@"DoraemonSubThreadUICheckPlugin" atModule:DoraemonLocalizedString(@"常用工具")]; - [self addPluginWithTitle:DoraemonLocalizedString(@"清除本地数据") icon:@"doraemon_qingchu" desc:DoraemonLocalizedString(@"清除本地数据") pluginName:@"DoraemonDeleteLocalDataPlugin" atModule:DoraemonLocalizedString(@"常用工具")]; - [self addPluginWithTitle:DoraemonLocalizedString(@"NSLog") icon:@"doraemon_nslog" desc:DoraemonLocalizedString(@"NSLog") pluginName:@"DoraemonNSLogPlugin" atModule:DoraemonLocalizedString(@"常用工具")]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonH5Plugin]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonCrashPlugin]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonSubThreadUICheckPlugin]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonDeleteLocalDataPlugin]; + + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonNSLogPlugin]; #if DoraemonWithLogger - [self addPluginWithTitle:@"Lumberjack" icon:@"doraemon_log" desc:DoraemonLocalizedString(@"日志显示") pluginName:@"DoraemonCocoaLumberjackPlugin" atModule:DoraemonLocalizedString(@"常用工具")]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonCocoaLumberjackPlugin]; #endif - [self addPluginWithTitle:DoraemonLocalizedString(@"帧率") icon:@"doraemon_fps" desc:DoraemonLocalizedString(@"帧率监控") pluginName:@"DoraemonFPSPlugin" atModule:DoraemonLocalizedString(@"性能检测")]; - [self addPluginWithTitle:@"CPU" icon:@"doraemon_cpu" desc:DoraemonLocalizedString(@"CPU监控") pluginName:@"DoraemonCPUPlugin" atModule:DoraemonLocalizedString(@"性能检测")]; - [self addPluginWithTitle:DoraemonLocalizedString(@"内存") icon:@"doraemon_memory" desc:DoraemonLocalizedString(@"内存监控") pluginName:@"DoraemonMemoryPlugin" atModule:DoraemonLocalizedString(@"性能检测")]; - [self addPluginWithTitle:DoraemonLocalizedString(@"流量") icon:@"doraemon_net" desc:DoraemonLocalizedString(@"流量监控") pluginName:@"DoraemonNetFlowPlugin" atModule:DoraemonLocalizedString(@"性能检测")]; - [self addPluginWithTitle:DoraemonLocalizedString(@"卡顿") icon:@"doraemon_kadun" desc:DoraemonLocalizedString(@"卡顿检测") pluginName:@"DoraemonANRPlugin" atModule:DoraemonLocalizedString(@"性能检测")]; - [self addPluginWithTitle:@"自定义" icon:@"doraemon_default" desc:DoraemonLocalizedString(@"性能数据保存到本地") pluginName:@"DoraemonAllTestPlugin" atModule:DoraemonLocalizedString(@"性能检测")]; - [self addPluginWithTitle:@"Load耗时" icon:@"doraemon_method_use_time" desc:DoraemonLocalizedString(@"Load方法消耗时间") pluginName:@"DoraemonMethodUseTimePlugin" atModule:DoraemonLocalizedString(@"性能检测")]; + #pragma mark - 性能检测 + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonFPSPlugin]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonCPUPlugin]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonMemoryPlugin]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonNetFlowPlugin]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonANRPlugin]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonAllTestPlugin]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonMethodUseTimePlugin]; - [self addPluginWithTitle:DoraemonLocalizedString(@"颜色吸管") icon:@"doraemon_straw" desc:DoraemonLocalizedString(@"颜色拾取器") pluginName:@"DoraemonColorPickPlugin" atModule:DoraemonLocalizedString(@"视觉工具")]; - [self addPluginWithTitle:DoraemonLocalizedString(@"组件检查") icon:@"doraemon_view_check" desc:DoraemonLocalizedString(@"View查看器") pluginName:@"DoraemonViewCheckPlugin" atModule:DoraemonLocalizedString(@"视觉工具")]; - [self addPluginWithTitle:DoraemonLocalizedString(@"对齐标尺") icon:@"doraemon_align" desc:DoraemonLocalizedString(@"查看组件是否对齐") pluginName:@"DoraemonViewAlignPlugin" atModule:DoraemonLocalizedString(@"视觉工具")]; - [self addPluginWithTitle:DoraemonLocalizedString(@"元素边框线") icon:@"doraemon_viewmetrics" desc:DoraemonLocalizedString(@"显示元素边框线") pluginName:@"DoraemonViewMetricsPlugin" atModule:DoraemonLocalizedString(@"视觉工具")]; + #pragma mark - 视觉工具 + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonColorPickPlugin]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonViewCheckPlugin]; + + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonViewAlignPlugin]; + [self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonViewMetricsPlugin]; } /** @@ -174,7 +188,15 @@ - (void)addStartPlugin:(NSString *)pluginName{ [_startPlugins addObject:pluginName]; } +- (void)addPluginWithPluginType:(DoraemonManagerPluginType)pluginType +{ + DoraemonManagerPluginTypeModel *model = [self getDefaultPluginDataWithPluginType:pluginType]; + + [self addPluginWithTitle:DoraemonLocalizedString(model.title) icon:model.icon desc:DoraemonLocalizedString(model.desc) pluginName:model.pluginName atModule:DoraemonLocalizedString(model.atModule)]; +} + - (void)addPluginWithTitle:(NSString *)title icon:(NSString *)iconName desc:(NSString *)desc pluginName:(NSString *)pluginName atModule:(NSString *)moduleName{ + NSMutableDictionary *pluginDic = [[NSMutableDictionary alloc] init]; [pluginDic setValue:title forKey:@"name"]; [pluginDic setValue:iconName forKey:@"icon"]; @@ -200,6 +222,12 @@ - (void)addPluginWithTitle:(NSString *)title icon:(NSString *)iconName desc:(NSS } } +- (void)removePluginWithPluginType:(DoraemonManagerPluginType)pluginType +{ + DoraemonManagerPluginTypeModel *model = [self getDefaultPluginDataWithPluginType:pluginType]; + [self removePluginWithPluginName:model.pluginName atModule:model.atModule]; +} + - (void)removePluginWithPluginName:(NSString *)pluginName atModule:(NSString *)moduleName{ [self unregisterPlugin:pluginName withModule:moduleName]; } @@ -273,5 +301,165 @@ - (void)hiddenHomeWindow{ [[DoraemonHomeWindow shareInstance] hide]; } +#pragma mark - default data +- (DoraemonManagerPluginTypeModel *)getDefaultPluginDataWithPluginType:(DoraemonManagerPluginType)pluginType +{ + NSArray *dataArray = @{ + // 常用工具 + @(DoraemonManagerPluginType_DoraemonAppInfoPlugin) : @[ + @{kTitle:@"App信息"}, + @{kDesc:@"App的一些基本信息"}, + @{kIcon:@"doraemon_app_info"}, + @{kPluginName:@"DoraemonAppInfoPlugin"}, + @{kAtModule:@"常用工具"} + ], + @(DoraemonManagerPluginType_DoraemonSandboxPlugin) : @[ + @{kTitle:@"沙盒浏览"}, + @{kDesc:@"沙盒浏览"}, + @{kIcon:@"doraemon_file"}, + @{kPluginName:@"DoraemonSandboxPlugin"}, + @{kAtModule:@"常用工具"} + ], + @(DoraemonManagerPluginType_DoraemonGPSPlugin) : @[ + @{kTitle:@"MockGPS"}, + @{kDesc:@"MockGPS"}, + @{kIcon:@"doraemon_mock_gps"}, + @{kPluginName:@"DoraemonGPSPlugin"}, + @{kAtModule:@"常用工具"} + ], + @(DoraemonManagerPluginType_DoraemonH5Plugin) : @[ + @{kTitle:@"H5任意门"}, + @{kDesc:@"H5通用跳转"}, + @{kIcon:@"doraemon_h5"}, + @{kPluginName:@"DoraemonH5Plugin"}, + @{kAtModule:@"常用工具"} + ], + @(DoraemonManagerPluginType_DoraemonCrashPlugin) : @[ + @{kTitle:@"Crash查看"}, + @{kDesc:@"Crash本地查看"}, + @{kIcon:@"doraemon_crash"}, + @{kPluginName:@"DoraemonCrashPlugin"}, + @{kAtModule:@"常用工具"} + ], + @(DoraemonManagerPluginType_DoraemonSubThreadUICheckPlugin) : @[ + @{kTitle:@"子线程UI"}, + @{kDesc:@"非主线程UI渲染检查"}, + @{kIcon:@"doraemon_ui"}, + @{kPluginName:@"DoraemonSubThreadUICheckPlugin"}, + @{kAtModule:@"常用工具"} + ], + @(DoraemonManagerPluginType_DoraemonDeleteLocalDataPlugin) : @[ + @{kTitle:@"清除本地数据"}, + @{kDesc:@"清除本地数据"}, + @{kIcon:@"doraemon_qingchu"}, + @{kPluginName:@"DoraemonDeleteLocalDataPlugin"}, + @{kAtModule:@"常用工具"} + ], + @(DoraemonManagerPluginType_DoraemonNSLogPlugin) : @[ + @{kTitle:@"NSLog"}, + @{kDesc:@"NSLog"}, + @{kIcon:@"doraemon_nslog"}, + @{kPluginName:@"DoraemonNSLogPlugin"}, + @{kAtModule:@"常用工具"} + ], + @(DoraemonManagerPluginType_DoraemonCocoaLumberjackPlugin) : @[ + @{kTitle:@"Lumberjack"}, + @{kDesc:@"日志显示"}, + @{kIcon:@"doraemon_log"}, + @{kPluginName:@"DoraemonCocoaLumberjackPlugin"}, + @{kAtModule:@"常用工具"} + ], + + // 性能检测 + @(DoraemonManagerPluginType_DoraemonFPSPlugin) : @[ + @{kTitle:@"帧率"}, + @{kDesc:@"帧率监控"}, + @{kIcon:@"doraemon_fps"}, + @{kPluginName:@"DoraemonFPSPlugin"}, + @{kAtModule:@"性能检测"} + ], + @(DoraemonManagerPluginType_DoraemonCPUPlugin) : @[ + @{kTitle:@"CPU"}, + @{kDesc:@"CPU监控"}, + @{kIcon:@"doraemon_cpu"}, + @{kPluginName:@"DoraemonCPUPlugin"}, + @{kAtModule:@"性能检测"} + ], + @(DoraemonManagerPluginType_DoraemonMemoryPlugin) : @[ + @{kTitle:@"内存"}, + @{kDesc:@"内存监控"}, + @{kIcon:@"doraemon_memory"}, + @{kPluginName:@"DoraemonMemoryPlugin"}, + @{kAtModule:@"性能检测"} + ], + @(DoraemonManagerPluginType_DoraemonNetFlowPlugin) : @[ + @{kTitle:@"流量"}, + @{kDesc:@"流量监控"}, + @{kIcon:@"doraemon_net"}, + @{kPluginName:@"DoraemonNetFlowPlugin"}, + @{kAtModule:@"性能检测"} + ], + @(DoraemonManagerPluginType_DoraemonANRPlugin) : @[ + @{kTitle:@"卡顿"}, + @{kDesc:@"卡顿监控"}, + @{kIcon:@"doraemon_kadun"}, + @{kPluginName:@"DoraemonANRPlugin"}, + @{kAtModule:@"性能检测"} + ], + @(DoraemonManagerPluginType_DoraemonAllTestPlugin) : @[ + @{kTitle:@"自定义"}, + @{kDesc:@"性能数据保存到本地"}, + @{kIcon:@"doraemon_default"}, + @{kPluginName:@"DoraemonAllTestPlugin"}, + @{kAtModule:@"性能检测"} + ], + @(DoraemonManagerPluginType_DoraemonMethodUseTimePlugin) : @[ + @{kTitle:@"Load耗时"}, + @{kDesc:@"Load方法消耗时间"}, + @{kIcon:@"doraemon_method_use_time"}, + @{kPluginName:@"DoraemonMethodUseTimePlugin"}, + @{kAtModule:@"性能检测"} + ], + + // 视觉工具 + @(DoraemonManagerPluginType_DoraemonColorPickPlugin) : @[ + @{kTitle:@"颜色吸管"}, + @{kDesc:@"颜色拾取器"}, + @{kIcon:@"doraemon_straw"}, + @{kPluginName:@"DoraemonColorPickPlugin"}, + @{kAtModule:@"视觉工具"} + ], + @(DoraemonManagerPluginType_DoraemonViewCheckPlugin) : @[ + @{kTitle:@"组件检查"}, + @{kDesc:@"View查看器"}, + @{kIcon:@"doraemon_view_check"}, + @{kPluginName:@"DoraemonViewCheckPlugin"}, + @{kAtModule:@"视觉工具"} + ], + @(DoraemonManagerPluginType_DoraemonViewAlignPlugin) : @[ + @{kTitle:@"对齐标尺"}, + @{kDesc:@"查看组件是否对齐"}, + @{kIcon:@"doraemon_align"}, + @{kPluginName:@"DoraemonViewAlignPlugin"}, + @{kAtModule:@"视觉工具"} + ], + @(DoraemonManagerPluginType_DoraemonViewMetricsPlugin) : @[ + @{kTitle:@"元素边框线"}, + @{kDesc:@"显示元素边框线"}, + @{kIcon:@"doraemon_viewmetrics"}, + @{kPluginName:@"DoraemonViewMetricsPlugin"}, + @{kAtModule:@"视觉工具"} + ] + }[@(pluginType)]; + + DoraemonManagerPluginTypeModel *model = [DoraemonManagerPluginTypeModel new]; + model.title = dataArray[0][kTitle]; + model.desc = dataArray[1][kDesc]; + model.icon = dataArray[2][kIcon]; + model.pluginName = dataArray[3][kPluginName]; + model.atModule = dataArray[4][kAtModule]; + + return model; +} @end diff --git a/iOS/DoraemonKitDemo/DoraemonKitDemo.xcodeproj/project.pbxproj b/iOS/DoraemonKitDemo/DoraemonKitDemo.xcodeproj/project.pbxproj index 0ba95fcfb..e89c4b2d0 100644 --- a/iOS/DoraemonKitDemo/DoraemonKitDemo.xcodeproj/project.pbxproj +++ b/iOS/DoraemonKitDemo/DoraemonKitDemo.xcodeproj/project.pbxproj @@ -360,7 +360,7 @@ files = ( ); inputPaths = ( - "${SRCROOT}/Pods/Target Support Files/Pods-DoraemonKitDemo/Pods-DoraemonKitDemo-frameworks.sh", + "${PODS_ROOT}/Target Support Files/Pods-DoraemonKitDemo/Pods-DoraemonKitDemo-frameworks.sh", "${PODS_ROOT}/../../DoraemonKit/Framework/DoraemonLoadAnalyze.framework", ); name = "[CP] Embed Pods Frameworks"; @@ -369,7 +369,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-DoraemonKitDemo/Pods-DoraemonKitDemo-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-DoraemonKitDemo/Pods-DoraemonKitDemo-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; 4338E62332869AF074F6B38C /* [CP] Copy Pods Resources */ = { @@ -378,7 +378,7 @@ files = ( ); inputPaths = ( - "${SRCROOT}/Pods/Target Support Files/Pods-DoraemonKitDemo/Pods-DoraemonKitDemo-resources.sh", + "${PODS_ROOT}/Target Support Files/Pods-DoraemonKitDemo/Pods-DoraemonKitDemo-resources.sh", "${PODS_CONFIGURATION_BUILD_DIR}/DoraemonKit/DoraemonKit.bundle", ); name = "[CP] Copy Pods Resources"; @@ -387,7 +387,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-DoraemonKitDemo/Pods-DoraemonKitDemo-resources.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-DoraemonKitDemo/Pods-DoraemonKitDemo-resources.sh\"\n"; showEnvVarsInLog = 0; }; 4F099CCEC2895A53433BFD37 /* [CP] Check Pods Manifest.lock */ = { @@ -566,7 +566,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = RSV7DQ57L7; + DEVELOPMENT_TEAM = A7FRU6ZJRL; ENABLE_BITCODE = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "DoraemonKitDemo/DoraemonKitDemo-PrefixHeader.pch"; @@ -584,7 +584,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = RSV7DQ57L7; + DEVELOPMENT_TEAM = A7FRU6ZJRL; ENABLE_BITCODE = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "DoraemonKitDemo/DoraemonKitDemo-PrefixHeader.pch"; diff --git a/iOS/DoraemonKitDemo/DoraemonKitDemo/AppDelegate.m b/iOS/DoraemonKitDemo/DoraemonKitDemo/AppDelegate.m index d4b0900e4..f66cc5b0d 100644 --- a/iOS/DoraemonKitDemo/DoraemonKitDemo/AppDelegate.m +++ b/iOS/DoraemonKitDemo/DoraemonKitDemo/AppDelegate.m @@ -28,6 +28,10 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( [[DoraemonManager shareInstance] addPluginWithTitle:@"测试插件" icon:@"doraemon_default" desc:@"测试插件" pluginName:@"TestPlugin" atModule:@"业务工具"]; [[DoraemonManager shareInstance] addStartPlugin:@"StartPlugin"]; [[DoraemonManager shareInstance] install]; + + // 注意:删除不需要使用的模块,要 install 之后再删除,否则 install 后会恢复默认模块 + [[DoraemonManager shareInstance] removePluginWithPluginType:DoraemonManagerPluginType_DoraemonH5Plugin]; + // [[DoraemonManager shareInstance] addH5DoorBlock:^(NSString *h5Url) { // NSLog(@"使用自带容器打开H5链接: %@",h5Url); // }]; diff --git a/iOS/DoraemonKitDemo/Podfile.lock b/iOS/DoraemonKitDemo/Podfile.lock index b2daef95a..ac8ae4c77 100644 --- a/iOS/DoraemonKitDemo/Podfile.lock +++ b/iOS/DoraemonKitDemo/Podfile.lock @@ -78,7 +78,7 @@ SPEC CHECKSUMS: AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60 BSBacktraceLogger: 06b983ee93a9f87d957960e9c73d660d5966b447 CocoaLumberjack: db7cc9e464771f12054c22ff6947c5a58d43a0fd - DoraemonKit: d509f242d27b4bda7468984e42b135988bb5f382 + DoraemonKit: 5660bbbd6abb5ff39a0ff3fb33f153d7745c5c10 fishhook: ea19933abfe8f2f52c55fd8b6e2718467d3ebc89 PNChart: 84774d225c2126ded6c93d4dbe6ae98c3a73c2d2 UICountingLabel: 1db4e7d023e1762171eb226d6dff47a7a84f27aa @@ -86,4 +86,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 510c5b2a68b4c86a7bed77acb410785178ac7e8e -COCOAPODS: 1.5.3 +COCOAPODS: 1.6.0.beta.2