Commit c4c6fe745550eb003533e4586156436f966a51e5

Authored by 张旭
1 parent 575bc9f4

工程

CNLiveAdSDKDemo/CNLiveAdSDKDemo.xcodeproj/project.pbxproj
@@ -13,7 +13,6 @@ @@ -13,7 +13,6 @@
13 D2C3FAB71FF0E77100276C14 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D2C3FAB61FF0E77100276C14 /* Assets.xcassets */; }; 13 D2C3FAB71FF0E77100276C14 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D2C3FAB61FF0E77100276C14 /* Assets.xcassets */; };
14 D2C3FABA1FF0E77100276C14 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D2C3FAB81FF0E77100276C14 /* LaunchScreen.storyboard */; }; 14 D2C3FABA1FF0E77100276C14 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D2C3FAB81FF0E77100276C14 /* LaunchScreen.storyboard */; };
15 D2C3FABD1FF0E77100276C14 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D2C3FABC1FF0E77100276C14 /* main.m */; }; 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, ); }; }; 16 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 */; }; 17 D2C3FACA1FF0E8DB00276C14 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FAC91FF0E8DB00276C14 /* CoreLocation.framework */; };
19 D2C3FACC1FF0E8E400276C14 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FACB1FF0E8E400276C14 /* QuartzCore.framework */; }; 18 D2C3FACC1FF0E8E400276C14 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FACB1FF0E8E400276C14 /* QuartzCore.framework */; };
@@ -23,6 +22,7 @@ @@ -23,6 +22,7 @@
23 D2C3FAD41FF0E90E00276C14 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FAD31FF0E90E00276C14 /* Security.framework */; }; 22 D2C3FAD41FF0E90E00276C14 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FAD31FF0E90E00276C14 /* Security.framework */; };
24 D2C3FAD61FF0E91400276C14 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FAD51FF0E91400276C14 /* StoreKit.framework */; }; 23 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, ); }; }; 24 D2C3FAD81FF0E91900276C14 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FAD71FF0E91900276C14 /* WebKit.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
  25 + D2C3FADA1FF0EA8E00276C14 /* CNLiveADSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2C3FAD91FF0EA8E00276C14 /* CNLiveADSDK.framework */; };
