Commit 6035dd982371a856e1aa2ee7f1a0790cbed8c6cb
1 parent
731c7c7e
测试环境和获取网络时间
Showing
7 changed files
with
113 additions
and
4 deletions
CNLiveStatSDKDemo/CNLiveStat.framework/CNLiveStat deleted
100644 → 0
No preview for this file type
CNLiveStatSDKDemo/CNLiveStatSDKDemo.xcodeproj/project.pbxproj
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | 32A77EA21DD4629B00F4D4C9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 32A77EA11DD4629B00F4D4C9 /* Assets.xcassets */; }; |
15 | 15 | 32A77EA51DD4629B00F4D4C9 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 32A77EA31DD4629B00F4D4C9 /* LaunchScreen.storyboard */; }; |
16 | 16 | 32A77EB01DD4636B00F4D4C9 /* TestViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 32A77EAF1DD4636B00F4D4C9 /* TestViewController.m */; }; |
17 | - D2D29A731ECAA5E600846815 /* CNLiveStat.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2D29A721ECAA5E600846815 /* CNLiveStat.framework */; }; | |
17 | + D238D64D1F010DB100036EF1 /* CNLiveStat.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D238D64C1F010DB100036EF1 /* CNLiveStat.framework */; }; | |
18 | 18 | /* End PBXBuildFile section */ |
19 | 19 | |
20 | 20 | /* Begin PBXFileReference section */ |
... | ... | @@ -30,7 +30,7 @@ |
30 | 30 | 32A77EA61DD4629B00F4D4C9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; |
31 | 31 | 32A77EAE1DD4636B00F4D4C9 /* TestViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestViewController.h; sourceTree = "<group>"; }; |
32 | 32 | 32A77EAF1DD4636B00F4D4C9 /* TestViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TestViewController.m; sourceTree = "<group>"; }; |
33 | - D2D29A721ECAA5E600846815 /* CNLiveStat.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLiveStat.framework; sourceTree = "<group>"; }; | |
33 | + D238D64C1F010DB100036EF1 /* CNLiveStat.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLiveStat.framework; sourceTree = "<group>"; }; | |
34 | 34 | /* End PBXFileReference section */ |
35 | 35 | |
36 | 36 | /* Begin PBXFrameworksBuildPhase section */ |
... | ... | @@ -38,7 +38,7 @@ |
38 | 38 | isa = PBXFrameworksBuildPhase; |
39 | 39 | buildActionMask = 2147483647; |
40 | 40 | files = ( |
41 | - D2D29A731ECAA5E600846815 /* CNLiveStat.framework in Frameworks */, | |
41 | + D238D64D1F010DB100036EF1 /* CNLiveStat.framework in Frameworks */, | |
42 | 42 | ); |
43 | 43 | runOnlyForDeploymentPostprocessing = 0; |
44 | 44 | }; |
... | ... | @@ -48,7 +48,6 @@ |
48 | 48 | 32A77E891DD4629B00F4D4C9 = { |
49 | 49 | isa = PBXGroup; |
50 | 50 | children = ( |
51 | - D2D29A721ECAA5E600846815 /* CNLiveStat.framework */, | |
52 | 51 | 32A77E941DD4629B00F4D4C9 /* CNLiveStatSDKDemo */, |
53 | 52 | 32A77E931DD4629B00F4D4C9 /* Products */, |
54 | 53 | ); |
... | ... | @@ -65,6 +64,7 @@ |
65 | 64 | 32A77E941DD4629B00F4D4C9 /* CNLiveStatSDKDemo */ = { |
66 | 65 | isa = PBXGroup; |
67 | 66 | children = ( |
67 | + D238D64C1F010DB100036EF1 /* CNLiveStat.framework */, | |
68 | 68 | 32A77E981DD4629B00F4D4C9 /* AppDelegate.h */, |
69 | 69 | 32A77E991DD4629B00F4D4C9 /* AppDelegate.m */, |
70 | 70 | 32A77E9B1DD4629B00F4D4C9 /* ViewController.h */, |
... | ... | @@ -285,6 +285,7 @@ |
285 | 285 | FRAMEWORK_SEARCH_PATHS = ( |
286 | 286 | "$(inherited)", |
287 | 287 | "$(PROJECT_DIR)", |
288 | + "$(PROJECT_DIR)/CNLiveStatSDKDemo", | |
288 | 289 | ); |
289 | 290 | INFOPLIST_FILE = CNLiveStatSDKDemo/Info.plist; |
290 | 291 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; |
... | ... | @@ -302,6 +303,7 @@ |
302 | 303 | FRAMEWORK_SEARCH_PATHS = ( |
303 | 304 | "$(inherited)", |
304 | 305 | "$(PROJECT_DIR)", |
306 | + "$(PROJECT_DIR)/CNLiveStatSDKDemo", | |
305 | 307 | ); |
306 | 308 | INFOPLIST_FILE = CNLiveStatSDKDemo/Info.plist; |
307 | 309 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; | ... | ... |
CNLiveStatSDKDemo/CNLiveStatSDKDemo.xcodeproj/xcuserdata/cnlive.xcuserdatad/xcschemes/CNLiveStatSDKDemo.xcscheme
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<Scheme | |
3 | + LastUpgradeVersion = "0830" | |
4 | + version = "1.3"> | |
5 | + <BuildAction | |
6 | + parallelizeBuildables = "YES" | |
7 | + buildImplicitDependencies = "YES"> | |
8 | + <BuildActionEntries> | |
9 | + <BuildActionEntry | |
10 | + buildForTesting = "YES" | |
11 | + buildForRunning = "YES" | |
12 | + buildForProfiling = "YES" | |
13 | + buildForArchiving = "YES" | |
14 | + buildForAnalyzing = "YES"> | |
15 | + <BuildableReference | |
16 | + BuildableIdentifier = "primary" | |
17 | + BlueprintIdentifier = "32A77E911DD4629B00F4D4C9" | |
18 | + BuildableName = "CNLiveStatSDKDemo.app" | |
19 | + BlueprintName = "CNLiveStatSDKDemo" | |
20 | + ReferencedContainer = "container:CNLiveStatSDKDemo.xcodeproj"> | |
21 | + </BuildableReference> | |
22 | + </BuildActionEntry> | |
23 | + </BuildActionEntries> | |
24 | + </BuildAction> | |
25 | + <TestAction | |
26 | + buildConfiguration = "Debug" | |
27 | + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | |
28 | + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | |
29 | + shouldUseLaunchSchemeArgsEnv = "YES"> | |
30 | + <Testables> | |
31 | + </Testables> | |
32 | + <MacroExpansion> | |
33 | + <BuildableReference | |
34 | + BuildableIdentifier = "primary" | |
35 | + BlueprintIdentifier = "32A77E911DD4629B00F4D4C9" | |
36 | + BuildableName = "CNLiveStatSDKDemo.app" | |
37 | + BlueprintName = "CNLiveStatSDKDemo" | |
38 | + ReferencedContainer = "container:CNLiveStatSDKDemo.xcodeproj"> | |
39 | + </BuildableReference> | |
40 | + </MacroExpansion> | |
41 | + <AdditionalOptions> | |
42 | + </AdditionalOptions> | |
43 | + </TestAction> | |
44 | + <LaunchAction | |
45 | + buildConfiguration = "Debug" | |
46 | + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | |
47 | + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | |
48 | + launchStyle = "0" | |
49 | + useCustomWorkingDirectory = "NO" | |
50 | + ignoresPersistentStateOnLaunch = "NO" | |
51 | + debugDocumentVersioning = "YES" | |
52 | + debugServiceExtension = "internal" | |
53 | + allowLocationSimulation = "YES"> | |
54 | + <BuildableProductRunnable | |
55 | + runnableDebuggingMode = "0"> | |
56 | + <BuildableReference | |
57 | + BuildableIdentifier = "primary" | |
58 | + BlueprintIdentifier = "32A77E911DD4629B00F4D4C9" | |
59 | + BuildableName = "CNLiveStatSDKDemo.app" | |
60 | + BlueprintName = "CNLiveStatSDKDemo" | |
61 | + ReferencedContainer = "container:CNLiveStatSDKDemo.xcodeproj"> | |
62 | + </BuildableReference> | |
63 | + </BuildableProductRunnable> | |
64 | + <AdditionalOptions> | |
65 | + </AdditionalOptions> | |
66 | + </LaunchAction> | |
67 | + <ProfileAction | |
68 | + buildConfiguration = "Release" | |
69 | + shouldUseLaunchSchemeArgsEnv = "YES" | |
70 | + savedToolIdentifier = "" | |
71 | + useCustomWorkingDirectory = "NO" | |
72 | + debugDocumentVersioning = "YES"> | |
73 | + <BuildableProductRunnable | |
74 | + runnableDebuggingMode = "0"> | |
75 | + <BuildableReference | |
76 | + BuildableIdentifier = "primary" | |
77 | + BlueprintIdentifier = "32A77E911DD4629B00F4D4C9" | |
78 | + BuildableName = "CNLiveStatSDKDemo.app" | |
79 | + BlueprintName = "CNLiveStatSDKDemo" | |
80 | + ReferencedContainer = "container:CNLiveStatSDKDemo.xcodeproj"> | |
81 | + </BuildableReference> | |
82 | + </BuildableProductRunnable> | |
83 | + </ProfileAction> | |
84 | + <AnalyzeAction | |
85 | + buildConfiguration = "Debug"> | |
86 | + </AnalyzeAction> | |
87 | + <ArchiveAction | |
88 | + buildConfiguration = "Release" | |
89 | + revealArchiveInOrganizer = "YES"> | |
90 | + </ArchiveAction> | |
91 | +</Scheme> | ... | ... |
CNLiveStatSDKDemo/CNLiveStatSDKDemo/CNLiveStat.framework/CNLiveStat
0 → 100644
No preview for this file type
CNLiveStatSDKDemo/CNLiveStat.framework/Headers/CNLiveStat.h renamed to CNLiveStatSDKDemo/CNLiveStatSDKDemo/CNLiveStat.framework/Headers/CNLiveStat.h
... | ... | @@ -17,9 +17,25 @@ |
17 | 17 | |
18 | 18 | /* |
19 | 19 | * 注册APP 注册成功或失败信息以log形式输出(CNLiveStatManager registerApp Success 或者 CNLiveStatManager registerApp Error :) |
20 | + | |
21 | + @param appId AppId | |
22 | + @param appKey AppKey | |
23 | + | |
24 | + 此方法默认将统计数据上传到正式环境,如果需要测试SDK,强烈建议用 | |
25 | + + (void)registerApp:(NSString *)appId appKey:(NSString *)appKey isTestEnvironment:(BOOL)isTestEnvironment 方法初始化SDK | |
20 | 26 | */ |
21 | 27 | + (void)registerApp:(NSString *)appId appKey:(NSString *)appKey; |
22 | 28 | |
29 | +/** | |
30 | + 注册APP 注册成功或失败信息以log形式输出(CNLiveStatManager registerApp Success 或者 CNLiveStatManager registerApp Error :) | |
31 | + | |
32 | + @param appId AppId | |
33 | + @param appKey AppKey | |
34 | + @param isTestEnvironment 测试环境开关,YES为测试环境,NO为正式环境 | |
35 | + | |
36 | + */ | |
37 | ++ (void)registerApp:(NSString *)appId appKey:(NSString *)appKey isTestEnvironment:(BOOL)isTestEnvironment; | |
38 | + | |
23 | 39 | /* 数量统计 |
24 | 40 | * |
25 | 41 | * eventID 事件ID | ... | ... |
CNLiveStatSDKDemo/CNLiveStat.framework/Info.plist renamed to CNLiveStatSDKDemo/CNLiveStatSDKDemo/CNLiveStat.framework/Info.plist
No preview for this file type
CNLiveStatSDKDemo/CNLiveStat.framework/Modules/module.modulemap renamed to CNLiveStatSDKDemo/CNLiveStatSDKDemo/CNLiveStat.framework/Modules/module.modulemap