Commit 575bc9f428945e1ed3c296edf47dffac31a9d0a4
1 parent
a91d5773
no message
Showing
15 changed files
with
984 additions
and
0 deletions
CNLiveAdSDKDemo/CNLiveAdSDKDemo.xcodeproj/project.pbxproj
0 → 100644
| 1 | +// !$*UTF8*$! | |
| 2 | +{ | |
| 3 | + archiveVersion = 1; | |
| 4 | + classes = { | |
| 5 | + }; | |
| 6 | + objectVersion = 48; | |
| 7 | + objects = { | |
| 8 | + | |
| 9 | +/* Begin PBXBuildFile section */ | |
| 10 | + D2C3FAAF1FF0E77100276C14 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = D2C3FAAE1FF0E77100276C14 /* AppDelegate.m */; }; | |
| 11 | + D2C3FAB21FF0E77100276C14 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D2C3FAB11FF0E77100276C14 /* ViewController.m */; }; | |
| 12 | + D2C3FAB51FF0E77100276C14 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D2C3FAB31FF0E77100276C14 /* Main.storyboard */; }; | |
| 13 | + D2C3FAB71FF0E77100276C14 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D2C3FAB61FF0E77100276C14 /* Assets.xcassets */; }; | |
| 14 | + D2C3FABA1FF0E77100276C14 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D2C3FAB81FF0E77100276C14 /* LaunchScreen.storyboard */; }; | |
| 15 | + D2C3FABD1FF0E77100276C14 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D2C3FABC1FF0E77100276C14 /* main.m */; }; | |
| 16 | + D2C3FAC51FF0E81100276C14 /* CNLiveADSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FAC41FF0E81100276C14 /* CNLiveADSDK.framework */; }; | |
| 17 | + D2C3FAC81FF0E8CF00276C14 /* AdSupport.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FAC71FF0E8CF00276C14 /* AdSupport.framework */; settings = {ATTRIBUTES = (Weak, ); }; }; | |
| 18 | + D2C3FACA1FF0E8DB00276C14 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FAC91FF0E8DB00276C14 /* CoreLocation.framework */; }; | |
| 19 | + D2C3FACC1FF0E8E400276C14 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FACB1FF0E8E400276C14 /* QuartzCore.framework */; }; | |
| 20 | + D2C3FACE1FF0E8EA00276C14 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FACD1FF0E8EA00276C14 /* SystemConfiguration.framework */; }; | |
| 21 | + D2C3FAD01FF0E8F500276C14 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FACF1FF0E8F500276C14 /* CoreTelephony.framework */; }; | |
| 22 | + D2C3FAD21FF0E8FD00276C14 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FAD11FF0E8FD00276C14 /* libz.tbd */; }; | |
| 23 | + D2C3FAD41FF0E90E00276C14 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FAD31FF0E90E00276C14 /* Security.framework */; }; | |
| 24 | + D2C3FAD61FF0E91400276C14 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FAD51FF0E91400276C14 /* StoreKit.framework */; }; | |
| 25 | + D2C3FAD81FF0E91900276C14 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FAD71FF0E91900276C14 /* WebKit.framework */; settings = {ATTRIBUTES = (Weak, ); }; }; | |
| 26 | +/* End PBXBuildFile section */ | |
| 27 | + | |
| 28 | +/* Begin PBXFileReference section */ | |
| 29 | + D2C3FAAA1FF0E77100276C14 /* CNLiveAdSDKDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CNLiveAdSDKDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 30 | + D2C3FAAD1FF0E77100276C14 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; | |
| 31 | + D2C3FAAE1FF0E77100276C14 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; }; | |
| 32 | + D2C3FAB01FF0E77100276C14 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; }; | |
| 33 | + D2C3FAB11FF0E77100276C14 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; }; | |
| 34 | + D2C3FAB41FF0E77100276C14 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; | |
| 35 | + D2C3FAB61FF0E77100276C14 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; | |
| 36 | + D2C3FAB91FF0E77100276C14 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; | |
| 37 | + D2C3FABB1FF0E77100276C14 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | |
| 38 | + D2C3FABC1FF0E77100276C14 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; | |
| 39 | + D2C3FAC41FF0E81100276C14 /* CNLiveADSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLiveADSDK.framework; sourceTree = "<group>"; }; | |
| 40 | + D2C3FAC71FF0E8CF00276C14 /* AdSupport.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AdSupport.framework; path = System/Library/Frameworks/AdSupport.framework; sourceTree = SDKROOT; }; | |
| 41 | + D2C3FAC91FF0E8DB00276C14 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; }; | |
| 42 | + D2C3FACB1FF0E8E400276C14 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; | |
| 43 | + D2C3FACD1FF0E8EA00276C14 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; | |
| 44 | + D2C3FACF1FF0E8F500276C14 /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; }; | |
| 45 | + D2C3FAD11FF0E8FD00276C14 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; }; | |
| 46 | + D2C3FAD31FF0E90E00276C14 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; }; | |
| 47 | + D2C3FAD51FF0E91400276C14 /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; }; | |
| 48 | + D2C3FAD71FF0E91900276C14 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; | |
| 49 | +/* End PBXFileReference section */ | |
| 50 | + | |
| 51 | +/* Begin PBXFrameworksBuildPhase section */ | |
| 52 | + D2C3FAA71FF0E77100276C14 /* Frameworks */ = { | |
| 53 | + isa = PBXFrameworksBuildPhase; | |
| 54 | + buildActionMask = 2147483647; | |
| 55 | + files = ( | |
| 56 | + D2C3FAD81FF0E91900276C14 /* WebKit.framework in Frameworks */, | |
| 57 | + D2C3FAD61FF0E91400276C14 /* StoreKit.framework in Frameworks */, | |
| 58 | + D2C3FAD41FF0E90E00276C14 /* Security.framework in Frameworks */, | |
| 59 | + D2C3FAD21FF0E8FD00276C14 /* libz.tbd in Frameworks */, | |
| 60 | + D2C3FAD01FF0E8F500276C14 /* CoreTelephony.framework in Frameworks */, | |
| 61 | + D2C3FACE1FF0E8EA00276C14 /* SystemConfiguration.framework in Frameworks */, | |
| 62 | + D2C3FACC1FF0E8E400276C14 /* QuartzCore.framework in Frameworks */, | |
| 63 | + D2C3FACA1FF0E8DB00276C14 /* CoreLocation.framework in Frameworks */, | |
| 64 | + D2C3FAC81FF0E8CF00276C14 /* AdSupport.framework in Frameworks */, | |
| 65 | + D2C3FAC51FF0E81100276C14 /* CNLiveADSDK.framework in Frameworks */, | |
| 66 | + ); | |
| 67 | + runOnlyForDeploymentPostprocessing = 0; | |
| 68 | + }; | |
| 69 | +/* End PBXFrameworksBuildPhase section */ | |
| 70 | + | |
| 71 | +/* Begin PBXGroup section */ | |
| 72 | + D2C3FAA11FF0E77100276C14 = { | |
| 73 | + isa = PBXGroup; | |
| 74 | + children = ( | |
| 75 | + D2C3FAAC1FF0E77100276C14 /* CNLiveAdSDKDemo */, | |
| 76 | + D2C3FAAB1FF0E77100276C14 /* Products */, | |
| 77 | + D2C3FAC61FF0E8CF00276C14 /* Frameworks */, | |
| 78 | + ); | |
| 79 | + sourceTree = "<group>"; | |
| 80 | + }; | |
| 81 | + D2C3FAAB1FF0E77100276C14 /* Products */ = { | |
| 82 | + isa = PBXGroup; | |
| 83 | + children = ( | |
| 84 | + D2C3FAAA1FF0E77100276C14 /* CNLiveAdSDKDemo.app */, | |
| 85 | + ); | |
| 86 | + name = Products; | |
| 87 | + sourceTree = "<group>"; | |
| 88 | + }; | |
| 89 | + D2C3FAAC1FF0E77100276C14 /* CNLiveAdSDKDemo */ = { | |
| 90 | + isa = PBXGroup; | |
| 91 | + children = ( | |
| 92 | + D2C3FAC41FF0E81100276C14 /* CNLiveADSDK.framework */, | |
| 93 | + D2C3FABB1FF0E77100276C14 /* Info.plist */, | |
| 94 | + D2C3FAC31FF0E7C700276C14 /* other */, | |
| 95 | + D2C3FAAD1FF0E77100276C14 /* AppDelegate.h */, | |
| 96 | + D2C3FAAE1FF0E77100276C14 /* AppDelegate.m */, | |
| 97 | + D2C3FAB01FF0E77100276C14 /* ViewController.h */, | |
| 98 | + D2C3FAB11FF0E77100276C14 /* ViewController.m */, | |
| 99 | + ); | |
| 100 | + path = CNLiveAdSDKDemo; | |
| 101 | + sourceTree = "<group>"; | |
| 102 | + }; | |
| 103 | + D2C3FAC31FF0E7C700276C14 /* other */ = { | |
| 104 | + isa = PBXGroup; | |
| 105 | + children = ( | |
| 106 | + D2C3FAB61FF0E77100276C14 /* Assets.xcassets */, | |
| 107 | + D2C3FABC1FF0E77100276C14 /* main.m */, | |
| 108 | + D2C3FAB81FF0E77100276C14 /* LaunchScreen.storyboard */, | |
| 109 | + D2C3FAB31FF0E77100276C14 /* Main.storyboard */, | |
| 110 | + ); | |
| 111 | + path = other; | |
| 112 | + sourceTree = "<group>"; | |
| 113 | + }; | |
| 114 | + D2C3FAC61FF0E8CF00276C14 /* Frameworks */ = { | |
| 115 | + isa = PBXGroup; | |
| 116 | + children = ( | |
| 117 | + D2C3FAD71FF0E91900276C14 /* WebKit.framework */, | |
| 118 | + D2C3FAD51FF0E91400276C14 /* StoreKit.framework */, | |
| 119 | + D2C3FAD31FF0E90E00276C14 /* Security.framework */, | |
| 120 | + D2C3FAD11FF0E8FD00276C14 /* libz.tbd */, | |
| 121 | + D2C3FACF1FF0E8F500276C14 /* CoreTelephony.framework */, | |
| 122 | + D2C3FACD1FF0E8EA00276C14 /* SystemConfiguration.framework */, | |
| 123 | + D2C3FACB1FF0E8E400276C14 /* QuartzCore.framework */, | |
| 124 | + D2C3FAC91FF0E8DB00276C14 /* CoreLocation.framework */, | |
| 125 | + D2C3FAC71FF0E8CF00276C14 /* AdSupport.framework */, | |
| 126 | + ); | |
| 127 | + name = Frameworks; | |
| 128 | + sourceTree = "<group>"; | |
| 129 | + }; | |
| 130 | +/* End PBXGroup section */ | |
| 131 | + | |
| 132 | +/* Begin PBXNativeTarget section */ | |
| 133 | + D2C3FAA91FF0E77100276C14 /* CNLiveAdSDKDemo */ = { | |
| 134 | + isa = PBXNativeTarget; | |
| 135 | + buildConfigurationList = D2C3FAC01FF0E77100276C14 /* Build configuration list for PBXNativeTarget "CNLiveAdSDKDemo" */; | |
| 136 | + buildPhases = ( | |
| 137 | + D2C3FAA61FF0E77100276C14 /* Sources */, | |
| 138 | + D2C3FAA71FF0E77100276C14 /* Frameworks */, | |
| 139 | + D2C3FAA81FF0E77100276C14 /* Resources */, | |
| 140 | + ); | |
| 141 | + buildRules = ( | |
| 142 | + ); | |
| 143 | + dependencies = ( | |
| 144 | + ); | |
| 145 | + name = CNLiveAdSDKDemo; | |
| 146 | + productName = CNLiveAdSDKDemo; | |
| 147 | + productReference = D2C3FAAA1FF0E77100276C14 /* CNLiveAdSDKDemo.app */; | |
| 148 | + productType = "com.apple.product-type.application"; | |
| 149 | + }; | |
| 150 | +/* End PBXNativeTarget section */ | |
| 151 | + | |
| 152 | +/* Begin PBXProject section */ | |
| 153 | + D2C3FAA21FF0E77100276C14 /* Project object */ = { | |
| 154 | + isa = PBXProject; | |
| 155 | + attributes = { | |
| 156 | + LastUpgradeCheck = 0920; | |
| 157 | + ORGANIZATIONNAME = cnlive; | |
| 158 | + TargetAttributes = { | |
| 159 | + D2C3FAA91FF0E77100276C14 = { | |
| 160 | + CreatedOnToolsVersion = 9.2; | |
| 161 | + ProvisioningStyle = Automatic; | |
| 162 | + }; | |
| 163 | + }; | |
| 164 | + }; | |
| 165 | + buildConfigurationList = D2C3FAA51FF0E77100276C14 /* Build configuration list for PBXProject "CNLiveAdSDKDemo" */; | |
| 166 | + compatibilityVersion = "Xcode 8.0"; | |
| 167 | + developmentRegion = en; | |
| 168 | + hasScannedForEncodings = 0; | |
| 169 | + knownRegions = ( | |
| 170 | + en, | |
| 171 | + Base, | |
| 172 | + ); | |
| 173 | + mainGroup = D2C3FAA11FF0E77100276C14; | |
| 174 | + productRefGroup = D2C3FAAB1FF0E77100276C14 /* Products */; | |
| 175 | + projectDirPath = ""; | |
| 176 | + projectRoot = ""; | |
| 177 | + targets = ( | |
| 178 | + D2C3FAA91FF0E77100276C14 /* CNLiveAdSDKDemo */, | |
| 179 | + ); | |
| 180 | + }; | |
| 181 | +/* End PBXProject section */ | |
| 182 | + | |
| 183 | +/* Begin PBXResourcesBuildPhase section */ | |
| 184 | + D2C3FAA81FF0E77100276C14 /* Resources */ = { | |
| 185 | + isa = PBXResourcesBuildPhase; | |
| 186 | + buildActionMask = 2147483647; | |
| 187 | + files = ( | |
| 188 | + D2C3FABA1FF0E77100276C14 /* LaunchScreen.storyboard in Resources */, | |
| 189 | + D2C3FAB71FF0E77100276C14 /* Assets.xcassets in Resources */, | |
| 190 | + D2C3FAB51FF0E77100276C14 /* Main.storyboard in Resources */, | |
| 191 | + ); | |
| 192 | + runOnlyForDeploymentPostprocessing = 0; | |
| 193 | + }; | |
| 194 | +/* End PBXResourcesBuildPhase section */ | |
| 195 | + | |
| 196 | +/* Begin PBXSourcesBuildPhase section */ | |
| 197 | + D2C3FAA61FF0E77100276C14 /* Sources */ = { | |
| 198 | + isa = PBXSourcesBuildPhase; | |
| 199 | + buildActionMask = 2147483647; | |
| 200 | + files = ( | |
| 201 | + D2C3FAB21FF0E77100276C14 /* ViewController.m in Sources */, | |
| 202 | + D2C3FABD1FF0E77100276C14 /* main.m in Sources */, | |
| 203 | + D2C3FAAF1FF0E77100276C14 /* AppDelegate.m in Sources */, | |
| 204 | + ); | |
| 205 | + runOnlyForDeploymentPostprocessing = 0; | |
| 206 | + }; | |
| 207 | +/* End PBXSourcesBuildPhase section */ | |
| 208 | + | |
| 209 | +/* Begin PBXVariantGroup section */ | |
| 210 | + D2C3FAB31FF0E77100276C14 /* Main.storyboard */ = { | |
| 211 | + isa = PBXVariantGroup; | |
| 212 | + children = ( | |
| 213 | + D2C3FAB41FF0E77100276C14 /* Base */, | |
| 214 | + ); | |
| 215 | + name = Main.storyboard; | |
| 216 | + sourceTree = "<group>"; | |
| 217 | + }; | |
| 218 | + D2C3FAB81FF0E77100276C14 /* LaunchScreen.storyboard */ = { | |
| 219 | + isa = PBXVariantGroup; | |
| 220 | + children = ( | |
| 221 | + D2C3FAB91FF0E77100276C14 /* Base */, | |
| 222 | + ); | |
| 223 | + name = LaunchScreen.storyboard; | |
| 224 | + sourceTree = "<group>"; | |
| 225 | + }; | |
| 226 | +/* End PBXVariantGroup section */ | |
| 227 | + | |
| 228 | +/* Begin XCBuildConfiguration section */ | |
| 229 | + D2C3FABE1FF0E77100276C14 /* Debug */ = { | |
| 230 | + isa = XCBuildConfiguration; | |
| 231 | + buildSettings = { | |
| 232 | + ALWAYS_SEARCH_USER_PATHS = NO; | |
| 233 | + CLANG_ANALYZER_NONNULL = YES; | |
| 234 | + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; | |
| 235 | + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; | |
| 236 | + CLANG_CXX_LIBRARY = "libc++"; | |
| 237 | + CLANG_ENABLE_MODULES = YES; | |
| 238 | + CLANG_ENABLE_OBJC_ARC = YES; | |
| 239 | + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; | |
| 240 | + CLANG_WARN_BOOL_CONVERSION = YES; | |
| 241 | + CLANG_WARN_COMMA = YES; | |
| 242 | + CLANG_WARN_CONSTANT_CONVERSION = YES; | |
| 243 | + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | |
| 244 | + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | |
| 245 | + CLANG_WARN_EMPTY_BODY = YES; | |
| 246 | + CLANG_WARN_ENUM_CONVERSION = YES; | |
| 247 | + CLANG_WARN_INFINITE_RECURSION = YES; | |
| 248 | + CLANG_WARN_INT_CONVERSION = YES; | |
| 249 | + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; | |
| 250 | + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; | |
| 251 | + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | |
| 252 | + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; | |
| 253 | + CLANG_WARN_STRICT_PROTOTYPES = YES; | |
| 254 | + CLANG_WARN_SUSPICIOUS_MOVE = YES; | |
| 255 | + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; | |
| 256 | + CLANG_WARN_UNREACHABLE_CODE = YES; | |
| 257 | + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | |
| 258 | + CODE_SIGN_IDENTITY = "iPhone Developer"; | |
| 259 | + COPY_PHASE_STRIP = NO; | |
| 260 | + DEBUG_INFORMATION_FORMAT = dwarf; | |
| 261 | + ENABLE_STRICT_OBJC_MSGSEND = YES; | |
| 262 | + ENABLE_TESTABILITY = YES; | |
| 263 | + GCC_C_LANGUAGE_STANDARD = gnu11; | |
| 264 | + GCC_DYNAMIC_NO_PIC = NO; | |
| 265 | + GCC_NO_COMMON_BLOCKS = YES; | |
| 266 | + GCC_OPTIMIZATION_LEVEL = 0; | |
| 267 | + GCC_PREPROCESSOR_DEFINITIONS = ( | |
| 268 | + "DEBUG=1", | |
| 269 | + "$(inherited)", | |
| 270 | + ); | |
| 271 | + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | |
| 272 | + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | |
| 273 | + GCC_WARN_UNDECLARED_SELECTOR = YES; | |
| 274 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | |
| 275 | + GCC_WARN_UNUSED_FUNCTION = YES; | |
| 276 | + GCC_WARN_UNUSED_VARIABLE = YES; | |
| 277 | + IPHONEOS_DEPLOYMENT_TARGET = 11.2; | |
| 278 | + MTL_ENABLE_DEBUG_INFO = YES; | |
| 279 | + ONLY_ACTIVE_ARCH = YES; | |
| 280 | + SDKROOT = iphoneos; | |
| 281 | + }; | |
| 282 | + name = Debug; | |
| 283 | + }; | |
| 284 | + D2C3FABF1FF0E77100276C14 /* Release */ = { | |
| 285 | + isa = XCBuildConfiguration; | |
| 286 | + buildSettings = { | |
| 287 | + ALWAYS_SEARCH_USER_PATHS = NO; | |
| 288 | + CLANG_ANALYZER_NONNULL = YES; | |
| 289 | + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; | |
| 290 | + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; | |
| 291 | + CLANG_CXX_LIBRARY = "libc++"; | |
| 292 | + CLANG_ENABLE_MODULES = YES; | |
| 293 | + CLANG_ENABLE_OBJC_ARC = YES; | |
| 294 | + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; | |
| 295 | + CLANG_WARN_BOOL_CONVERSION = YES; | |
| 296 | + CLANG_WARN_COMMA = YES; | |
| 297 | + CLANG_WARN_CONSTANT_CONVERSION = YES; | |
| 298 | + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | |
| 299 | + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | |
| 300 | + CLANG_WARN_EMPTY_BODY = YES; | |
| 301 | + CLANG_WARN_ENUM_CONVERSION = YES; | |
| 302 | + CLANG_WARN_INFINITE_RECURSION = YES; | |
| 303 | + CLANG_WARN_INT_CONVERSION = YES; | |
| 304 | + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; | |
| 305 | + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; | |
| 306 | + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | |
| 307 | + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; | |
| 308 | + CLANG_WARN_STRICT_PROTOTYPES = YES; | |
| 309 | + CLANG_WARN_SUSPICIOUS_MOVE = YES; | |
| 310 | + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; | |
| 311 | + CLANG_WARN_UNREACHABLE_CODE = YES; | |
| 312 | + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | |
| 313 | + CODE_SIGN_IDENTITY = "iPhone Developer"; | |
| 314 | + COPY_PHASE_STRIP = NO; | |
| 315 | + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; | |
| 316 | + ENABLE_NS_ASSERTIONS = NO; | |
| 317 | + ENABLE_STRICT_OBJC_MSGSEND = YES; | |
| 318 | + GCC_C_LANGUAGE_STANDARD = gnu11; | |
| 319 | + GCC_NO_COMMON_BLOCKS = YES; | |
| 320 | + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | |
| 321 | + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | |
| 322 | + GCC_WARN_UNDECLARED_SELECTOR = YES; | |
| 323 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | |
| 324 | + GCC_WARN_UNUSED_FUNCTION = YES; | |
| 325 | + GCC_WARN_UNUSED_VARIABLE = YES; | |
| 326 | + IPHONEOS_DEPLOYMENT_TARGET = 11.2; | |
| 327 | + MTL_ENABLE_DEBUG_INFO = NO; | |
| 328 | + SDKROOT = iphoneos; | |
| 329 | + VALIDATE_PRODUCT = YES; | |
| 330 | + }; | |
| 331 | + name = Release; | |
| 332 | + }; | |
| 333 | + D2C3FAC11FF0E77100276C14 /* Debug */ = { | |
| 334 | + isa = XCBuildConfiguration; | |
| 335 | + buildSettings = { | |
| 336 | + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | |
| 337 | + CODE_SIGN_STYLE = Automatic; | |
| 338 | + DEVELOPMENT_TEAM = 94X49GG3ZW; | |
| 339 | + FRAMEWORK_SEARCH_PATHS = ( | |
| 340 | + "$(inherited)", | |
| 341 | + "$(PROJECT_DIR)/CNLiveAdSDKDemo", | |
| 342 | + ); | |
| 343 | + INFOPLIST_FILE = CNLiveAdSDKDemo/Info.plist; | |
| 344 | + IPHONEOS_DEPLOYMENT_TARGET = 8.0; | |
| 345 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; | |
| 346 | + PRODUCT_BUNDLE_IDENTIFIER = "shixunzhongguo-cnlive"; | |
| 347 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 348 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 349 | + }; | |
| 350 | + name = Debug; | |
| 351 | + }; | |
| 352 | + D2C3FAC21FF0E77100276C14 /* Release */ = { | |
| 353 | + isa = XCBuildConfiguration; | |
| 354 | + buildSettings = { | |
| 355 | + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | |
| 356 | + CODE_SIGN_STYLE = Automatic; | |
| 357 | + DEVELOPMENT_TEAM = 94X49GG3ZW; | |
| 358 | + FRAMEWORK_SEARCH_PATHS = ( | |
| 359 | + "$(inherited)", | |
| 360 | + "$(PROJECT_DIR)/CNLiveAdSDKDemo", | |
| 361 | + ); | |
| 362 | + INFOPLIST_FILE = CNLiveAdSDKDemo/Info.plist; | |
| 363 | + IPHONEOS_DEPLOYMENT_TARGET = 8.0; | |
| 364 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; | |
| 365 | + PRODUCT_BUNDLE_IDENTIFIER = "shixunzhongguo-cnlive"; | |
| 366 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 367 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 368 | + }; | |
| 369 | + name = Release; | |
| 370 | + }; | |
| 371 | +/* End XCBuildConfiguration section */ | |
| 372 | + | |
| 373 | +/* Begin XCConfigurationList section */ | |
| 374 | + D2C3FAA51FF0E77100276C14 /* Build configuration list for PBXProject "CNLiveAdSDKDemo" */ = { | |
| 375 | + isa = XCConfigurationList; | |
| 376 | + buildConfigurations = ( | |
| 377 | + D2C3FABE1FF0E77100276C14 /* Debug */, | |
| 378 | + D2C3FABF1FF0E77100276C14 /* Release */, | |
| 379 | + ); | |
| 380 | + defaultConfigurationIsVisible = 0; | |
| 381 | + defaultConfigurationName = Release; | |
| 382 | + }; | |
| 383 | + D2C3FAC01FF0E77100276C14 /* Build configuration list for PBXNativeTarget "CNLiveAdSDKDemo" */ = { | |
| 384 | + isa = XCConfigurationList; | |
| 385 | + buildConfigurations = ( | |
| 386 | + D2C3FAC11FF0E77100276C14 /* Debug */, | |
| 387 | + D2C3FAC21FF0E77100276C14 /* Release */, | |
| 388 | + ); | |
| 389 | + defaultConfigurationIsVisible = 0; | |
| 390 | + defaultConfigurationName = Release; | |
| 391 | + }; | |
| 392 | +/* End XCConfigurationList section */ | |
| 393 | + }; | |
| 394 | + rootObject = D2C3FAA21FF0E77100276C14 /* Project object */; | |
| 395 | +} | ... | ... |
CNLiveAdSDKDemo/CNLiveAdSDKDemo/AppDelegate.h
0 → 100644
| 1 | +// | |
| 2 | +// AppDelegate.h | |
| 3 | +// CNLiveAdSDKDemo | |
| 4 | +// | |
| 5 | +// Created by 张旭 on 2017/12/25. | |
| 6 | +// Copyright © 2017年 cnlive. 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 | + | ... | ... |
CNLiveAdSDKDemo/CNLiveAdSDKDemo/AppDelegate.m
0 → 100644
| 1 | +// | |
| 2 | +// AppDelegate.m | |
| 3 | +// CNLiveAdSDKDemo | |
| 4 | +// | |
| 5 | +// Created by 张旭 on 2017/12/25. | |
| 6 | +// Copyright © 2017年 cnlive. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "AppDelegate.h" | |
| 10 | + | |
| 11 | +@interface AppDelegate () | |
| 12 | + | |
| 13 | +@end | |
| 14 | + | |
| 15 | +@implementation AppDelegate | |
| 16 | + | |
| 17 | + | |
| 18 | +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
| 19 | + // Override point for customization after application launch. | |
| 20 | + return YES; | |
| 21 | +} | |
| 22 | + | |
| 23 | + | |
| 24 | +- (void)applicationWillResignActive:(UIApplication *)application { | |
| 25 | + // 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. | |
| 26 | + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. | |
| 27 | +} | |
| 28 | + | |
| 29 | + | |
| 30 | +- (void)applicationDidEnterBackground:(UIApplication *)application { | |
| 31 | + // 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. | |
| 32 | + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. | |
| 33 | +} | |
| 34 | + | |
| 35 | + | |
| 36 | +- (void)applicationWillEnterForeground:(UIApplication *)application { | |
| 37 | + // 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. | |
| 38 | +} | |
| 39 | + | |
| 40 | + | |
| 41 | +- (void)applicationDidBecomeActive:(UIApplication *)application { | |
| 42 | + // 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. | |
| 43 | +} | |
| 44 | + | |
| 45 | + | |
| 46 | +- (void)applicationWillTerminate:(UIApplication *)application { | |
| 47 | + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. | |
| 48 | +} | |
| 49 | + | |
| 50 | + | |
| 51 | +@end | ... | ... |
CNLiveAdSDKDemo/CNLiveAdSDKDemo/CNLiveADSDK.framework/CNLiveADSDK
0 → 100755
No preview for this file type
CNLiveAdSDKDemo/CNLiveAdSDKDemo/CNLiveADSDK.framework/Headers/CNLiveADSDK.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveADSDK.h | |
| 3 | +// CNLiveADSDK | |
| 4 | +// | |
| 5 | +// Created by 张旭 on 2017/12/21. | |
| 6 | +// Copyright © 2017年 cnlive. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import <UIKit/UIKit.h> | |
| 10 | + | |
| 11 | +//! Project version number for CNLiveADSDK. | |
| 12 | +FOUNDATION_EXPORT double CNLiveADSDKVersionNumber; | |
| 13 | + | |
| 14 | +//! Project version string for CNLiveADSDK. | |
| 15 | +FOUNDATION_EXPORT const unsigned char CNLiveADSDKVersionString[]; | |
| 16 | + | |
| 17 | +// In this header, you should import all the public headers of your framework using statements like #import <CNLiveADSDK/PublicHeader.h> | |
| 18 | + | |
| 19 | +#ifdef __OBJC__ | |
| 20 | + | |
| 21 | +#import "CNLiveNativeExpressAd.h" | |
| 22 | +#import "CNLiveNativeExpressAdView.h" | |
| 23 | +#endif | ... | ... |
CNLiveAdSDKDemo/CNLiveAdSDKDemo/CNLiveADSDK.framework/Headers/CNLiveNativeExpressAd.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveNativeExpressAd.h | |
| 3 | +// CNLiveADSDK | |
| 4 | +// | |
| 5 | +// Created by 张旭 on 2017/12/21. | |
| 6 | +// Copyright © 2017年 cnlive. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import <Foundation/Foundation.h> | |
| 10 | +#import <UIKit/UIKit.h> | |
| 11 | + | |
| 12 | +@class CNLiveNativeExpressAdView; | |
| 13 | +@class CNLiveNativeExpressAd; | |
| 14 | + | |
| 15 | +@protocol CNLiveNativeExpressAdDelegete <NSObject> | |
| 16 | + | |
| 17 | +@optional | |
| 18 | +/** | |
| 19 | + * 拉取原生模板广告成功 | |
| 20 | + */ | |
| 21 | +- (void)nativeExpressAdSuccessToLoadViews:(NSArray<__kindof CNLiveNativeExpressAdView *> *)views; | |
| 22 | + | |
| 23 | +/** | |
| 24 | + * 拉取原生模板广告失败 | |
| 25 | + */ | |
| 26 | +- (void)nativeExpressAdFailToLoadError:(NSError *)error; | |
| 27 | + | |
| 28 | +/** | |
| 29 | + * 原生模板广告渲染成功 | |
| 30 | + */ | |
| 31 | +- (void) nativeExpressAdViewRenderSuccess:(CNLiveNativeExpressAdView *)nativeExpressAdView; | |
| 32 | + | |
| 33 | +/** | |
| 34 | + * 原生模板广告渲染失败 | |
| 35 | + */ | |
| 36 | +- (void) nativeExpressAdViewRenderFail:(CNLiveNativeExpressAdView *)nativeExpressAdView; | |
| 37 | + | |
| 38 | +/** | |
| 39 | + * 原生模板广告曝光回调 | |
| 40 | + */ | |
| 41 | +- (void)nativeExpressAdViewExposure:(CNLiveNativeExpressAdView *)nativeExpressAdView; | |
| 42 | + | |
| 43 | +/** | |
| 44 | + * 原生模板广告点击回调 | |
| 45 | + */ | |
| 46 | +- (void)nativeExpressAdViewClicked:(CNLiveNativeExpressAdView *)nativeExpressAdView; | |
| 47 | + | |
| 48 | +/** | |
| 49 | + * 原生模板广告被关闭 | |
| 50 | + */ | |
| 51 | +- (void)nativeExpressAdViewClosed:(CNLiveNativeExpressAdView *)nativeExpressAdView; | |
| 52 | + | |
| 53 | +/** | |
| 54 | + * 点击原生模板广告以后即将弹出全屏广告页 | |
| 55 | + */ | |
| 56 | +- (void)nativeExpressAdViewWillPresentScreen:(CNLiveNativeExpressAdView *)nativeExpressAdView; | |
| 57 | + | |
| 58 | +/** | |
| 59 | + * 点击原生模板广告以后弹出全屏广告页 | |
| 60 | + */ | |
| 61 | +- (void)nativeExpressAdViewDidPresentScreen:(CNLiveNativeExpressAdView *)nativeExpressAdView; | |
| 62 | + | |
| 63 | +/** | |
| 64 | + * 全屏广告页将要关闭 | |
| 65 | + */ | |
| 66 | +- (void)nativeExpressAdViewWillDissmissScreen:(CNLiveNativeExpressAdView *)nativeExpressAdView; | |
| 67 | + | |
| 68 | +/** | |
| 69 | + * 全屏广告页关闭 | |
| 70 | + */ | |
| 71 | +- (void)nativeExpressAdViewDidDissmissScreen:(CNLiveNativeExpressAdView *)nativeExpressAdView; | |
| 72 | + | |
| 73 | +/** | |
| 74 | + * 原生模板广告点击之后应用进入后台时回调 | |
| 75 | + */ | |
| 76 | +- (void)nativeExpressAdViewApplicationWillEnterBackground:(CNLiveNativeExpressAdView *)nativeExpressAdView; | |
| 77 | + | |
| 78 | +@end | |
| 79 | +@interface CNLiveNativeExpressAd : NSObject | |
| 80 | +/** | |
| 81 | + * 委托对象 | |
| 82 | + */ | |
| 83 | +@property (nonatomic, weak) id<CNLiveNativeExpressAdDelegete> delegate; | |
| 84 | + | |
| 85 | +/** | |
| 86 | + * 构造方法 | |
| 87 | + * 详解:appkey是应用id, placementId是广告位id, adSize是广告展示的宽高(具体参看联盟广告位配置) | |
| 88 | + */ | |
| 89 | +-(instancetype)initWithAppkey:(NSString *)appkey placementId:(NSString *)placementId adSize:(CGSize)size; | |
| 90 | + | |
| 91 | +- (void)loadAd:(int)count; | |
| 92 | + | |
| 93 | +@end | ... | ... |
CNLiveAdSDKDemo/CNLiveAdSDKDemo/CNLiveADSDK.framework/Headers/CNLiveNativeExpressAdView.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveNativeExpressAdView.h | |
| 3 | +// CNLiveADSDK | |
| 4 | +// | |
| 5 | +// Created by 张旭 on 2017/12/21. | |
| 6 | +// Copyright © 2017年 cnlive. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import <UIKit/UIKit.h> | |
| 10 | + | |
| 11 | +@interface CNLiveNativeExpressAdView : UIView | |
| 12 | + | |
| 13 | +/** | |
| 14 | + * 是否渲染完毕 | |
| 15 | + */ | |
| 16 | +@property (nonatomic, assign) BOOL isReady; | |
| 17 | + | |
| 18 | +/* | |
| 19 | + * viewControllerForPresentingModalView | |
| 20 | + * 详解:[必选]开发者需传入用来弹出目标页的ViewController,一般为当前ViewController | |
| 21 | + */ | |
| 22 | +@property (nonatomic, weak) UIViewController *controller; | |
| 23 | + | |
| 24 | +/** | |
| 25 | + *[必选] | |
| 26 | + *原生模板广告渲染 | |
| 27 | + */ | |
| 28 | +- (void)render; | |
| 29 | +@end | ... | ... |
CNLiveAdSDKDemo/CNLiveAdSDKDemo/CNLiveADSDK.framework/Info.plist
0 → 100644
No preview for this file type
CNLiveAdSDKDemo/CNLiveAdSDKDemo/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>$(DEVELOPMENT_LANGUAGE)</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</string> | |
| 19 | + <key>CFBundleVersion</key> | |
| 20 | + <string>1</string> | |
| 21 | + <key>LSRequiresIPhoneOS</key> | |
| 22 | + <true/> | |
| 23 | + <key>UILaunchStoryboardName</key> | |
| 24 | + <string>LaunchScreen</string> | |
| 25 | + <key>UIMainStoryboardFile</key> | |
| 26 | + <string>Main</string> | |
| 27 | + <key>UIRequiredDeviceCapabilities</key> | |
| 28 | + <array> | |
| 29 | + <string>armv7</string> | |
| 30 | + </array> | |
| 31 | + <key>UISupportedInterfaceOrientations</key> | |
| 32 | + <array> | |
| 33 | + <string>UIInterfaceOrientationPortrait</string> | |
| 34 | + <string>UIInterfaceOrientationLandscapeLeft</string> | |
| 35 | + <string>UIInterfaceOrientationLandscapeRight</string> | |
| 36 | + </array> | |
| 37 | + <key>UISupportedInterfaceOrientations~ipad</key> | |
| 38 | + <array> | |
| 39 | + <string>UIInterfaceOrientationPortrait</string> | |
| 40 | + <string>UIInterfaceOrientationPortraitUpsideDown</string> | |
| 41 | + <string>UIInterfaceOrientationLandscapeLeft</string> | |
| 42 | + <string>UIInterfaceOrientationLandscapeRight</string> | |
| 43 | + </array> | |
| 44 | +</dict> | |
| 45 | +</plist> | ... | ... |
CNLiveAdSDKDemo/CNLiveAdSDKDemo/ViewController.h
0 → 100644
CNLiveAdSDKDemo/CNLiveAdSDKDemo/ViewController.m
0 → 100644
| 1 | +// | |
| 2 | +// ViewController.m | |
| 3 | +// CNLiveAdSDKDemo | |
| 4 | +// | |
| 5 | +// Created by 张旭 on 2017/12/25. | |
| 6 | +// Copyright © 2017年 cnlive. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "ViewController.h" | |
| 10 | +#import <CNLiveADSDK/CNLiveADSDK.h> | |
| 11 | +@interface ViewController ()<CNLiveNativeExpressAdDelegete> | |
| 12 | +// 用于请求原生模板广告,注意:不要在广告打开期间释放! | |
| 13 | +@property (nonatomic ,strong) CNLiveNativeExpressAd * nativeExpressAd; | |
| 14 | +@property (nonatomic ,strong) CNLiveNativeExpressAdView * nativeExpressAdView; | |
| 15 | +// 存储返回的CNLiveNativeExpressAdView | |
| 16 | +@property (nonatomic, retain) NSArray *expressAdViews; | |
| 17 | +// 当前展示模板广告的View(开发者可以自己设置) | |
| 18 | +@property (strong, nonatomic) UIView *expressAdView; | |
| 19 | +@end | |
| 20 | + | |
| 21 | +@implementation ViewController | |
| 22 | + | |
| 23 | +- (void)viewDidLoad { | |
| 24 | + [super viewDidLoad]; | |
| 25 | + // Do any additional setup after loading the view, typically from a nib. | |
| 26 | +} | |
| 27 | + | |
| 28 | +- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event | |
| 29 | +{ | |
| 30 | + self.nativeExpressAd = [[CNLiveNativeExpressAd alloc] initWithAppkey:@"1106613382" placementId:@"6080720876728324" adSize:CGSizeMake(300, 200)];// 8040222876824656 | |
| 31 | + self.nativeExpressAd.delegate = self; | |
| 32 | + [self.nativeExpressAd loadAd:3]; | |
| 33 | +} | |
| 34 | + | |
| 35 | +#pragma mark - Delegate | |
| 36 | +- (void)nativeExpressAdSuccessToLoadViews:(NSArray<__kindof CNLiveNativeExpressAdView *> *)views | |
| 37 | +{ | |
| 38 | + [self.expressAdViews enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) { | |
| 39 | + CNLiveNativeExpressAdView *adView = (CNLiveNativeExpressAdView *)obj; | |
| 40 | + [adView removeFromSuperview]; | |
| 41 | + }]; | |
| 42 | + self.expressAdViews = [NSArray arrayWithArray:views]; | |
| 43 | + UIViewController *rootViewController = [[[UIApplication sharedApplication] keyWindow] rootViewController]; | |
| 44 | + if (self.expressAdViews.count) { | |
| 45 | + // 取一个CNLiveNativeExpressAdView | |
| 46 | + CNLiveNativeExpressAdView *expressView = [self.expressAdViews objectAtIndex:0]; | |
| 47 | + // 设置frame,开发者自己设置 | |
| 48 | + expressView.frame = CGRectMake(0, 0, 300, 200); | |
| 49 | + expressView.controller = rootViewController; | |
| 50 | + [expressView render]; | |
| 51 | + //添加View的时机,开发者控制 | |
| 52 | + [self.expressAdView addSubview:expressView]; | |
| 53 | + } | |
| 54 | +} | |
| 55 | + | |
| 56 | +- (void)nativeExpressAdFailToLoadError:(NSError *)error | |
| 57 | +{ | |
| 58 | + NSLog(@"%s",__FUNCTION__); | |
| 59 | +} | |
| 60 | + | |
| 61 | +- (void)nativeExpressAdViewRenderSuccess:(CNLiveNativeExpressAdView *)nativeExpressAdView | |
| 62 | +{ | |
| 63 | + NSLog(@"%s",__FUNCTION__); | |
| 64 | +} | |
| 65 | + | |
| 66 | +- (void)nativeExpressAdViewRenderFail:(CNLiveNativeExpressAdView *)nativeExpressAdView | |
| 67 | +{ | |
| 68 | + NSLog(@"%s",__FUNCTION__); | |
| 69 | +} | |
| 70 | + | |
| 71 | +- (void)nativeExpressAdViewExposure:(CNLiveNativeExpressAdView *)nativeExpressAdView | |
| 72 | +{ | |
| 73 | + NSLog(@"%s",__FUNCTION__); | |
| 74 | +} | |
| 75 | + | |
| 76 | +- (void)nativeExpressAdViewClicked:(CNLiveNativeExpressAdView *)nativeExpressAdView | |
| 77 | +{ | |
| 78 | + NSLog(@"%s",__FUNCTION__); | |
| 79 | +} | |
| 80 | + | |
| 81 | +/** | |
| 82 | + * 原生模板广告被关闭 | |
| 83 | + */ | |
| 84 | +- (void)nativeExpressAdViewClosed:(CNLiveNativeExpressAdView *)nativeExpressAdView | |
| 85 | +{ | |
| 86 | + NSLog(@"%s",__FUNCTION__); | |
| 87 | +} | |
| 88 | + | |
| 89 | +/** | |
| 90 | + * 点击原生模板广告以后即将弹出全屏广告页 | |
| 91 | + */ | |
| 92 | +- (void)nativeExpressAdViewWillPresentScreen:(CNLiveNativeExpressAdView *)nativeExpressAdView | |
| 93 | +{ | |
| 94 | + NSLog(@"%s",__FUNCTION__); | |
| 95 | +} | |
| 96 | + | |
| 97 | +/** | |
| 98 | + * 点击原生模板广告以后弹出全屏广告页 | |
| 99 | + */ | |
| 100 | +- (void)nativeExpressAdViewDidPresentScreen:(CNLiveNativeExpressAdView *)nativeExpressAdView | |
| 101 | +{ | |
| 102 | + NSLog(@"%s",__FUNCTION__); | |
| 103 | +} | |
| 104 | + | |
| 105 | +/** | |
| 106 | + * 全屏广告页将要关闭 | |
| 107 | + */ | |
| 108 | +- (void)nativeExpressAdViewWillDissmissScreen:(CNLiveNativeExpressAdView *)nativeExpressAdView | |
| 109 | +{ | |
| 110 | + NSLog(@"%s",__FUNCTION__); | |
| 111 | +} | |
| 112 | + | |
| 113 | +/** | |
| 114 | + * 全屏广告页关闭 | |
| 115 | + */ | |
| 116 | +- (void)nativeExpressAdViewDidDissmissScreen:(CNLiveNativeExpressAdView *)nativeExpressAdView | |
| 117 | +{ | |
| 118 | + NSLog(@"%s",__FUNCTION__); | |
| 119 | +} | |
| 120 | + | |
| 121 | +/** | |
| 122 | + * 原生模板广告点击之后应用进入后台时回调 | |
| 123 | + */ | |
| 124 | +- (void)nativeExpressAdViewApplicationWillEnterBackground:(CNLiveNativeExpressAdView *)nativeExpressAdView | |
| 125 | +{ | |
| 126 | + NSLog(@"%s",__FUNCTION__); | |
| 127 | +} | |
| 128 | + | |
| 129 | +#pragma mark - Getter | |
| 130 | +- (UIView *)expressAdView | |
| 131 | +{ | |
| 132 | + if (!_expressAdView) | |
| 133 | + { | |
| 134 | + _expressAdView = [[UIView alloc] initWithFrame:CGRectMake((self.view.bounds.size.width - 300)*0.5, 200, 300, 400)]; | |
| 135 | + _expressAdView.backgroundColor = [UIColor redColor]; | |
| 136 | + [self.view addSubview:_expressAdView]; | |
| 137 | + } | |
| 138 | + return _expressAdView; | |
| 139 | +} | |
| 140 | +- (void)didReceiveMemoryWarning { | |
| 141 | + [super didReceiveMemoryWarning]; | |
| 142 | + // Dispose of any resources that can be recreated. | |
| 143 | +} | |
| 144 | + | |
| 145 | + | |
| 146 | +@end | ... | ... |
CNLiveAdSDKDemo/CNLiveAdSDKDemo/other/Assets.xcassets/AppIcon.appiconset/Contents.json
0 → 100644
| 1 | +{ | |
| 2 | + "images" : [ | |
| 3 | + { | |
| 4 | + "idiom" : "iphone", | |
| 5 | + "size" : "20x20", | |
| 6 | + "scale" : "2x" | |
| 7 | + }, | |
| 8 | + { | |
| 9 | + "idiom" : "iphone", | |
| 10 | + "size" : "20x20", | |
| 11 | + "scale" : "3x" | |
| 12 | + }, | |
| 13 | + { | |
| 14 | + "idiom" : "iphone", | |
| 15 | + "size" : "29x29", | |
| 16 | + "scale" : "2x" | |
| 17 | + }, | |
| 18 | + { | |
| 19 | + "idiom" : "iphone", | |
| 20 | + "size" : "29x29", | |
| 21 | + "scale" : "3x" | |
| 22 | + }, | |
| 23 | + { | |
| 24 | + "idiom" : "iphone", | |
| 25 | + "size" : "40x40", | |
| 26 | + "scale" : "2x" | |
| 27 | + }, | |
| 28 | + { | |
| 29 | + "idiom" : "iphone", | |
| 30 | + "size" : "40x40", | |
| 31 | + "scale" : "3x" | |
| 32 | + }, | |
| 33 | + { | |
| 34 | + "idiom" : "iphone", | |
| 35 | + "size" : "60x60", | |
| 36 | + "scale" : "2x" | |
| 37 | + }, | |
| 38 | + { | |
| 39 | + "idiom" : "iphone", | |
| 40 | + "size" : "60x60", | |
| 41 | + "scale" : "3x" | |
| 42 | + }, | |
| 43 | + { | |
| 44 | + "idiom" : "ipad", | |
| 45 | + "size" : "20x20", | |
| 46 | + "scale" : "1x" | |
| 47 | + }, | |
| 48 | + { | |
| 49 | + "idiom" : "ipad", | |
| 50 | + "size" : "20x20", | |
| 51 | + "scale" : "2x" | |
| 52 | + }, | |
| 53 | + { | |
| 54 | + "idiom" : "ipad", | |
| 55 | + "size" : "29x29", | |
| 56 | + "scale" : "1x" | |
| 57 | + }, | |
| 58 | + { | |
| 59 | + "idiom" : "ipad", | |
| 60 | + "size" : "29x29", | |
| 61 | + "scale" : "2x" | |
| 62 | + }, | |
| 63 | + { | |
| 64 | + "idiom" : "ipad", | |
| 65 | + "size" : "40x40", | |
| 66 | + "scale" : "1x" | |
| 67 | + }, | |
| 68 | + { | |
| 69 | + "idiom" : "ipad", | |
| 70 | + "size" : "40x40", | |
| 71 | + "scale" : "2x" | |
| 72 | + }, | |
| 73 | + { | |
| 74 | + "idiom" : "ipad", | |
| 75 | + "size" : "76x76", | |
| 76 | + "scale" : "1x" | |
| 77 | + }, | |
| 78 | + { | |
| 79 | + "idiom" : "ipad", | |
| 80 | + "size" : "76x76", | |
| 81 | + "scale" : "2x" | |
| 82 | + }, | |
| 83 | + { | |
| 84 | + "idiom" : "ipad", | |
| 85 | + "size" : "83.5x83.5", | |
| 86 | + "scale" : "2x" | |
| 87 | + } | |
| 88 | + ], | |
| 89 | + "info" : { | |
| 90 | + "version" : 1, | |
| 91 | + "author" : "xcode" | |
| 92 | + } | |
| 93 | +} | |
| 0 | 94 | \ No newline at end of file | ... | ... |
CNLiveAdSDKDemo/CNLiveAdSDKDemo/other/Base.lproj/LaunchScreen.storyboard
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> | |
| 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="13772"/> | |
| 9 | + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | |
| 10 | + </dependencies> | |
| 11 | + <scenes> | |
| 12 | + <!--View Controller--> | |
| 13 | + <scene sceneID="EHf-IW-A2E"> | |
| 14 | + <objects> | |
| 15 | + <viewController id="01J-lp-oVM" sceneMemberID="viewController"> | |
| 16 | + <layoutGuides> | |
| 17 | + <viewControllerLayoutGuide type="top" id="Vpf-1y-NRF"/> | |
| 18 | + <viewControllerLayoutGuide type="bottom" id="RqQ-1i-sqJ"/> | |
| 19 | + </layoutGuides> | |
| 20 | + <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | |
| 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 | + </viewController> | |
| 26 | + <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> | |
| 27 | + </objects> | |
| 28 | + <point key="canvasLocation" x="53" y="375"/> | |
| 29 | + </scene> | |
| 30 | + </scenes> | |
| 31 | +</document> | ... | ... |
CNLiveAdSDKDemo/CNLiveAdSDKDemo/other/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="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r"> | |
| 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="13772"/> | |
| 9 | + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | |
| 10 | + </dependencies> | |
| 11 | + <scenes> | |
| 12 | + <!--View Controller--> | |
| 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="tD7-6X-yWO"/> | |
| 18 | + <viewControllerLayoutGuide type="bottom" id="Uk3-aF-KJo"/> | |
| 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 | + </viewController> | |
| 26 | + <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> | |
| 27 | + </objects> | |
| 28 | + </scene> | |
| 29 | + </scenes> | |
| 30 | +</document> | ... | ... |
CNLiveAdSDKDemo/CNLiveAdSDKDemo/other/main.m
0 → 100644
| 1 | +// | |
| 2 | +// main.m | |
| 3 | +// CNLiveAdSDKDemo | |
| 4 | +// | |
| 5 | +// Created by 张旭 on 2017/12/25. | |
| 6 | +// Copyright © 2017年 cnlive. 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 | +} | ... | ... |