提交 ff9b6add 编写于 作者: Y yixiangboy

move MockGPS subspec to Core

上级 8d91e782
......@@ -39,14 +39,6 @@ Pod::Spec.new do |s|
ss.dependency 'CocoaLumberjack'
end
s.subspec 'WithGPS' do |ss|
ss.source_files = 'iOS/DoraemonKit/Src/GPS/**/*{.h,.m}'
ss.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) DoraemonWithGPS'
}
ss.dependency 'DoraemonKit/Core'
end
s.subspec 'WithLoad' do |ss|
ss.source_files = 'iOS/DoraemonKit/Src/MethodUseTime/**/*{.h,.m}'
ss.pod_target_xcconfig = {
......
......@@ -26,6 +26,7 @@
#import "DoraemonNetFlowOscillogramWindow.h"
#import "DoraemonNetFlowManager.h"
#import "DoraemonHealthManager.h"
#import "DoraemonGPSMocker.h"
#if DoraemonWithLogger
#import "DoraemonCocoaLumberjackLogger.h"
......@@ -38,10 +39,6 @@
#import "DoraemonWeexInfoDataManager.h"
#endif
#if DoraemonWithGPS
#import "DoraemonGPSMocker.h"
#endif
#define kTitle @"title"
#define kDesc @"desc"
......@@ -143,15 +140,12 @@ typedef void (^DoraemonPerformanceBlock)(NSDictionary *);
[[DoraemonCacheManager sharedInstance] saveCpuSwitch:NO];
[[DoraemonCacheManager sharedInstance] saveMemorySwitch:NO];
#if DoraemonWithGPS
//开启mockGPS功能
if ([[DoraemonCacheManager sharedInstance] mockGPSSwitch]) {
CLLocationCoordinate2D coordinate = [[DoraemonCacheManager sharedInstance] mockCoordinate];
CLLocation *loc = [[CLLocation alloc] initWithLatitude:coordinate.latitude longitude:coordinate.longitude];
[[DoraemonGPSMocker shareInstance] mockPoint:loc];
}
#endif
//开启NSLog监控功能
if ([[DoraemonCacheManager sharedInstance] nsLogSwitch]) {
......@@ -210,9 +204,7 @@ typedef void (^DoraemonPerformanceBlock)(NSDictionary *);
[self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonAppSettingPlugin];
[self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonAppInfoPlugin];
[self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonSandboxPlugin];
#if DoraemonWithGPS
[self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonGPSPlugin];
#endif
[self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonH5Plugin];
[self addPluginWithPluginType:DoraemonManagerPluginType_DoraemonDeleteLocalDataPlugin];
......
......@@ -17,7 +17,7 @@ target :'DoraemonKitDemo' do
#pod 'WeexSDK', :git => 'git@github.com:apache/incubator-weex.git', :tag => '0.26.0'
#pod 'DoraemonKit', :subspecs => ['Core','WithLogger','WithGPS','WithLoad','WithWeex', 'WithDatabase', 'WithMLeaksFinder'], :path => '../../'
#pod 'DoraemonKit', :subspecs => ['Core'], :path => '../../'
pod 'DoraemonKit', :subspecs => ['Core','WithLogger','WithGPS','WithLoad','WithDatabase', 'WithMLeaksFinder','WithWeex'], :path => '../../'
pod 'DoraemonKit', :subspecs => ['Core','WithLogger','WithLoad','WithDatabase', 'WithMLeaksFinder','WithWeex'], :path => '../../'
pod 'AFNetworking','2.6.3'
pod 'SDWebImage', '5.0.6'
pod 'FBRetainCycleDetector', :git => 'https://github.com/facebook/FBRetainCycleDetector.git', :configurations => ['Debug']
......
......@@ -27,8 +27,6 @@ PODS:
- DoraemonKit/WithDatabase (3.0.0):
- DoraemonKit/Core
- YYDebugDatabase
- DoraemonKit/WithGPS (3.0.0):
- DoraemonKit/Core
- DoraemonKit/WithLoad (3.0.0):
- DoraemonKit/Core
- DoraemonKit/WithLogger (3.0.0):
......@@ -63,7 +61,6 @@ DEPENDENCIES:
- AFNetworking (= 2.6.3)
- DoraemonKit/Core (from `../../`)
- DoraemonKit/WithDatabase (from `../../`)
- DoraemonKit/WithGPS (from `../../`)
- DoraemonKit/WithLoad (from `../../`)
- DoraemonKit/WithLogger (from `../../`)
- DoraemonKit/WithMLeaksFinder (from `../../`)
......@@ -102,7 +99,7 @@ CHECKOUT OPTIONS:
SPEC CHECKSUMS:
AFNetworking: cb8d14a848e831097108418f5d49217339d4eb60
CocoaLumberjack: b17ae15142558d08bbacf69775fa10c4abbebcc9
DoraemonKit: 4ad75a74374d836425e947f0f891157cacfdcf46
DoraemonKit: a3255b1f1066637cd7fd9ccf45a593db37d4b27c
FBRetainCycleDetector: 46daef95c2dfa9be34b53087edf6a8f34e4c749c
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
GCDWebServer: c0ab22c73e1b84f358d1e2f74bf6afd1c60829f2
......@@ -112,6 +109,6 @@ SPEC CHECKSUMS:
WXDevtool: 95b70c73c06fc3299d65bd53ba4b3e0b0087f3cb
YYDebugDatabase: 037486297a7dd40bc50e2c6df5de7b4ad24c9c17
PODFILE CHECKSUM: 319dde754d61f3ac15d746178f478a87ba63f128
PODFILE CHECKSUM: 668dc9b43df6b1e4d1d71a99513ac5163b99dd0d
COCOAPODS: 1.8.4
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册