26 /* End PBXBuildFile section */ 26 /* End PBXBuildFile section */
27 27
28 /* Begin PBXFileReference section */ 28 /* Begin PBXFileReference section */
@@ -36,7 +36,6 @@ @@ -36,7 +36,6 @@
36 D2C3FAB91FF0E77100276C14 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; 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>"; }; 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>"; }; 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; }; 39 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; }; 40 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; }; 41 D2C3FACB1FF0E8E400276C14 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
@@ -46,6 +45,7 @@ @@ -46,6 +45,7 @@
46 D2C3FAD31FF0E90E00276C14 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; }; 45 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; }; 46 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; }; 47 D2C3FAD71FF0E91900276C14 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; };
  48 + D2C3FAD91FF0EA8E00276C14 /* CNLiveADSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLiveADSDK.framework; sourceTree = "<group>"; };
49 /* End PBXFileReference section */ 49 /* End PBXFileReference section */
50 50
51 /* Begin PBXFrameworksBuildPhase section */ 51 /* Begin PBXFrameworksBuildPhase section */
@@ -54,6 +54,7 @@ @@ -54,6 +54,7 @@
54 buildActionMask = 2147483647; 54 buildActionMask = 2147483647;
55 files = ( 55 files = (
56 D2C3FAD81FF0E91900276C14 /* WebKit.framework in Frameworks */, 56 D2C3FAD81FF0E91900276C14 /* WebKit.framework in Frameworks */,
  57 + D2C3FADA1FF0EA8E00276C14 /* CNLiveADSDK.framework in Frameworks */,
57 D2C3FAD61FF0E91400276C14 /* StoreKit.framework in Frameworks */, 58 D2C3FAD61FF0E91400276C14 /* StoreKit.framework in Frameworks */,
58 D2C3FAD41FF0E90E00276C14 /* Security.framework in Frameworks */, 59 D2C3FAD41FF0E90E00276C14 /* Security.framework in Frameworks */,
59 D2C3FAD21FF0E8FD00276C14 /* libz.tbd in Frameworks */, 60 D2C3FAD21FF0E8FD00276C14 /* libz.tbd in Frameworks */,
@@ -62,7 +63,6 @@ @@ -62,7 +63,6 @@
62 D2C3FACC1FF0E8E400276C14 /* QuartzCore.framework in Frameworks */, 63 D2C3FACC1FF0E8E400276C14 /* QuartzCore.framework in Frameworks */,
63 D2C3FACA1FF0E8DB00276C14 /* CoreLocation.framework in Frameworks */, 64 D2C3FACA1FF0E8DB00276C14 /* CoreLocation.framework in Frameworks */,
64 D2C3FAC81FF0E8CF00276C14 /* AdSupport.framework in Frameworks */, 65 D2C3FAC81FF0E8CF00276C14 /* AdSupport.framework in Frameworks */,
65 - D2C3FAC51FF0E81100276C14 /* CNLiveADSDK.framework in Frameworks */,  
66 ); 66 );
67 runOnlyForDeploymentPostprocessing = 0; 67 runOnlyForDeploymentPostprocessing = 0;
68 }; 68 };
@@ -89,7 +89,7 @@ @@ -89,7 +89,7 @@
89 D2C3FAAC1FF0E77100276C14 /* CNLiveAdSDKDemo */ = { 89 D2C3FAAC1FF0E77100276C14 /* CNLiveAdSDKDemo */ = {
90 isa = PBXGroup; 90 isa = PBXGroup;
91 children = ( 91 children = (
92 - D2C3FAC41FF0E81100276C14 /* CNLiveADSDK.framework */, 92 + D2C3FAD91FF0EA8E00276C14 /* CNLiveADSDK.framework */,
93 D2C3FABB1FF0E77100276C14 /* Info.plist */, 93 D2C3FABB1FF0E77100276C14 /* Info.plist */,
94 D2C3FAC31FF0E7C700276C14 /* other */, 94 D2C3FAC31FF0E7C700276C14 /* other */,
95 D2C3FAAD1FF0E77100276C14 /* AppDelegate.h */, 95 D2C3FAAD1FF0E77100276C14 /* AppDelegate.h */,
CNLiveAdSDKDemo/CNLiveAdSDKDemo/CNLiveADSDK.framework/CNLiveADSDK 100755 → 100644
No preview for this file type
CNLiveAdSDKDemo/CNLiveAdSDKDemo/Info.plist
@@ -41,5 +41,10 @@ @@ -41,5 +41,10 @@
41 <string>UIInterfaceOrientationLandscapeLeft</string> 41 <string>UIInterfaceOrientationLandscapeLeft</string>
42 <string>UIInterfaceOrientationLandscapeRight</string> 42 <string>UIInterfaceOrientationLandscapeRight</string>
43 </array> 43 </array>
  44 + <key>NSAppTransportSecurity</key>
  45 + <dict>
  46 + <key>NSAllowsArbitraryLoads</key>
  47 + <true/>
  48 + </dict>
44 </dict> 49 </dict>
45 </plist> 50 </plist>
CNLiveAdSDKDemo/CNLiveAdSDKDemo/ViewController.m
@@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
29 { 29 {
30 self.nativeExpressAd = [[CNLiveNativeExpressAd alloc] initWithAppkey:@"1106613382" placementId:@"6080720876728324" adSize:CGSizeMake(300, 200)];// 8040222876824656 30 self.nativeExpressAd = [[CNLiveNativeExpressAd alloc] initWithAppkey:@"1106613382" placementId:@"6080720876728324" adSize:CGSizeMake(300, 200)];// 8040222876824656
31 self.nativeExpressAd.delegate = self; 31 self.nativeExpressAd.delegate = self;
32 - [self.nativeExpressAd loadAd:3]; 32 + [self.nativeExpressAd loadAd:5];
33 } 33 }
34 34
35 #pragma mark - Delegate 35 #pragma mark - Delegate