Commit f4751dd91978baddb686ac3386ae56e267611c1b

Authored by 朱林
2 parents 5e1f178d de2aa036

Merge branch 'master' of bj.gitlab.cnlive.com:ios-team/VLionADSDKDemo

Conflicts:
	VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/Contents.json
Showing 52 changed files with 361 additions and 130 deletions
VLionADSDKDemo/VLionADSDKDemo/AppDelegate.m
@@ -28,7 +28,7 @@ @@ -28,7 +28,7 @@
28 configuration.skipButtonType = AdSkipButtonTypeTimeAndText; 28 configuration.skipButtonType = AdSkipButtonTypeTimeAndText;
29 configuration.frame = [UIScreen mainScreen].bounds; 29 configuration.frame = [UIScreen mainScreen].bounds;
30 30
31 - UIImage *image = [UIImage imageNamed:@"bg_launch_1242"]; 31 + UIImage *image = [UIImage imageNamed:@""];
32 32
33 [[VLionManager manager] vl_setupLaunchAdWithTagId:@"444" configuration:configuration keyWindow:[[UIApplication sharedApplication].delegate window] placeholderImage:image completeBlock:^(CGFloat w, CGFloat h, UIWindow * _Nonnull window) { 33 [[VLionManager manager] vl_setupLaunchAdWithTagId:@"444" configuration:configuration keyWindow:[[UIApplication sharedApplication].delegate window] placeholderImage:image completeBlock:^(CGFloat w, CGFloat h, UIWindow * _Nonnull window) {
34 34
VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/Contents.json
1 { 1 {
2 "images" : [ 2 "images" : [
3 { 3 {
4 - "idiom" : "iphone",  
5 "size" : "20x20", 4 "size" : "20x20",
  5 + "idiom" : "iphone",
  6 + "filename" : "icon-20@2x.png",
6 "scale" : "2x" 7 "scale" : "2x"
7 }, 8 },
8 { 9 {
9 - "idiom" : "iphone",  
10 "size" : "20x20", 10 "size" : "20x20",
  11 + "idiom" : "iphone",
  12 + "filename" : "icon-20@3x.png",
11 "scale" : "3x" 13 "scale" : "3x"
12 }, 14 },
13 { 15 {
14 - "idiom" : "iphone",  
15 "size" : "29x29", 16 "size" : "29x29",
  17 + "idiom" : "iphone",
  18 + "filename" : "icon-29@2x.png",
16 "scale" : "2x" 19 "scale" : "2x"
17 }, 20 },
18 { 21 {
19 - "idiom" : "iphone",  
20 "size" : "29x29", 22 "size" : "29x29",
  23 + "idiom" : "iphone",
  24 + "filename" : "icon-29@3x.png",
21 "scale" : "3x" 25 "scale" : "3x"
22 }, 26 },
23 { 27 {
24 - "idiom" : "iphone",  
25 "size" : "40x40", 28 "size" : "40x40",
  29 + "idiom" : "iphone",
  30 + "filename" : "icon-40@2x-1.png",
26 "scale" : "2x" 31 "scale" : "2x"
27 }, 32 },
28 { 33 {
29 - "idiom" : "iphone",  
30 "size" : "40x40", 34 "size" : "40x40",
  35 + "idiom" : "iphone",
  36 + "filename" : "icon-40@3x.png",
31 "scale" : "3x" 37 "scale" : "3x"
32 }, 38 },
33 { 39 {
34 - "idiom" : "iphone",  
35 "size" : "60x60", 40 "size" : "60x60",
  41 + "idiom" : "iphone",
  42 + "filename" : "icon-60@2x.png",
36 "scale" : "2x" 43 "scale" : "2x"
37 }, 44 },
38 { 45 {
39 - "idiom" : "iphone",  
40 "size" : "60x60", 46 "size" : "60x60",
  47 + "idiom" : "iphone",
  48 + "filename" : "icon-60@3x.png",
41 "scale" : "3x" 49 "scale" : "3x"
42 }, 50 },
43 { 51 {
44 - "idiom" : "ipad",  
45 "size" : "20x20", 52 "size" : "20x20",
  53 + "idiom" : "ipad",
  54 + "filename" : "icon-20-ipad.png",
46 "scale" : "1x" 55 "scale" : "1x"
47 }, 56 },
48 { 57 {
49 - "idiom" : "ipad",  
50 "size" : "20x20", 58 "size" : "20x20",
  59 + "idiom" : "ipad",
  60 + "filename" : "icon-20@2x-ipad.png",
51 "scale" : "2x" 61 "scale" : "2x"
52 }, 62 },
53 { 63 {
54 - "idiom" : "ipad",  
55 "size" : "29x29", 64 "size" : "29x29",
  65 + "idiom" : "ipad",
  66 + "filename" : "icon-29-ipad.png",
56 "scale" : "1x" 67 "scale" : "1x"
57 }, 68 },
58 { 69 {
59 - "idiom" : "ipad",  
60 "size" : "29x29", 70 "size" : "29x29",
  71 + "idiom" : "ipad",
  72 + "filename" : "icon-29@2x-ipad.png",
61 "scale" : "2x" 73 "scale" : "2x"
62 }, 74 },
63 { 75 {
64 - "idiom" : "ipad",  
65 "size" : "40x40", 76 "size" : "40x40",
  77 + "idiom" : "ipad",
  78 + "filename" : "icon-40.png",
66 "scale" : "1x" 79 "scale" : "1x"
67 }, 80 },
68 { 81 {
69 - "idiom" : "ipad",  
70 "size" : "40x40", 82 "size" : "40x40",
  83 + "idiom" : "ipad",
  84 + "filename" : "icon-40@2x.png",
71 "scale" : "2x" 85 "scale" : "2x"
72 }, 86 },
73 { 87 {
74 - "idiom" : "ipad",  
75 "size" : "76x76", 88 "size" : "76x76",
  89 + "idiom" : "ipad",
  90 + "filename" : "icon-76.png",
76 "scale" : "1x" 91 "scale" : "1x"
77 }, 92 },
78 { 93 {
79 - "idiom" : "ipad",  
80 "size" : "76x76", 94 "size" : "76x76",
  95 + "idiom" : "ipad",
  96 + "filename" : "icon-76@2x.png",
81 "scale" : "2x" 97 "scale" : "2x"
82 }, 98 },
83 { 99 {
84 - "idiom" : "ipad",  
85 "size" : "83.5x83.5", 100 "size" : "83.5x83.5",
  101 + "idiom" : "ipad",
  102 + "filename" : "icon-83.5@2x.png",
86 "scale" : "2x" 103 "scale" : "2x"
87 }, 104 },
88 { 105 {
89 - "idiom" : "ios-marketing",  
90 "size" : "1024x1024", 106 "size" : "1024x1024",
  107 + "idiom" : "ios-marketing",
  108 + "filename" : "iTunesArtwork@2x.png",
91 "scale" : "1x" 109 "scale" : "1x"
92 } 110 }
93 ], 111 ],
VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/iTunesArtwork@2x.png 0 → 100644

77.4 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-20-ipad.png 0 → 100644

963 Bytes

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-20@2x-ipad.png 0 → 100644

1.42 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png 0 → 100644

1.42 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png 0 → 100644

2.39 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-29-ipad.png 0 → 100644

1.03 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-29@2x-ipad.png 0 → 100644

2.26 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png 0 → 100644

2.26 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png 0 → 100644

4.05 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-40.png 0 → 100644

1.42 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-40@2x-1.png 0 → 100644

3.52 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png 0 → 100644

3.52 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png 0 → 100644

6.32 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png 0 → 100644

6.32 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png 0 → 100644

11.5 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-76.png 0 → 100644

3.27 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png 0 → 100644

8.92 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png 0 → 100644

10.3 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage-1.launchimage/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "extent" : "full-screen",
  5 + "idiom" : "iphone",
  6 + "subtype" : "2436h",
  7 + "filename" : "bg_launch 1125_2436.png",
  8 + "minimum-system-version" : "11.0",
  9 + "orientation" : "portrait",
  10 + "scale" : "3x"
  11 + },
  12 + {
  13 + "extent" : "full-screen",
  14 + "idiom" : "iphone",
  15 + "subtype" : "736h",
  16 + "filename" : "bg_launch 1242_2208.png",
  17 + "minimum-system-version" : "8.0",
  18 + "orientation" : "portrait",
  19 + "scale" : "3x"
  20 + },
  21 + {
  22 + "extent" : "full-screen",
  23 + "idiom" : "iphone",
  24 + "subtype" : "667h",
  25 + "filename" : "bg_launch 750_1334.png",
  26 + "minimum-system-version" : "8.0",
  27 + "orientation" : "portrait",
  28 + "scale" : "2x"
  29 + },
  30 + {
  31 + "orientation" : "portrait",
  32 + "idiom" : "iphone",
  33 + "filename" : "bg_launch_640x960.png",
  34 + "extent" : "full-screen",
  35 + "minimum-system-version" : "7.0",
  36 + "scale" : "2x"
  37 + },
  38 + {
  39 + "extent" : "full-screen",
  40 + "idiom" : "iphone",
  41 + "subtype" : "retina4",
  42 + "filename" : "bg_launch 640_1136.png",
  43 + "minimum-system-version" : "7.0",
  44 + "orientation" : "portrait",
  45 + "scale" : "2x"
  46 + },
  47 + {
  48 + "orientation" : "portrait",
  49 + "idiom" : "ipad",
  50 + "extent" : "full-screen",
  51 + "minimum-system-version" : "7.0",
  52 + "scale" : "1x"
  53 + },
  54 + {
  55 + "orientation" : "portrait",
  56 + "idiom" : "ipad",
  57 + "extent" : "full-screen",
  58 + "minimum-system-version" : "7.0",
  59 + "scale" : "2x"
  60 + },
  61 + {
  62 + "orientation" : "portrait",
  63 + "idiom" : "iphone",
  64 + "extent" : "full-screen",
  65 + "scale" : "1x"
  66 + },
  67 + {
  68 + "orientation" : "portrait",
  69 + "idiom" : "iphone",
  70 + "filename" : "bg_launch_640x960-1.png",
  71 + "extent" : "full-screen",
  72 + "scale" : "2x"
  73 + },
  74 + {
  75 + "orientation" : "portrait",
  76 + "idiom" : "iphone",
  77 + "filename" : "bg_launch 640_1136-1.png",
  78 + "extent" : "full-screen",
  79 + "subtype" : "retina4",
  80 + "scale" : "2x"
  81 + },
  82 + {
  83 + "orientation" : "portrait",
  84 + "idiom" : "ipad",
  85 + "extent" : "to-status-bar",
  86 + "scale" : "1x"
  87 + },
  88 + {
  89 + "orientation" : "portrait",
  90 + "idiom" : "ipad",
  91 + "extent" : "full-screen",
  92 + "scale" : "1x"
  93 + },
  94 + {
  95 + "orientation" : "landscape",
  96 + "idiom" : "ipad",
  97 + "extent" : "to-status-bar",
  98 + "scale" : "1x"
  99 + },
  100 + {
  101 + "orientation" : "landscape",
  102 + "idiom" : "ipad",
  103 + "extent" : "full-screen",
  104 + "scale" : "1x"
  105 + },
  106 + {
  107 + "orientation" : "portrait",
  108 + "idiom" : "ipad",
  109 + "extent" : "to-status-bar",
  110 + "scale" : "2x"
  111 + },
  112 + {
  113 + "orientation" : "portrait",
  114 + "idiom" : "ipad",
  115 + "extent" : "full-screen",
  116 + "scale" : "2x"
  117 + },
  118 + {
  119 + "orientation" : "landscape",
  120 + "idiom" : "ipad",
  121 + "extent" : "to-status-bar",
  122 + "scale" : "2x"
  123 + },
  124 + {
  125 + "orientation" : "landscape",
  126 + "idiom" : "ipad",
  127 + "extent" : "full-screen",
  128 + "scale" : "2x"
  129 + }
  130 + ],
  131 + "info" : {
  132 + "version" : 1,
  133 + "author" : "xcode"
  134 + }
  135 +}
0 \ No newline at end of file 136 \ No newline at end of file
VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage-1.launchimage/bg_launch 1125_2436.png 0 → 100644

343 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage-1.launchimage/bg_launch 1242_2208.png 0 → 100644

342 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage-1.launchimage/bg_launch 640_1136-1.png 0 → 100644

124 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage-1.launchimage/bg_launch 640_1136.png 0 → 100644

124 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage-1.launchimage/bg_launch 750_1334.png 0 → 100644

159 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage-1.launchimage/bg_launch_640x960-1.png 0 → 100644

108 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage-1.launchimage/bg_launch_640x960.png 0 → 100644

108 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/Contents.json
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 "extent" : "full-screen", 4 "extent" : "full-screen",
5 "idiom" : "iphone", 5 "idiom" : "iphone",
6 "subtype" : "2436h", 6 "subtype" : "2436h",
7 - "filename" : "bg_launch_1242 2-1.png", 7 + "filename" : "bg_launch 1125_2436.png",
8 "minimum-system-version" : "11.0", 8 "minimum-system-version" : "11.0",
9 "orientation" : "portrait", 9 "orientation" : "portrait",
10 "scale" : "3x" 10 "scale" : "3x"
@@ -12,17 +12,8 @@ @@ -12,17 +12,8 @@
12 { 12 {
13 "extent" : "full-screen", 13 "extent" : "full-screen",
14 "idiom" : "iphone", 14 "idiom" : "iphone",
15 - "subtype" : "2436h",  
16 - "filename" : "bg_launch_1242 2-2.png",  
17 - "minimum-system-version" : "11.0",  
18 - "orientation" : "landscape",  
19 - "scale" : "3x"  
20 - },  
21 - {  
22 - "extent" : "full-screen",  
23 - "idiom" : "iphone",  
24 "subtype" : "736h", 15 "subtype" : "736h",
25 - "filename" : "bg_launch_1242.png", 16 + "filename" : "bg_launch 1242_2208.png",
26 "minimum-system-version" : "8.0", 17 "minimum-system-version" : "8.0",
27 "orientation" : "portrait", 18 "orientation" : "portrait",
28 "scale" : "3x" 19 "scale" : "3x"
@@ -30,17 +21,8 @@ @@ -30,17 +21,8 @@
30 { 21 {
31 "extent" : "full-screen", 22 "extent" : "full-screen",
32 "idiom" : "iphone", 23 "idiom" : "iphone",
33 - "subtype" : "736h",  
34 - "filename" : "bg_launch_1242 2-3.png",  
35 - "minimum-system-version" : "8.0",  
36 - "orientation" : "landscape",  
37 - "scale" : "3x"  
38 - },  
39 - {  
40 - "extent" : "full-screen",  
41 - "idiom" : "iphone",  
42 "subtype" : "667h", 24 "subtype" : "667h",
43 - "filename" : "bg_launch_750.png", 25 + "filename" : "bg_launch 750_1334.png",
44 "minimum-system-version" : "8.0", 26 "minimum-system-version" : "8.0",
45 "orientation" : "portrait", 27 "orientation" : "portrait",
46 "scale" : "2x" 28 "scale" : "2x"
@@ -48,7 +30,7 @@ @@ -48,7 +30,7 @@
48 { 30 {
49 "orientation" : "portrait", 31 "orientation" : "portrait",
50 "idiom" : "iphone", 32 "idiom" : "iphone",
51 - "filename" : "bg_launch_640_960-1.png", 33 + "filename" : "bg_launch_640x960-1.png",
52 "extent" : "full-screen", 34 "extent" : "full-screen",
53 "minimum-system-version" : "7.0", 35 "minimum-system-version" : "7.0",
54 "scale" : "2x" 36 "scale" : "2x"
@@ -57,19 +39,12 @@ @@ -57,19 +39,12 @@
57 "extent" : "full-screen", 39 "extent" : "full-screen",
58 "idiom" : "iphone", 40 "idiom" : "iphone",
59 "subtype" : "retina4", 41 "subtype" : "retina4",
60 - "filename" : "bg_launch_640_1136-1.png", 42 + "filename" : "bg_launch 640_1136-1.png",
61 "minimum-system-version" : "7.0", 43 "minimum-system-version" : "7.0",
62 "orientation" : "portrait", 44 "orientation" : "portrait",
63 "scale" : "2x" 45 "scale" : "2x"
64 }, 46 },
65 { 47 {
66 - "orientation" : "portrait",  
67 - "idiom" : "ipad",  
68 - "extent" : "full-screen",  
69 - "minimum-system-version" : "7.0",  
70 - "scale" : "1x"  
71 - },  
72 - {  
73 "orientation" : "landscape", 48 "orientation" : "landscape",
74 "idiom" : "ipad", 49 "idiom" : "ipad",
75 "extent" : "full-screen", 50 "extent" : "full-screen",
@@ -78,52 +53,30 @@ @@ -78,52 +53,30 @@
78 }, 53 },
79 { 54 {
80 "orientation" : "portrait", 55 "orientation" : "portrait",
81 - "idiom" : "ipad", 56 + "idiom" : "iphone",
82 "extent" : "full-screen", 57 "extent" : "full-screen",
83 - "minimum-system-version" : "7.0",  
84 - "scale" : "2x"  
85 - },  
86 - {  
87 - "orientation" : "portrait",  
88 - "idiom" : "ipad",  
89 - "extent" : "to-status-bar",  
90 "scale" : "1x" 58 "scale" : "1x"
91 }, 59 },
92 { 60 {
93 "orientation" : "portrait", 61 "orientation" : "portrait",
94 - "idiom" : "ipad",  
95 - "extent" : "full-screen",  
96 - "scale" : "1x"  
97 - },  
98 - {  
99 - "orientation" : "landscape",  
100 - "idiom" : "ipad",  
101 - "extent" : "to-status-bar",  
102 - "scale" : "1x"  
103 - },  
104 - {  
105 - "orientation" : "landscape",  
106 - "idiom" : "ipad", 62 + "idiom" : "iphone",
  63 + "filename" : "bg_launch_640x960.png",
107 "extent" : "full-screen", 64 "extent" : "full-screen",
108 - "scale" : "1x"  
109 - },  
110 - {  
111 - "orientation" : "portrait",  
112 - "idiom" : "ipad",  
113 - "extent" : "to-status-bar",  
114 "scale" : "2x" 65 "scale" : "2x"
115 }, 66 },
116 { 67 {
117 "orientation" : "portrait", 68 "orientation" : "portrait",
118 - "idiom" : "ipad", 69 + "idiom" : "iphone",
  70 + "filename" : "bg_launch 640_1136.png",
119 "extent" : "full-screen", 71 "extent" : "full-screen",
  72 + "subtype" : "retina4",
120 "scale" : "2x" 73 "scale" : "2x"
121 }, 74 },
122 { 75 {
123 "orientation" : "landscape", 76 "orientation" : "landscape",
124 "idiom" : "ipad", 77 "idiom" : "ipad",
125 - "extent" : "to-status-bar",  
126 - "scale" : "2x" 78 + "extent" : "full-screen",
  79 + "scale" : "1x"
127 }, 80 },
128 { 81 {
129 "orientation" : "landscape", 82 "orientation" : "landscape",
@@ -134,57 +87,9 @@ @@ -134,57 +87,9 @@
134 "scale" : "2x" 87 "scale" : "2x"
135 }, 88 },
136 { 89 {
137 - "extent" : "full-screen",  
138 - "idiom" : "ipad",  
139 - "subtype" : "736h",  
140 - "filename" : "bg_launch_1242.png",  
141 - "minimum-system-version" : "7.0",  
142 - "orientation" : "landscape",  
143 - "scale" : "3x"  
144 - },  
145 - {  
146 "idiom" : "iphone", 90 "idiom" : "iphone",
147 "scale" : "1x", 91 "scale" : "1x",
148 "extent" : "full-screen" 92 "extent" : "full-screen"
149 - },  
150 - {  
151 - "extent" : "full-screen",  
152 - "idiom" : "iphone",  
153 - "subtype" : "667h",  
154 - "filename" : "bg_launch_750.png",  
155 - "minimum-system-version" : "8.0",  
156 - "orientation" : "portrait",  
157 - "unassigned" : true,  
158 - "scale" : "2x"  
159 - },  
160 - {  
161 - "extent" : "full-screen",  
162 - "idiom" : "iphone",  
163 - "filename" : "bg_launch_640_960-1.png",  
164 - "minimum-system-version" : "7.0",  
165 - "orientation" : "portrait",  
166 - "unassigned" : true,  
167 - "scale" : "2x"  
168 - },  
169 - {  
170 - "extent" : "full-screen",  
171 - "idiom" : "iphone",  
172 - "subtype" : "retina4",  
173 - "filename" : "bg_launch_640_960.png",  
174 - "minimum-system-version" : "7.0",  
175 - "orientation" : "portrait",  
176 - "unassigned" : true,  
177 - "scale" : "2x"  
178 - },  
179 - {  
180 - "extent" : "full-screen",  
181 - "idiom" : "iphone",  
182 - "subtype" : "retina4",  
183 - "filename" : "bg_launch_640_1136.png",  
184 - "minimum-system-version" : "7.0",  
185 - "orientation" : "portrait",  
186 - "unassigned" : true,  
187 - "scale" : "2x"  
188 } 93 }
189 ], 94 ],
190 "info" : { 95 "info" : {
VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch 1125_2436.png 0 → 100644

343 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch 1242_2208.png 0 → 100644

342 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch 640_1136-1.png 0 → 100644

124 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch 640_1136.png 0 → 100644

124 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch 750_1334.png 0 → 100644

159 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch_1242 2-1.png deleted 100644 → 0

549 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch_1242 2-2.png deleted 100644 → 0

549 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch_1242 2-3.png deleted 100644 → 0

549 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch_1242.png deleted 100644 → 0

549 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch_640_1136-1.png deleted 100644 → 0

207 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch_640_1136.png deleted 100644 → 0

207 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch_640_960-1.png deleted 100644 → 0

204 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch_640_960.png deleted 100644 → 0

204 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch_640x960-1.png 0 → 100644

108 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch_640x960.png 0 → 100644

108 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/LaunchImage.launchimage/bg_launch_750.png deleted 100644 → 0

263 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/bg_activity.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "filename" : "bg_activity.png",
  6 + "scale" : "1x"
  7 + },
  8 + {
  9 + "idiom" : "universal",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "scale" : "3x"
  15 + }
  16 + ],
  17 + "info" : {
  18 + "version" : 1,
  19 + "author" : "xcode"
  20 + }
  21 +}
0 \ No newline at end of file 22 \ No newline at end of file
VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/bg_activity.imageset/bg_activity.png 0 → 100644

24 KB

VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/log_max.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "log_max.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "scale" : "3x"
  15 + }
  16 + ],
  17 + "info" : {
  18 + "version" : 1,
  19 + "author" : "xcode"
  20 + }
  21 +}
0 \ No newline at end of file 22 \ No newline at end of file
VLionADSDKDemo/VLionADSDKDemo/Assets.xcassets/log_max.imageset/log_max.png 0 → 100644

7.81 KB

VLionADSDKDemo/VLionADSDKDemo/BannerADController.m
@@ -21,7 +21,9 @@ @@ -21,7 +21,9 @@
21 [super viewDidLoad]; 21 [super viewDidLoad];
22 // Do any additional setup after loading the view. 22 // Do any additional setup after loading the view.
23 self.view.backgroundColor = [UIColor whiteColor]; 23 self.view.backgroundColor = [UIColor whiteColor];
24 - 24 + UIImageView *bg = [[UIImageView alloc] initWithFrame:self.view.bounds];
  25 + bg.image = [UIImage imageNamed:@"bg_activity"];
  26 + [self.view addSubview:bg];
25 27
26 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; 28 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
27 button.frame = CGRectMake(self.view.bounds.size.width-40, 64, 40, 40); 29 button.frame = CGRectMake(self.view.bounds.size.width-40, 64, 40, 40);
VLionADSDKDemo/VLionADSDKDemo/NativeAdListsController.m
@@ -24,6 +24,10 @@ @@ -24,6 +24,10 @@
24 // Do any additional setup after loading the view. 24 // Do any additional setup after loading the view.
25 self.view.backgroundColor = [UIColor whiteColor]; 25 self.view.backgroundColor = [UIColor whiteColor];
26 26
  27 + UIImageView *bg = [[UIImageView alloc] initWithFrame:self.view.bounds];
  28 + bg.image = [UIImage imageNamed:@"bg_activity"];
  29 + [self.view addSubview:bg];
  30 +
27 [self.view addSubview:self.closeBtn]; 31 [self.view addSubview:self.closeBtn];
28 32
29 NSArray *titleArr = @[@"原生新闻广告数据",@"原生应用墙广告数据",@"原生轮播图广告数据",@"原生瀑布流广告数据",@"原生信息流广告数据"]; 33 NSArray *titleArr = @[@"原生新闻广告数据",@"原生应用墙广告数据",@"原生轮播图广告数据",@"原生瀑布流广告数据",@"原生信息流广告数据"];
@@ -49,30 +53,129 @@ @@ -49,30 +53,129 @@
49 case 10000: {//新闻 53 case 10000: {//新闻
50 [[VLionManager manager] vl_nativeAdNewsWithTagId:@"" handler:^(VLionNativeAdNewsModel * _Nullable adModel, NSDictionary * _Nullable errorDic) { 54 [[VLionManager manager] vl_nativeAdNewsWithTagId:@"" handler:^(VLionNativeAdNewsModel * _Nullable adModel, NSDictionary * _Nullable errorDic) {
51 NSLog(@"model:%@",adModel); 55 NSLog(@"model:%@",adModel);
52 - }]; 56 + if (errorDic) {
  57 + [self toast:[NSString stringWithFormat:@"错误码:%@,%@",errorDic[@"errorCode"],errorDic[@"errorMessage"]]];
  58 + }else
  59 + {
  60 + [self toast:[NSString stringWithFormat:@"model:%@",adModel]];
  61 + } }];
53 } 62 }
54 break; 63 break;
55 case 10001: {//应用墙 64 case 10001: {//应用墙
56 [[VLionManager manager] vl_nativeAdAppWallWithTagId:@"" handler:^(VLionNativeAdAppWallModel * _Nullable adModel, NSDictionary * _Nullable errorDic) { 65 [[VLionManager manager] vl_nativeAdAppWallWithTagId:@"" handler:^(VLionNativeAdAppWallModel * _Nullable adModel, NSDictionary * _Nullable errorDic) {
57 NSLog(@"model:%@",adModel); 66 NSLog(@"model:%@",adModel);
  67 + if (errorDic) {
  68 + [self toast:[NSString stringWithFormat:@"错误码:%@,%@",errorDic[@"errorCode"],errorDic[@"errorMessage"]]];
  69 + }else
  70 + {
  71 + [self toast:[NSString stringWithFormat:@"model:%@",adModel]];
  72 + }
58 }]; 73 }];
59 } 74 }
60 break; 75 break;
61 case 10002: {//轮播图 76 case 10002: {//轮播图
62 [[VLionManager manager] vl_nativeAdShufflingWithTagId:@"339" handler:^(VLionNativeAdShufflingModel * _Nullable adModel, NSDictionary * _Nullable errorDic) { 77 [[VLionManager manager] vl_nativeAdShufflingWithTagId:@"339" handler:^(VLionNativeAdShufflingModel * _Nullable adModel, NSDictionary * _Nullable errorDic) {
63 NSLog(@"model:%@",adModel); 78 NSLog(@"model:%@",adModel);
  79 + if (errorDic) {
  80 + [self toast:[NSString stringWithFormat:@"错误码:%@,%@",errorDic[@"errorCode"],errorDic[@"errorMessage"]]];
  81 + }else
  82 + {
  83 + NSString *string = @"";
  84 + string = [string stringByAppendingString:[NSString stringWithFormat:@"状态码:%d\n",adModel.status]];
  85 + string = [string stringByAppendingString:[NSString stringWithFormat:@"创意类型:%d\n",adModel.adt]];
  86 + string = [string stringByAppendingString:[NSString stringWithFormat:@"广告位id:%d\n",adModel.tagid]];
  87 + string = [string stringByAppendingString:[NSString stringWithFormat:@"物料ID:%@\n",adModel.cid]];
  88 + NSArray *imp_tracking = [NSArray arrayWithArray:adModel.imp_tracking];
  89 + if (imp_tracking.count > 0) {
  90 + for (int i = 0; i < imp_tracking.count; i ++) {
  91 + string = [string stringByAppendingString:[NSString stringWithFormat:@"曝光监测地址:%@\n",imp_tracking[i]]];
  92 + }
  93 + }
  94 + NSArray *clk_tracking = [NSArray arrayWithArray:adModel.clk_tracking];
  95 + if (clk_tracking.count > 0) {
  96 + for (int i = 0; i < clk_tracking.count; i ++) {
  97 + string = [string stringByAppendingString:[NSString stringWithFormat:@"点击监测地址:%@\n",clk_tracking[i]]];
  98 + }
  99 + }
  100 + string = [string stringByAppendingString:[NSString stringWithFormat:@"落地页:%@\n",adModel.nativead.ldp]];
  101 + NSArray *img = [NSArray arrayWithArray:adModel.nativead.icon];
  102 + if (img.count > 0) {
  103 + for (int i = 0; i < img.count; i ++) {
  104 + VLionNativeAdIconModel *mdl = ((VLionNativeAdIconModel *)img[i]);
  105 + string = [string stringByAppendingString:[NSString stringWithFormat:@"大图url:%@,w:%d,h:%d\n",mdl.url,mdl.w,mdl.h]];
  106 + }
  107 + }
  108 + string = [string stringByAppendingString:[NSString stringWithFormat:@"标题名称:%@\n",adModel.nativead.title]];
  109 + string = [string stringByAppendingString:[NSString stringWithFormat:@"标题描述:%@\n",adModel.nativead.desc]];
  110 + string = [string stringByAppendingString:[NSString stringWithFormat:@"下载地址:%@\n",adModel.nativead.app_download_url]];
  111 + NSLog(@"string:\n%@",string);
  112 + [self toast:string];
  113 + }
64 }]; 114 }];
65 } 115 }
66 break; 116 break;
67 case 10003: {//瀑布流 117 case 10003: {//瀑布流
68 [[VLionManager manager] vl_nativeAdWaterfallWithTagId:@"" handler:^(VLionNativeAdWaterfallModel * _Nullable adModel, NSDictionary * _Nullable errorDic) { 118 [[VLionManager manager] vl_nativeAdWaterfallWithTagId:@"" handler:^(VLionNativeAdWaterfallModel * _Nullable adModel, NSDictionary * _Nullable errorDic) {
69 NSLog(@"model:%@",adModel); 119 NSLog(@"model:%@",adModel);
  120 + if (errorDic) {
  121 + [self toast:[NSString stringWithFormat:@"错误码:%@,%@",errorDic[@"errorCode"],errorDic[@"errorMessage"]]];
  122 + }else
  123 + {
  124 + [self toast:[NSString stringWithFormat:@"model:%@",adModel]];
  125 + }
70 }]; 126 }];
71 } 127 }
72 break; 128 break;
73 case 10004: {//信息流 129 case 10004: {//信息流
74 [[VLionManager manager] vl_nativeAdInformationFlowWithTagId:@"425" handler:^(VLionNativeAdInformationFlowModel * _Nullable adModel, NSDictionary * _Nullable errorDic) { 130 [[VLionManager manager] vl_nativeAdInformationFlowWithTagId:@"425" handler:^(VLionNativeAdInformationFlowModel * _Nullable adModel, NSDictionary * _Nullable errorDic) {
75 - NSLog(@"model:%@",adModel); 131 + if (errorDic) {
  132 + [self toast:[NSString stringWithFormat:@"错误码:%@,%@",errorDic[@"errorCode"],errorDic[@"errorMessage"]]];
  133 + }else
  134 + {
  135 + NSString *string = @"";
  136 + string = [string stringByAppendingString:[NSString stringWithFormat:@"状态码:%d\n",adModel.status]];
  137 + string = [string stringByAppendingString:[NSString stringWithFormat:@"创意类型:%d\n",adModel.adt]];
  138 + string = [string stringByAppendingString:[NSString stringWithFormat:@"广告位id:%d\n",adModel.tagid]];
  139 + string = [string stringByAppendingString:[NSString stringWithFormat:@"物料ID:%@\n",adModel.cid]];
  140 + NSArray *imp_tracking = [NSArray arrayWithArray:adModel.imp_tracking];
  141 + if (imp_tracking.count > 0) {
  142 + for (int i = 0; i < imp_tracking.count; i ++) {
  143 + string = [string stringByAppendingString:[NSString stringWithFormat:@"曝光监测地址:%@\n",imp_tracking[i]]];
  144 + }
  145 + }
  146 + NSArray *clk_tracking = [NSArray arrayWithArray:adModel.clk_tracking];
  147 + if (clk_tracking.count > 0) {
  148 + for (int i = 0; i < clk_tracking.count; i ++) {
  149 + string = [string stringByAppendingString:[NSString stringWithFormat:@"点击监测地址:%@\n",clk_tracking[i]]];
  150 + }
  151 + }
  152 + string = [string stringByAppendingString:[NSString stringWithFormat:@"落地页:%@\n",adModel.nativead.ldp]];
  153 +
  154 + NSArray *icon = [NSArray arrayWithArray:adModel.nativead.icon];
  155 + if (icon.count > 0) {
  156 + for (int i = 0; i < icon.count; i ++) {
  157 + VLionNativeAdIconModel *mdl = ((VLionNativeAdIconModel *)icon[i]);
  158 + string = [string stringByAppendingString:[NSString stringWithFormat:@"图标url:%@,w:%d,h:%d\n",mdl.url,mdl.w,mdl.h]];
  159 + }
  160 + }
  161 +
  162 + NSArray *img = [NSArray arrayWithArray:adModel.nativead.icon];
  163 + if (img.count > 0) {
  164 + for (int i = 0; i < img.count; i ++) {
  165 + VLionNativeAdIconModel *mdl = ((VLionNativeAdIconModel *)img[i]);
  166 + string = [string stringByAppendingString:[NSString stringWithFormat:@"大图url:%@,w:%d,h:%d\n",mdl.url,mdl.w,mdl.h]];
  167 + }
  168 + }
  169 +
  170 + string = [string stringByAppendingString:[NSString stringWithFormat:@"标题名称:%@\n",adModel.nativead.title]];
  171 + string = [string stringByAppendingString:[NSString stringWithFormat:@"标题描述:%@\n",adModel.nativead.desc]];
  172 + string = [string stringByAppendingString:[NSString stringWithFormat:@"评定星级:%d\n",adModel.nativead.rating]];
  173 + string = [string stringByAppendingString:[NSString stringWithFormat:@"按钮标题:%@\n",adModel.nativead.button]];
  174 + string = [string stringByAppendingString:[NSString stringWithFormat:@"下载次数:%d\n",adModel.nativead.download_count]];
  175 + string = [string stringByAppendingString:[NSString stringWithFormat:@"下载地址:%@\n",adModel.nativead.app_download_url]];
  176 + NSLog(@"string:\n%@",string);
  177 + [self toast:string];
  178 + }
76 }]; 179 }];
77 } 180 }
78 break; 181 break;
@@ -86,6 +189,22 @@ @@ -86,6 +189,22 @@
86 [self dismissViewControllerAnimated:YES completion:NULL]; 189 [self dismissViewControllerAnimated:YES completion:NULL];
87 } 190 }
88 191
  192 +#pragma mark - alertView
  193 +- (void)toast:(NSString *)message
  194 +{
  195 +
  196 + UIAlertView *toast = [[UIAlertView alloc] initWithTitle:nil
  197 + message:message
  198 + delegate:nil
  199 + cancelButtonTitle:nil
  200 + otherButtonTitles:nil, nil];
  201 + [toast show];
  202 + double duration = 2.5;
  203 + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(duration * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
  204 + [toast dismissWithClickedButtonIndex:0 animated:NO];
  205 + });
  206 +}
  207 +
