Commit e7f9a25d837d6f34d4c5aa3a5f23b0717b8f7fe5
1 parent
67cf530d
no message
Showing
19 changed files
with
900 additions
and
0 deletions
CNLiveStatSDKDemo/CNLiveStat.framework/CNLiveStat
0 → 100644
No preview for this file type
CNLiveStatSDKDemo/CNLiveStat.framework/Headers/CNLiveStat.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveStat.h | |
| 3 | +// CNLiveStat | |
| 4 | +// | |
| 5 | +// Created by 雷浩杰 on 2016/11/10. | |
| 6 | +// Copyright © 2016年 雷浩杰. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import <Foundation/Foundation.h> | |
| 10 | + | |
| 11 | +@interface CNLiveStat : NSObject | |
| 12 | + | |
| 13 | +/* | |
| 14 | + * 获取SDK版本号 | |
| 15 | + */ | |
| 16 | ++ (NSString *)getVersion; | |
| 17 | + | |
| 18 | +/* | |
| 19 | + * 注册APP 注册成功或失败信息以log形式输出(CNLiveStatManager registerApp Success 或者 CNLiveStatManager registerApp Error :) | |
| 20 | + */ | |
| 21 | ++ (void)registerApp:(NSString *)appId appKey:(NSString *)appKey; | |
| 22 | + | |
| 23 | +/* 数量统计 | |
| 24 | + * | |
| 25 | + * eventID 事件ID | |
| 26 | + * | |
| 27 | + */ | |
| 28 | ++ (void)event:(NSString *)eventID; | |
| 29 | + | |
| 30 | +/* 时长统计 在调用endEvent:方法前,多次使用同一个eventID调用此方法,只会将第一次视为有效调用 | |
| 31 | + * | |
| 32 | + * eventID 事件ID | |
| 33 | + * | |
| 34 | + */ | |
| 35 | ++ (void)beginEvent:(NSString *)eventID; | |
| 36 | + | |
| 37 | +/* 时长统计 多次使用同一个eventID调用此方法,只会将第一次视为有效调用 | |
| 38 | + * | |
| 39 | + * eventID 事件ID | |
| 40 | + * | |
| 41 | + */ | |
| 42 | ++ (void)endEvent:(NSString *)eventID; | |
| 43 | + | |
| 44 | +@end | ... | ... |
CNLiveStatSDKDemo/CNLiveStat.framework/Info.plist
0 → 100644
No preview for this file type
CNLiveStatSDKDemo/CNLiveStatSDKDemo.xcodeproj/project.pbxproj
0 → 100644
| 1 | +// !$*UTF8*$! | |
| 2 | +{ | |
| 3 | + archiveVersion = 1; | |
| 4 | + classes = { | |
| 5 | + }; | |
| 6 | + objectVersion = 46; | |
| 7 | + objects = { | |
| 8 | + | |
| 9 | +/* Begin PBXBuildFile section */ | |
| 10 | + 32A77E971DD4629B00F4D4C9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 32A77E961DD4629B00F4D4C9 /* main.m */; }; | |
| 11 | + 32A77E9A1DD4629B00F4D4C9 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 32A77E991DD4629B00F4D4C9 /* AppDelegate.m */; }; | |
| 12 | + 32A77E9D1DD4629B00F4D4C9 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 32A77E9C1DD4629B00F4D4C9 /* ViewController.m */; }; | |
| 13 | + 32A77EA01DD4629B00F4D4C9 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 32A77E9E1DD4629B00F4D4C9 /* Main.storyboard */; }; | |
| 14 | + 32A77EA21DD4629B00F4D4C9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 32A77EA11DD4629B00F4D4C9 /* Assets.xcassets */; }; | |
| 15 | + 32A77EA51DD4629B00F4D4C9 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 32A77EA31DD4629B00F4D4C9 /* LaunchScreen.storyboard */; }; | |
| 16 | + 32A77EAD1DD462EE00F4D4C9 /* CNLiveStat.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 32A77EAC1DD462EE00F4D4C9 /* CNLiveStat.framework */; }; | |
| 17 | + 32A77EB01DD4636B00F4D4C9 /* TestViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 32A77EAF1DD4636B00F4D4C9 /* TestViewController.m */; }; | |
| 18 | +/* End PBXBuildFile section */ | |
| 19 | + | |
| 20 | +/* Begin PBXFileReference section */ | |
| 21 | + 32A77E921DD4629B00F4D4C9 /* CNLiveStatSDKDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CNLiveStatSDKDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 22 | + 32A77E961DD4629B00F4D4C9 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; | |
| 23 | + 32A77E981DD4629B00F4D4C9 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; | |
| 24 | + 32A77E991DD4629B00F4D4C9 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; }; | |
| 25 | + 32A77E9B1DD4629B00F4D4C9 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; }; | |
| 26 | + 32A77E9C1DD4629B00F4D4C9 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; }; | |
| 27 | + 32A77E9F1DD4629B00F4D4C9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; | |
| 28 | + 32A77EA11DD4629B00F4D4C9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; | |
| 29 | + 32A77EA41DD4629B00F4D4C9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; | |
| 30 | + 32A77EA61DD4629B00F4D4C9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | |
| 31 | + 32A77EAC1DD462EE00F4D4C9 /* CNLiveStat.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLiveStat.framework; sourceTree = "<group>"; }; | |
| 32 | + 32A77EAE1DD4636B00F4D4C9 /* TestViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestViewController.h; sourceTree = "<group>"; }; | |
| 33 | + 32A77EAF1DD4636B00F4D4C9 /* TestViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TestViewController.m; sourceTree = "<group>"; }; | |
| 34 | +/* End PBXFileReference section */ | |
| 35 | + | |
| 36 | +/* Begin PBXFrameworksBuildPhase section */ | |
| 37 | + 32A77E8F1DD4629B00F4D4C9 /* Frameworks */ = { | |
| 38 | + isa = PBXFrameworksBuildPhase; | |
| 39 | + buildActionMask = 2147483647; | |
| 40 | + files = ( | |
| 41 | + 32A77EAD1DD462EE00F4D4C9 /* CNLiveStat.framework in Frameworks */, | |
| 42 | + ); | |
| 43 | + runOnlyForDeploymentPostprocessing = 0; | |
| 44 | + }; | |
| 45 | +/* End PBXFrameworksBuildPhase section */ | |
| 46 | + | |
| 47 | +/* Begin PBXGroup section */ | |
| 48 | + 32A77E891DD4629B00F4D4C9 = { | |
| 49 | + isa = PBXGroup; | |
| 50 | + children = ( | |
| 51 | + 32A77EAC1DD462EE00F4D4C9 /* CNLiveStat.framework */, | |
| 52 | + 32A77E941DD4629B00F4D4C9 /* CNLiveStatSDKDemo */, | |
| 53 | + 32A77E931DD4629B00F4D4C9 /* Products */, | |
| 54 | + ); | |
| 55 | + sourceTree = "<group>"; | |
| 56 | + }; | |
| 57 | + 32A77E931DD4629B00F4D4C9 /* Products */ = { | |
| 58 | + isa = PBXGroup; | |
| 59 | + children = ( | |
| 60 | + 32A77E921DD4629B00F4D4C9 /* CNLiveStatSDKDemo.app */, | |
| 61 | + ); | |
| 62 | + name = Products; | |
| 63 | + sourceTree = "<group>"; | |
| 64 | + }; | |
| 65 | + 32A77E941DD4629B00F4D4C9 /* CNLiveStatSDKDemo */ = { | |
| 66 | + isa = PBXGroup; | |
| 67 | + children = ( | |
| 68 | + 32A77E981DD4629B00F4D4C9 /* AppDelegate.h */, | |
| 69 | + 32A77E991DD4629B00F4D4C9 /* AppDelegate.m */, | |
| 70 | + 32A77E9B1DD4629B00F4D4C9 /* ViewController.h */, | |
| 71 | + 32A77E9C1DD4629B00F4D4C9 /* ViewController.m */, | |
| 72 | + 32A77EAE1DD4636B00F4D4C9 /* TestViewController.h */, | |
| 73 | + 32A77EAF1DD4636B00F4D4C9 /* TestViewController.m */, | |
| 74 | + 32A77E9E1DD4629B00F4D4C9 /* Main.storyboard */, | |
| 75 | + 32A77EA11DD4629B00F4D4C9 /* Assets.xcassets */, | |
| 76 | + 32A77EA31DD4629B00F4D4C9 /* LaunchScreen.storyboard */, | |
| 77 | + 32A77EA61DD4629B00F4D4C9 /* Info.plist */, | |
| 78 | + 32A77E951DD4629B00F4D4C9 /* Supporting Files */, | |
| 79 | + ); | |
| 80 | + path = CNLiveStatSDKDemo; | |
| 81 | + sourceTree = "<group>"; | |
| 82 | + }; | |
| 83 | + 32A77E951DD4629B00F4D4C9 /* Supporting Files */ = { | |
| 84 | + isa = PBXGroup; | |
| 85 | + children = ( | |
| 86 | + 32A77E961DD4629B00F4D4C9 /* main.m */, | |
| 87 | + ); | |
| 88 | + name = "Supporting Files"; | |
| 89 | + sourceTree = "<group>"; | |
| 90 | + }; | |
| 91 | +/* End PBXGroup section */ | |
| 92 | + | |
| 93 | +/* Begin PBXNativeTarget section */ | |
| 94 | + 32A77E911DD4629B00F4D4C9 /* CNLiveStatSDKDemo */ = { | |
| 95 | + isa = PBXNativeTarget; | |
| 96 | + buildConfigurationList = 32A77EA91DD4629B00F4D4C9 /* Build configuration list for PBXNativeTarget "CNLiveStatSDKDemo" */; | |
| 97 | + buildPhases = ( | |
| 98 | + 32A77E8E1DD4629B00F4D4C9 /* Sources */, | |
| 99 | + 32A77E8F1DD4629B00F4D4C9 /* Frameworks */, | |
| 100 | + 32A77E901DD4629B00F4D4C9 /* Resources */, | |
| 101 | + ); | |
| 102 | + buildRules = ( | |
| 103 | + ); | |
| 104 | + dependencies = ( | |
| 105 | + ); | |
| 106 | + name = CNLiveStatSDKDemo; | |
| 107 | + productName = CNLiveStatSDKDemo; | |
| 108 | + productReference = 32A77E921DD4629B00F4D4C9 /* CNLiveStatSDKDemo.app */; | |
| 109 | + productType = "com.apple.product-type.application"; | |
| 110 | + }; | |
| 111 | +/* End PBXNativeTarget section */ | |
| 112 | + | |
| 113 | +/* Begin PBXProject section */ | |
| 114 | + 32A77E8A1DD4629B00F4D4C9 /* Project object */ = { | |
| 115 | + isa = PBXProject; | |
| 116 | + attributes = { | |
| 117 | + LastUpgradeCheck = 0810; | |
| 118 | + ORGANIZATIONNAME = "雷浩杰"; | |
| 119 | + TargetAttributes = { | |
| 120 | + 32A77E911DD4629B00F4D4C9 = { | |
| 121 | + CreatedOnToolsVersion = 8.1; | |
| 122 | + DevelopmentTeam = 94X49GG3ZW; | |
| 123 | + ProvisioningStyle = Automatic; | |
| 124 | + }; | |
| 125 | + }; | |
| 126 | + }; | |
| 127 | + buildConfigurationList = 32A77E8D1DD4629B00F4D4C9 /* Build configuration list for PBXProject "CNLiveStatSDKDemo" */; | |
| 128 | + compatibilityVersion = "Xcode 3.2"; | |
| 129 | + developmentRegion = English; | |
| 130 | + hasScannedForEncodings = 0; | |
| 131 | + knownRegions = ( | |
| 132 | + en, | |
| 133 | + Base, | |
| 134 | + ); | |
| 135 | + mainGroup = 32A77E891DD4629B00F4D4C9; | |
| 136 | + productRefGroup = 32A77E931DD4629B00F4D4C9 /* Products */; | |
| 137 | + projectDirPath = ""; | |
| 138 | + projectRoot = ""; | |
| 139 | + targets = ( | |
| 140 | + 32A77E911DD4629B00F4D4C9 /* CNLiveStatSDKDemo */, | |
| 141 | + ); | |
| 142 | + }; | |
| 143 | +/* End PBXProject section */ | |
| 144 | + | |
| 145 | +/* Begin PBXResourcesBuildPhase section */ | |
| 146 | + 32A77E901DD4629B00F4D4C9 /* Resources */ = { | |
| 147 | + isa = PBXResourcesBuildPhase; | |
| 148 | + buildActionMask = 2147483647; | |
| 149 | + files = ( | |
| 150 | + 32A77EA51DD4629B00F4D4C9 /* LaunchScreen.storyboard in Resources */, | |
| 151 | + 32A77EA21DD4629B00F4D4C9 /* Assets.xcassets in Resources */, | |
| 152 | + 32A77EA01DD4629B00F4D4C9 /* Main.storyboard in Resources */, | |
| 153 | + ); | |
| 154 | + runOnlyForDeploymentPostprocessing = 0; | |
| 155 | + }; | |
| 156 | +/* End PBXResourcesBuildPhase section */ | |
| 157 | + | |
| 158 | +/* Begin PBXSourcesBuildPhase section */ | |
| 159 | + 32A77E8E1DD4629B00F4D4C9 /* Sources */ = { | |
| 160 | + isa = PBXSourcesBuildPhase; | |
| 161 | + buildActionMask = 2147483647; | |
| 162 | + files = ( | |
| 163 | + 32A77E9D1DD4629B00F4D4C9 /* ViewController.m in Sources */, | |
| 164 | + 32A77E9A1DD4629B00F4D4C9 /* AppDelegate.m in Sources */, | |
| 165 | + 32A77EB01DD4636B00F4D4C9 /* TestViewController.m in Sources */, | |
| 166 | + 32A77E971DD4629B00F4D4C9 /* main.m in Sources */, | |
| 167 | + ); | |
| 168 | + runOnlyForDeploymentPostprocessing = 0; | |
| 169 | + }; | |
| 170 | +/* End PBXSourcesBuildPhase section */ | |
| 171 | + | |
| 172 | +/* Begin PBXVariantGroup section */ | |
| 173 | + 32A77E9E1DD4629B00F4D4C9 /* Main.storyboard */ = { | |
| 174 | + isa = PBXVariantGroup; | |
| 175 | + children = ( | |
| 176 | + 32A77E9F1DD4629B00F4D4C9 /* Base */, | |
| 177 | + ); | |
| 178 | + name = Main.storyboard; | |
| 179 | + sourceTree = "<group>"; | |
| 180 | + }; | |
| 181 | + 32A77EA31DD4629B00F4D4C9 /* LaunchScreen.storyboard */ = { | |
| 182 | + isa = PBXVariantGroup; | |
| 183 | + children = ( | |
| 184 | + 32A77EA41DD4629B00F4D4C9 /* Base */, | |
| 185 | + ); | |
| 186 | + name = LaunchScreen.storyboard; | |
| 187 | + sourceTree = "<group>"; | |
| 188 | + }; | |
| 189 | +/* End PBXVariantGroup section */ | |
| 190 | + | |
| 191 | +/* Begin XCBuildConfiguration section */ | |
| 192 | + 32A77EA71DD4629B00F4D4C9 /* Debug */ = { | |
| 193 | + isa = XCBuildConfiguration; | |
| 194 | + buildSettings = { | |
| 195 | + ALWAYS_SEARCH_USER_PATHS = NO; | |
| 196 | + CLANG_ANALYZER_NONNULL = YES; | |
| 197 | + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | |
| 198 | + CLANG_CXX_LIBRARY = "libc++"; | |
| 199 | + CLANG_ENABLE_MODULES = YES; | |
| 200 | + CLANG_ENABLE_OBJC_ARC = YES; | |
| 201 | + CLANG_WARN_BOOL_CONVERSION = YES; | |
| 202 | + CLANG_WARN_CONSTANT_CONVERSION = YES; | |
| 203 | + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | |
| 204 | + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | |
| 205 | + CLANG_WARN_EMPTY_BODY = YES; | |
| 206 | + CLANG_WARN_ENUM_CONVERSION = YES; | |
| 207 | + CLANG_WARN_INFINITE_RECURSION = YES; | |
| 208 | + CLANG_WARN_INT_CONVERSION = YES; | |
| 209 | + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | |
| 210 | + CLANG_WARN_SUSPICIOUS_MOVES = YES; | |
| 211 | + CLANG_WARN_UNREACHABLE_CODE = YES; | |
| 212 | + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | |
| 213 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | |
| 214 | + COPY_PHASE_STRIP = NO; | |
| 215 | + DEBUG_INFORMATION_FORMAT = dwarf; | |
| 216 | + ENABLE_STRICT_OBJC_MSGSEND = YES; | |
| 217 | + ENABLE_TESTABILITY = YES; | |
| 218 | + GCC_C_LANGUAGE_STANDARD = gnu99; | |
| 219 | + GCC_DYNAMIC_NO_PIC = NO; | |
| 220 | + GCC_NO_COMMON_BLOCKS = YES; | |
| 221 | + GCC_OPTIMIZATION_LEVEL = 0; | |
| 222 | + GCC_PREPROCESSOR_DEFINITIONS = ( | |
| 223 | + "DEBUG=1", | |
| 224 | + "$(inherited)", | |
| 225 | + ); | |
| 226 | + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | |
| 227 | + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | |
| 228 | + GCC_WARN_UNDECLARED_SELECTOR = YES; | |
| 229 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | |
| 230 | + GCC_WARN_UNUSED_FUNCTION = YES; | |
| 231 | + GCC_WARN_UNUSED_VARIABLE = YES; | |
| 232 | + IPHONEOS_DEPLOYMENT_TARGET = 10.1; | |
| 233 | + MTL_ENABLE_DEBUG_INFO = YES; | |
| 234 | + ONLY_ACTIVE_ARCH = YES; | |
| 235 | + SDKROOT = iphoneos; | |
| 236 | + }; | |
| 237 | + name = Debug; | |
| 238 | + }; | |
| 239 | + 32A77EA81DD4629B00F4D4C9 /* Release */ = { | |
| 240 | + isa = XCBuildConfiguration; | |
| 241 | + buildSettings = { | |
| 242 | + ALWAYS_SEARCH_USER_PATHS = NO; | |
| 243 | + CLANG_ANALYZER_NONNULL = YES; | |
| 244 | + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | |
| 245 | + CLANG_CXX_LIBRARY = "libc++"; | |
| 246 | + CLANG_ENABLE_MODULES = YES; | |
| 247 | + CLANG_ENABLE_OBJC_ARC = YES; | |
| 248 | + CLANG_WARN_BOOL_CONVERSION = YES; | |
| 249 | + CLANG_WARN_CONSTANT_CONVERSION = YES; | |
| 250 | + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | |
| 251 | + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | |
| 252 | + CLANG_WARN_EMPTY_BODY = YES; | |
| 253 | + CLANG_WARN_ENUM_CONVERSION = YES; | |
| 254 | + CLANG_WARN_INFINITE_RECURSION = YES; | |
| 255 | + CLANG_WARN_INT_CONVERSION = YES; | |
| 256 | + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | |
| 257 | + CLANG_WARN_SUSPICIOUS_MOVES = YES; | |
| 258 | + CLANG_WARN_UNREACHABLE_CODE = YES; | |
| 259 | + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | |
| 260 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | |
| 261 | + COPY_PHASE_STRIP = NO; | |
| 262 | + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; | |
| 263 | + ENABLE_NS_ASSERTIONS = NO; | |
| 264 | + ENABLE_STRICT_OBJC_MSGSEND = YES; | |
| 265 | + GCC_C_LANGUAGE_STANDARD = gnu99; | |
| 266 | + GCC_NO_COMMON_BLOCKS = YES; | |
| 267 | + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | |
| 268 | + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | |
| 269 | + GCC_WARN_UNDECLARED_SELECTOR = YES; | |
| 270 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | |
| 271 | + GCC_WARN_UNUSED_FUNCTION = YES; | |
| 272 | + GCC_WARN_UNUSED_VARIABLE = YES; | |
| 273 | + IPHONEOS_DEPLOYMENT_TARGET = 10.1; | |
| 274 | + MTL_ENABLE_DEBUG_INFO = NO; | |
| 275 | + SDKROOT = iphoneos; | |
| 276 | + VALIDATE_PRODUCT = YES; | |
| 277 | + }; | |
| 278 | + name = Release; | |
| 279 | + }; | |
| 280 | + 32A77EAA1DD4629B00F4D4C9 /* Debug */ = { | |
| 281 | + isa = XCBuildConfiguration; | |
| 282 | + buildSettings = { | |
| 283 | + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | |
| 284 | + DEVELOPMENT_TEAM = 94X49GG3ZW; | |
| 285 | + FRAMEWORK_SEARCH_PATHS = ( | |
| 286 | + "$(inherited)", | |
| 287 | + "$(PROJECT_DIR)", | |
| 288 | + ); | |
| 289 | + INFOPLIST_FILE = CNLiveStatSDKDemo/Info.plist; | |
| 290 | + IPHONEOS_DEPLOYMENT_TARGET = 8.0; | |
| 291 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; | |
| 292 | + PRODUCT_BUNDLE_IDENTIFIER = com.cnlive.stat; | |
| 293 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 294 | + }; | |
| 295 | + name = Debug; | |
| 296 | + }; | |
| 297 | + 32A77EAB1DD4629B00F4D4C9 /* Release */ = { | |
| 298 | + isa = XCBuildConfiguration; | |
| 299 | + buildSettings = { | |
| 300 | + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | |
| 301 | + DEVELOPMENT_TEAM = 94X49GG3ZW; | |
| 302 | + FRAMEWORK_SEARCH_PATHS = ( | |
| 303 | + "$(inherited)", | |
| 304 | + "$(PROJECT_DIR)", | |
| 305 | + ); | |
| 306 | + INFOPLIST_FILE = CNLiveStatSDKDemo/Info.plist; | |
| 307 | + IPHONEOS_DEPLOYMENT_TARGET = 8.0; | |
| 308 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; | |
| 309 | + PRODUCT_BUNDLE_IDENTIFIER = com.cnlive.stat; | |
| 310 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 311 | + }; | |
| 312 | + name = Release; | |
| 313 | + }; | |
| 314 | +/* End XCBuildConfiguration section */ | |
| 315 | + | |
| 316 | +/* Begin XCConfigurationList section */ | |
| 317 | + 32A77E8D1DD4629B00F4D4C9 /* Build configuration list for PBXProject "CNLiveStatSDKDemo" */ = { | |
| 318 | + isa = XCConfigurationList; | |
| 319 | + buildConfigurations = ( | |
| 320 | + 32A77EA71DD4629B00F4D4C9 /* Debug */, | |
| 321 | + 32A77EA81DD4629B00F4D4C9 /* Release */, | |
| 322 | + ); | |
| 323 | + defaultConfigurationIsVisible = 0; | |
| 324 | + defaultConfigurationName = Release; | |
| 325 | + }; | |
| 326 | + 32A77EA91DD4629B00F4D4C9 /* Build configuration list for PBXNativeTarget "CNLiveStatSDKDemo" */ = { | |
| 327 | + isa = XCConfigurationList; | |
| 328 | + buildConfigurations = ( | |
| 329 | + 32A77EAA1DD4629B00F4D4C9 /* Debug */, | |
| 330 | + 32A77EAB1DD4629B00F4D4C9 /* Release */, | |
| 331 | + ); | |
| 332 | + defaultConfigurationIsVisible = 0; | |
| 333 | + }; | |
| 334 | +/* End XCConfigurationList section */ | |
| 335 | + }; | |
| 336 | + rootObject = 32A77E8A1DD4629B00F4D4C9 /* Project object */; | |
| 337 | +} | ... | ... |
CNLiveStatSDKDemo/CNLiveStatSDKDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata
0 → 100644
CNLiveStatSDKDemo/CNLiveStatSDKDemo.xcodeproj/xcuserdata/leihaojie.xcuserdatad/xcschemes/CNLiveStatSDKDemo.xcscheme
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<Scheme | |
| 3 | + LastUpgradeVersion = "0810" | |
| 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.xcodeproj/xcuserdata/leihaojie.xcuserdatad/xcschemes/xcschememanagement.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | +<plist version="1.0"> | |
| 4 | +<dict> | |
| 5 | + <key>SchemeUserState</key> | |
| 6 | + <dict> | |
| 7 | + <key>CNLiveStatSDKDemo.xcscheme</key> | |
| 8 | + <dict> | |
| 9 | + <key>orderHint</key> | |
| 10 | + <integer>0</integer> | |
| 11 | + </dict> | |
| 12 | + </dict> | |
| 13 | + <key>SuppressBuildableAutocreation</key> | |
| 14 | + <dict> | |
| 15 | + <key>32A77E911DD4629B00F4D4C9</key> | |
| 16 | + <dict> | |
| 17 | + <key>primary</key> | |
| 18 | + <true/> | |
| 19 | + </dict> | |
| 20 | + </dict> | |
| 21 | +</dict> | |
| 22 | +</plist> | ... | ... |
CNLiveStatSDKDemo/CNLiveStatSDKDemo/AppDelegate.h
0 → 100644
| 1 | +// | |
| 2 | +// AppDelegate.h | |
| 3 | +// CNLiveStatSDKDemo | |
| 4 | +// | |
| 5 | +// Created by 雷浩杰 on 2016/11/10. | |
| 6 | +// Copyright © 2016年 雷浩杰. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import <UIKit/UIKit.h> | |
| 10 | + | |
| 11 | +@interface AppDelegate : UIResponder <UIApplicationDelegate> | |
| 12 | + | |
| 13 | +@property (strong, nonatomic) UIWindow *window; | |
| 14 | + | |
| 15 | + | |
| 16 | +@end | |
| 17 | + | ... | ... |
CNLiveStatSDKDemo/CNLiveStatSDKDemo/AppDelegate.m
0 → 100644
| 1 | +// | |
| 2 | +// AppDelegate.m | |
| 3 | +// CNLiveStatSDKDemo | |
| 4 | +// | |
| 5 | +// Created by 雷浩杰 on 2016/11/10. | |
| 6 | +// Copyright © 2016年 雷浩杰. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "AppDelegate.h" | |
| 10 | + | |
| 11 | +#import <CNLiveStat/CNLiveStat.h> | |
| 12 | + | |
| 13 | +@interface AppDelegate () | |
| 14 | + | |
| 15 | +@end | |
| 16 | + | |
| 17 | +@implementation AppDelegate | |
| 18 | + | |
| 19 | + | |
| 20 | +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
| 21 | + | |
| 22 | + //注册APP | |
| 23 | + [CNLiveStat registerApp:@"60_ivbqaghz12" appKey:@"11ad3efcb27a83cc62c9cc1886a9061dbb37d5af00e345"]; | |
| 24 | + //启动事件 | |
| 25 | + [CNLiveStat event:@"iOSTestAPPStart"]; | |
| 26 | + | |
| 27 | + return YES; | |
| 28 | +} | |
| 29 | + | |
| 30 | + | |
| 31 | +- (void)applicationWillResignActive:(UIApplication *)application { | |
| 32 | + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. | |
| 33 | + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. | |
| 34 | +} | |
| 35 | + | |
| 36 | + | |
| 37 | +- (void)applicationDidEnterBackground:(UIApplication *)application { | |
| 38 | + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. | |
| 39 | + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. | |
| 40 | +} | |
| 41 | + | |
| 42 | + | |
| 43 | +- (void)applicationWillEnterForeground:(UIApplication *)application { | |
| 44 | + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. | |
| 45 | +} | |
| 46 | + | |
| 47 | + | |
| 48 | +- (void)applicationDidBecomeActive:(UIApplication *)application { | |
| 49 | + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. | |
| 50 | +} | |
| 51 | + | |
| 52 | + | |
| 53 | +- (void)applicationWillTerminate:(UIApplication *)application { | |
| 54 | + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. | |
| 55 | +} | |
| 56 | + | |
| 57 | + | |
| 58 | +@end | ... | ... |
CNLiveStatSDKDemo/CNLiveStatSDKDemo/Assets.xcassets/AppIcon.appiconset/Contents.json
0 → 100644
| 1 | +{ | |
| 2 | + "images" : [ | |
| 3 | + { | |
| 4 | + "idiom" : "iphone", | |
| 5 | + "size" : "29x29", | |
| 6 | + "scale" : "2x" | |
| 7 | + }, | |
| 8 | + { | |
| 9 | + "idiom" : "iphone", | |
| 10 | + "size" : "29x29", | |
| 11 | + "scale" : "3x" | |
| 12 | + }, | |
| 13 | + { | |
| 14 | + "idiom" : "iphone", | |
| 15 | + "size" : "40x40", | |
| 16 | + "scale" : "2x" | |
| 17 | + }, | |
| 18 | + { | |
| 19 | + "idiom" : "iphone", | |
| 20 | + "size" : "40x40", | |
| 21 | + "scale" : "3x" | |
| 22 | + }, | |
| 23 | + { | |
| 24 | + "idiom" : "iphone", | |
| 25 | + "size" : "60x60", | |
| 26 | + "scale" : "2x" | |
| 27 | + }, | |
| 28 | + { | |
| 29 | + "idiom" : "iphone", | |
| 30 | + "size" : "60x60", | |
| 31 | + "scale" : "3x" | |
| 32 | + } | |
| 33 | + ], | |
| 34 | + "info" : { | |
| 35 | + "version" : 1, | |
| 36 | + "author" : "xcode" | |
| 37 | + } | |
| 38 | +} | |
| 0 | 39 | \ No newline at end of file | ... | ... |
CNLiveStatSDKDemo/CNLiveStatSDKDemo/Base.lproj/LaunchScreen.storyboard
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| 2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> | |
| 3 | + <dependencies> | |
| 4 | + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/> | |
| 5 | + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | |
| 6 | + </dependencies> | |
| 7 | + <scenes> | |
| 8 | + <!--View Controller--> | |
| 9 | + <scene sceneID="EHf-IW-A2E"> | |
| 10 | + <objects> | |
| 11 | + <viewController id="01J-lp-oVM" sceneMemberID="viewController"> | |
| 12 | + <layoutGuides> | |
| 13 | + <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/> | |
| 14 | + <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/> | |
| 15 | + </layoutGuides> | |
| 16 | + <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | |
| 17 | + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | |
| 18 | + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | |
| 19 | + <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | |
| 20 | + </view> | |
| 21 | + </viewController> | |
| 22 | + <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> | |
| 23 | + </objects> | |
| 24 | + <point key="canvasLocation" x="53" y="375"/> | |
| 25 | + </scene> | |
| 26 | + </scenes> | |
| 27 | +</document> | ... | ... |
CNLiveStatSDKDemo/CNLiveStatSDKDemo/Base.lproj/Main.storyboard
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11542" systemVersion="16B2555" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="qw0-Sb-cHW"> | |
| 3 | + <device id="retina4_7" orientation="portrait"> | |
| 4 | + <adaptation id="fullscreen"/> | |
| 5 | + </device> | |
| 6 | + <dependencies> | |
| 7 | + <deployment identifier="iOS"/> | |
| 8 | + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11524"/> | |
| 9 | + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | |
| 10 | + </dependencies> | |
| 11 | + <scenes> | |
| 12 | + <!--视讯云统计SDK Demo--> | |
| 13 | + <scene sceneID="tne-QT-ifu"> | |
| 14 | + <objects> | |
| 15 | + <viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController"> | |
| 16 | + <layoutGuides> | |
| 17 | + <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/> | |
| 18 | + <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/> | |
| 19 | + </layoutGuides> | |
| 20 | + <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> | |
| 21 | + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | |
| 22 | + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | |
| 23 | + <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | |
| 24 | + </view> | |
| 25 | + <navigationItem key="navigationItem" title="视讯云统计SDK Demo" id="XBR-9m-vXj"/> | |
| 26 | + </viewController> | |
| 27 | + <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> | |
| 28 | + </objects> | |
| 29 | + <point key="canvasLocation" x="1056.8" y="123.68815592203899"/> | |
| 30 | + </scene> | |
| 31 | + <!--Navigation Controller--> | |
| 32 | + <scene sceneID="94U-vf-Yk3"> | |
| 33 | + <objects> | |
| 34 | + <navigationController automaticallyAdjustsScrollViewInsets="NO" id="qw0-Sb-cHW" sceneMemberID="viewController"> | |
| 35 | + <toolbarItems/> | |
| 36 | + <navigationBar key="navigationBar" contentMode="scaleToFill" id="DdM-Bu-m3w"> | |
| 37 | + <rect key="frame" x="0.0" y="0.0" width="375" height="44"/> | |
| 38 | + <autoresizingMask key="autoresizingMask"/> | |
| 39 | + </navigationBar> | |
| 40 | + <nil name="viewControllers"/> | |
| 41 | + <connections> | |
| 42 | + <segue destination="BYZ-38-t0r" kind="relationship" relationship="rootViewController" id="HuZ-Mz-17S"/> | |
| 43 | + </connections> | |
| 44 | + </navigationController> | |
| 45 | + <placeholder placeholderIdentifier="IBFirstResponder" id="Dbr-Py-M3t" userLabel="First Responder" sceneMemberID="firstResponder"/> | |
| 46 | + </objects> | |
| 47 | + <point key="canvasLocation" x="117.59999999999999" y="777.66116941529242"/> | |
| 48 | + </scene> | |
| 49 | + </scenes> | |
| 50 | +</document> | ... | ... |
CNLiveStatSDKDemo/CNLiveStatSDKDemo/Info.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | +<plist version="1.0"> | |
| 4 | +<dict> | |
| 5 | + <key>CFBundleDevelopmentRegion</key> | |
| 6 | + <string>en</string> | |
| 7 | + <key>CFBundleExecutable</key> | |
| 8 | + <string>$(EXECUTABLE_NAME)</string> | |
| 9 | + <key>CFBundleIdentifier</key> | |
| 10 | + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | |
| 11 | + <key>CFBundleInfoDictionaryVersion</key> | |
| 12 | + <string>6.0</string> | |
| 13 | + <key>CFBundleName</key> | |
| 14 | + <string>$(PRODUCT_NAME)</string> | |
| 15 | + <key>CFBundlePackageType</key> | |
| 16 | + <string>APPL</string> | |
| 17 | + <key>CFBundleShortVersionString</key> | |
| 18 | + <string>1.0.0</string> | |
| 19 | + <key>CFBundleVersion</key> | |
| 20 | + <string>1.0.0</string> | |
| 21 | + <key>LSRequiresIPhoneOS</key> | |
| 22 | + <true/> | |
| 23 | + <key>NSAppTransportSecurity</key> | |
| 24 | + <dict> | |
| 25 | + <key>NSAllowsArbitraryLoads</key> | |
| 26 | + <true/> | |
| 27 | + </dict> | |
| 28 | + <key>UILaunchStoryboardName</key> | |
| 29 | + <string>LaunchScreen</string> | |
| 30 | + <key>UIMainStoryboardFile</key> | |
| 31 | + <string>Main</string> | |
| 32 | + <key>UIRequiredDeviceCapabilities</key> | |
| 33 | + <array> | |
| 34 | + <string>armv7</string> | |
| 35 | + </array> | |
| 36 | + <key>UISupportedInterfaceOrientations</key> | |
| 37 | + <array> | |
| 38 | + <string>UIInterfaceOrientationPortrait</string> | |
| 39 | + <string>UIInterfaceOrientationLandscapeLeft</string> | |
| 40 | + <string>UIInterfaceOrientationLandscapeRight</string> | |
| 41 | + </array> | |
| 42 | +</dict> | |
| 43 | +</plist> | ... | ... |
CNLiveStatSDKDemo/CNLiveStatSDKDemo/TestViewController.h
0 → 100644
CNLiveStatSDKDemo/CNLiveStatSDKDemo/TestViewController.m
0 → 100644
| 1 | +// | |
| 2 | +// TestViewController.m | |
| 3 | +// CNLiveStatSDKDemo | |
| 4 | +// | |
| 5 | +// Created by 雷浩杰 on 2016/11/10. | |
| 6 | +// Copyright © 2016年 雷浩杰. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "TestViewController.h" | |
| 10 | +#import <CNLiveStat/CNLiveStat.h> | |
| 11 | + | |
| 12 | +@interface TestViewController () | |
| 13 | + | |
| 14 | +@end | |
| 15 | + | |
| 16 | +@implementation TestViewController | |
| 17 | + | |
| 18 | +- (void)viewWillAppear:(BOOL)animated | |
| 19 | +{ | |
| 20 | + [super viewWillAppear:animated]; | |
| 21 | + | |
| 22 | + //时长统计开始 | |
| 23 | + [CNLiveStat beginEvent:@"TestView"]; | |
| 24 | +} | |
| 25 | + | |
| 26 | +- (void)viewWillDisappear:(BOOL)animated | |
| 27 | +{ | |
| 28 | + [super viewWillDisappear:animated]; | |
| 29 | + | |
| 30 | + //时长统计结束 | |
| 31 | + [CNLiveStat endEvent:@"TestView"]; | |
| 32 | +} | |
| 33 | + | |
| 34 | +- (void)viewDidLoad { | |
| 35 | + [super viewDidLoad]; | |
| 36 | + self.view.backgroundColor = [UIColor whiteColor]; | |
| 37 | +} | |
| 38 | + | |
| 39 | +- (void)didReceiveMemoryWarning { | |
| 40 | + [super didReceiveMemoryWarning]; | |
| 41 | + // Dispose of any resources that can be recreated. | |
| 42 | +} | |
| 43 | + | |
| 44 | +/* | |
| 45 | +#pragma mark - Navigation | |
| 46 | + | |
| 47 | +// In a storyboard-based application, you will often want to do a little preparation before navigation | |
| 48 | +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { | |
| 49 | + // Get the new view controller using [segue destinationViewController]. | |
| 50 | + // Pass the selected object to the new view controller. | |
| 51 | +} | |
| 52 | +*/ | |
| 53 | + | |
| 54 | +@end | ... | ... |
CNLiveStatSDKDemo/CNLiveStatSDKDemo/ViewController.h
0 → 100644
CNLiveStatSDKDemo/CNLiveStatSDKDemo/ViewController.m
0 → 100644
| 1 | +// | |
| 2 | +// ViewController.m | |
| 3 | +// CNLiveStatSDKDemo | |
| 4 | +// | |
| 5 | +// Created by 雷浩杰 on 2016/11/10. | |
| 6 | +// Copyright © 2016年 雷浩杰. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "ViewController.h" | |
| 10 | +#import "TestViewController.h" | |
| 11 | +#import <CNLiveStat/CNLiveStat.h> | |
| 12 | + | |
| 13 | +@interface ViewController () | |
| 14 | + | |
| 15 | +@end | |
| 16 | + | |
| 17 | +@implementation ViewController | |
| 18 | + | |
| 19 | +- (void)viewDidLoad { | |
| 20 | + [super viewDidLoad]; | |
| 21 | + | |
| 22 | + UIButton *timeTestBtn = [UIButton buttonWithType:UIButtonTypeCustom]; | |
| 23 | + timeTestBtn.frame = CGRectMake((CGRectGetWidth(self.view.frame)-150)/2, 100, 150, 50); | |
| 24 | + [timeTestBtn setTitle:@"数量统计" forState:UIControlStateNormal]; | |
| 25 | + [timeTestBtn setTitleColor:[UIColor colorWithRed:23/255.0 green:110/255.0 blue:254/255.0 alpha:1] forState:UIControlStateNormal]; | |
| 26 | + [timeTestBtn addTarget:self action:@selector(timeTestBtnAction) forControlEvents:UIControlEventTouchUpInside]; | |
| 27 | + timeTestBtn.layer.cornerRadius = 10; | |
| 28 | + timeTestBtn.layer.masksToBounds = YES; | |
| 29 | + timeTestBtn.layer.borderColor = [UIColor blackColor].CGColor; | |
| 30 | + timeTestBtn.layer.borderWidth = 1; | |
| 31 | + [self.view addSubview:timeTestBtn]; | |
| 32 | + | |
| 33 | + UIButton *durationTestBtn = [UIButton buttonWithType:UIButtonTypeCustom]; | |
| 34 | + durationTestBtn.frame = CGRectMake((CGRectGetWidth(self.view.frame)-150)/2, 200, 150, 50); | |
| 35 | + [durationTestBtn setTitle:@"时长统计" forState:UIControlStateNormal]; | |
| 36 | + [durationTestBtn setTitleColor:[UIColor colorWithRed:23/255.0 green:110/255.0 blue:254/255.0 alpha:1] forState:UIControlStateNormal]; | |
| 37 | + [durationTestBtn addTarget:self action:@selector(durationTestBtnAction) forControlEvents:UIControlEventTouchUpInside]; | |
| 38 | + durationTestBtn.layer.cornerRadius = 10; | |
| 39 | + durationTestBtn.layer.masksToBounds = YES; | |
| 40 | + durationTestBtn.layer.borderColor = [UIColor blackColor].CGColor; | |
| 41 | + durationTestBtn.layer.borderWidth = 1; | |
| 42 | + [self.view addSubview:durationTestBtn]; | |
| 43 | + | |
| 44 | + UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetHeight([UIScreen mainScreen].bounds)-60, CGRectGetWidth(self.view.frame), 30)]; | |
| 45 | + label.text = @"北京中投视讯文化传媒股份有限公司"; | |
| 46 | + [self.view addSubview:label]; | |
| 47 | + label.font = [UIFont systemFontOfSize:12]; | |
| 48 | + label.textAlignment = NSTextAlignmentCenter; | |
| 49 | +} | |
| 50 | + | |
| 51 | +- (void)timeTestBtnAction | |
| 52 | +{ | |
| 53 | + [CNLiveStat event:@"clickTest"]; | |
| 54 | +} | |
| 55 | + | |
| 56 | +- (void)durationTestBtnAction | |
| 57 | +{ | |
| 58 | + TestViewController *test = [[TestViewController alloc] init]; | |
| 59 | + [self.navigationController pushViewController:test animated:YES]; | |
| 60 | +} | |
| 61 | + | |
| 62 | +- (void)didReceiveMemoryWarning { | |
| 63 | + [super didReceiveMemoryWarning]; | |
| 64 | + // Dispose of any resources that can be recreated. | |
| 65 | +} | |
| 66 | + | |
| 67 | + | |
| 68 | +@end | ... | ... |
CNLiveStatSDKDemo/CNLiveStatSDKDemo/main.m
0 → 100644
| 1 | +// | |
| 2 | +// main.m | |
| 3 | +// CNLiveStatSDKDemo | |
| 4 | +// | |
| 5 | +// Created by 雷浩杰 on 2016/11/10. | |
| 6 | +// Copyright © 2016年 雷浩杰. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import <UIKit/UIKit.h> | |
| 10 | +#import "AppDelegate.h" | |
| 11 | + | |
| 12 | +int main(int argc, char * argv[]) { | |
| 13 | + @autoreleasepool { | |
| 14 | + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); | |
| 15 | + } | |
| 16 | +} | ... | ... |
统计SDK文档.pdf
0 → 100644
No preview for this file type