89 - (UIButton *)closeBtn 208 - (UIButton *)closeBtn
90 { 209 {
91 if (!_closeBtn) { 210 if (!_closeBtn) {
@@ -96,6 +215,7 @@ @@ -96,6 +215,7 @@
96 } 215 }
97 return _closeBtn; 216 return _closeBtn;
98 } 217 }
  218 +
99 - (void)didReceiveMemoryWarning { 219 - (void)didReceiveMemoryWarning {
100 [super didReceiveMemoryWarning]; 220 [super didReceiveMemoryWarning];
101 // Dispose of any resources that can be recreated. 221 // Dispose of any resources that can be recreated.
VLionADSDKDemo/VLionADSDKDemo/ViewController.m
@@ -25,6 +25,15 @@ @@ -25,6 +25,15 @@
25 - (void)viewDidLoad { 25 - (void)viewDidLoad {
26 [super viewDidLoad]; 26 [super viewDidLoad];
27 // Do any additional setup after loading the view, typically from a nib. 27 // Do any additional setup after loading the view, typically from a nib.
  28 +
  29 + UIImageView *bg = [[UIImageView alloc] initWithFrame:self.view.bounds];
  30 + bg.image = [UIImage imageNamed:@"bg_activity"];
  31 + [self.view addSubview:bg];
  32 +
  33 + UIImageView *logo = [[UIImageView alloc] initWithFrame:CGRectMake(15, self.view.bounds.size.height - 64, 144, 64)];
  34 + logo.image = [UIImage imageNamed:@"log_max"];
  35 + [self.view addSubview:logo];
  36 +
28 NSArray *titleArr = @[@"横幅广告",@"插屏广告",@"原生广告"]; 37 NSArray *titleArr = @[@"横幅广告",@"插屏广告",@"原生广告"];
29 38
30 for (int i = 0; i < titleArr.count; i ++) { 39 for (int i = 0; i < titleArr.count; i ++) {