Skip to content

Commit 5b0dc7e

Browse files
committed
* ios sdk升级6.7.0.0
* 修复iOS onDislike回调数组可能为空导致的奔溃异常 * 发布2.1.1
1 parent e8361ae commit 5b0dc7e

File tree

8 files changed

+71
-55
lines changed

8 files changed

+71
-55
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.1.1
2+
* ios sdk升级6.7.0.0
3+
* 修复iOS onDislike回调数组可能为空导致的奔溃异常
4+
15
## 2.1.0
26
* android sdk升级6.6.0.7
37
* ios sdk升级6.6.0.5

example/ios/Podfile.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
PODS:
2-
- Ads-CN-Beta/BUAdSDK (6.6.0.5)
3-
- Ads-CN-Beta/CSJMediation (6.6.0.5):
2+
- Ads-CN-Beta/BUAdSDK (6.7.0.0)
3+
- Ads-CN-Beta/CSJMediation (6.7.0.0):
44
- Ads-CN-Beta/BUAdSDK
55
- Flutter (1.0.0)
66
- flutter_unionad (0.0.1):
7-
- Ads-CN-Beta/BUAdSDK (= 6.6.0.5)
8-
- Ads-CN-Beta/CSJMediation (= 6.6.0.5)
7+
- Ads-CN-Beta/BUAdSDK (= 6.7.0.0)
8+
- Ads-CN-Beta/CSJMediation (= 6.7.0.0)
99
- Flutter
1010

1111
DEPENDENCIES:
@@ -23,9 +23,9 @@ EXTERNAL SOURCES:
2323
:path: ".symlinks/plugins/flutter_unionad/ios"
2424

2525
SPEC CHECKSUMS:
26-
Ads-CN-Beta: 40b38a5fee87505e67e259c4dbfe8f296d52695f
26+
Ads-CN-Beta: 89bccfcada672bbb7779e923dba485d22b4c5018
2727
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
28-
flutter_unionad: 734dc8695cd3967e136ed078e01bc134425ec0d1
28+
flutter_unionad: d05e25999d5cc2fb59c135775dea590c90d3f9ba
2929

3030
PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048
3131

example/pubspec.lock

+43-43
Original file line numberDiff line numberDiff line change
@@ -6,55 +6,55 @@ packages:
66
description:
77
name: async
88
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9-
url: "https://pub.flutter-io.cn"
9+
url: "https://pub.dev"
1010
source: hosted
1111
version: "2.11.0"
1212
boolean_selector:
1313
dependency: transitive
1414
description:
1515
name: boolean_selector
1616
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17-
url: "https://pub.flutter-io.cn"
17+
url: "https://pub.dev"
1818
source: hosted
1919
version: "2.1.1"
2020
characters:
2121
dependency: transitive
2222
description:
2323
name: characters
2424
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
25-
url: "https://pub.flutter-io.cn"
25+
url: "https://pub.dev"
2626
source: hosted
2727
version: "1.3.0"
2828
clock:
2929
dependency: transitive
3030
description:
3131
name: clock
3232
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
33-
url: "https://pub.flutter-io.cn"
33+
url: "https://pub.dev"
3434
source: hosted
3535
version: "1.1.1"
3636
collection:
3737
dependency: transitive
3838
description:
3939
name: collection
40-
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
41-
url: "https://pub.flutter-io.cn"
40+
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
41+
url: "https://pub.dev"
4242
source: hosted
43-
version: "1.18.0"
43+
version: "1.19.0"
4444
cupertino_icons:
4545
dependency: "direct main"
4646
description:
4747
name: cupertino_icons
4848
sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
49-
url: "https://pub.flutter-io.cn"
49+
url: "https://pub.dev"
5050
source: hosted
5151
version: "1.0.8"
5252
fake_async:
5353
dependency: transitive
5454
description:
5555
name: fake_async
5656
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
57-
url: "https://pub.flutter-io.cn"
57+
url: "https://pub.dev"
5858
source: hosted
5959
version: "1.3.1"
6060
flutter:
@@ -73,132 +73,132 @@ packages:
7373
path: ".."
7474
relative: true
7575
source: path
76-
version: "2.0.13"
76+
version: "2.1.0"
7777
leak_tracker:
7878
dependency: transitive
7979
description:
8080
name: leak_tracker
81-
sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
82-
url: "https://pub.flutter-io.cn"
81+
sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
82+
url: "https://pub.dev"
8383
source: hosted
84-
version: "10.0.4"
84+
version: "10.0.7"
8585
leak_tracker_flutter_testing:
8686
dependency: transitive
8787
description:
8888
name: leak_tracker_flutter_testing
89-
sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
90-
url: "https://pub.flutter-io.cn"
89+
sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
90+
url: "https://pub.dev"
9191
source: hosted
92-
version: "3.0.3"
92+
version: "3.0.8"
9393
leak_tracker_testing:
9494
dependency: transitive
9595
description:
9696
name: leak_tracker_testing
9797
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
98-
url: "https://pub.flutter-io.cn"
98+
url: "https://pub.dev"
9999
source: hosted
100100
version: "3.0.1"
101101
matcher:
102102
dependency: transitive
103103
description:
104104
name: matcher
105105
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
106-
url: "https://pub.flutter-io.cn"
106+
url: "https://pub.dev"
107107
source: hosted
108108
version: "0.12.16+1"
109109
material_color_utilities:
110110
dependency: transitive
111111
description:
112112
name: material_color_utilities
113-
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
114-
url: "https://pub.flutter-io.cn"
113+
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
114+
url: "https://pub.dev"
115115
source: hosted
116-
version: "0.8.0"
116+
version: "0.11.1"
117117
meta:
118118
dependency: transitive
119119
description:
120120
name: meta
121-
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
122-
url: "https://pub.flutter-io.cn"
121+
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
122+
url: "https://pub.dev"
123123
source: hosted
124-
version: "1.12.0"
124+
version: "1.15.0"
125125
path:
126126
dependency: transitive
127127
description:
128128
name: path
129129
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
130-
url: "https://pub.flutter-io.cn"
130+
url: "https://pub.dev"
131131
source: hosted
132132
version: "1.9.0"
133133
sky_engine:
134134
dependency: transitive
135135
description: flutter
136136
source: sdk
137-
version: "0.0.99"
137+
version: "0.0.0"
138138
source_span:
139139
dependency: transitive
140140
description:
141141
name: source_span
142142
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
143-
url: "https://pub.flutter-io.cn"
143+
url: "https://pub.dev"
144144
source: hosted
145145
version: "1.10.0"
146146
stack_trace:
147147
dependency: transitive
148148
description:
149149
name: stack_trace
150-
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
151-
url: "https://pub.flutter-io.cn"
150+
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
151+
url: "https://pub.dev"
152152
source: hosted
153-
version: "1.11.1"
153+
version: "1.12.0"
154154
stream_channel:
155155
dependency: transitive
156156
description:
157157
name: stream_channel
158158
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
159-
url: "https://pub.flutter-io.cn"
159+
url: "https://pub.dev"
160160
source: hosted
161161
version: "2.1.2"
162162
string_scanner:
163163
dependency: transitive
164164
description:
165165
name: string_scanner
166-
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
167-
url: "https://pub.flutter-io.cn"
166+
sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
167+
url: "https://pub.dev"
168168
source: hosted
169-
version: "1.2.0"
169+
version: "1.3.0"
170170
term_glyph:
171171
dependency: transitive
172172
description:
173173
name: term_glyph
174174
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
175-
url: "https://pub.flutter-io.cn"
175+
url: "https://pub.dev"
176176
source: hosted
177177
version: "1.2.1"
178178
test_api:
179179
dependency: transitive
180180
description:
181181
name: test_api
182-
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
183-
url: "https://pub.flutter-io.cn"
182+
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
183+
url: "https://pub.dev"
184184
source: hosted
185-
version: "0.7.0"
185+
version: "0.7.3"
186186
vector_math:
187187
dependency: transitive
188188
description:
189189
name: vector_math
190190
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
191-
url: "https://pub.flutter-io.cn"
191+
url: "https://pub.dev"
192192
source: hosted
193193
version: "2.1.4"
194194
vm_service:
195195
dependency: transitive
196196
description:
197197
name: vm_service
198-
sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
199-
url: "https://pub.flutter-io.cn"
198+
sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b
199+
url: "https://pub.dev"
200200
source: hosted
201-
version: "14.2.1"
201+
version: "14.3.0"
202202
sdks:
203-
dart: ">=3.3.0 <4.0.0"
203+
dart: ">=3.4.0 <4.0.0"
204204
flutter: ">=3.18.0-18.0.pre.54"

ios/Classes/bannerad/BannerAdView.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ extension MyBannerView: BUNativeExpressBannerViewDelegate {
9292

9393
public func nativeExpressBannerAdView(_ bannerAdView: BUNativeExpressBannerView, dislikeWithReason filterwords: [BUDislikeWords]?) {
9494
LogUtil.logInstance.printLog(message:"点击了不感兴趣")
95-
self.channel?.invokeMethod("onDislike", arguments: filterwords?[0].name)
95+
if(filterwords != nil && !filterwords!.isEmpty){
96+
self.channel?.invokeMethod("onDislike", arguments: filterwords?[0].name)
97+
}else{
98+
self.channel?.invokeMethod("onDislike", arguments: "")
99+
}
96100
self.disposeView()
97101
}
98102

ios/Classes/drawfeedad/DrawFeedAdView.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ extension DrawFeedAdView : BUNativeExpressAdViewDelegate{
8585
public func nativeExpressAdView(_ nativeExpressAdView: BUNativeExpressAdView, dislikeWithReason filterWords: [BUDislikeWords]) {
8686
self.disposeView()
8787
LogUtil.logInstance.printLog(message: "DrawfeedAd onDislike")
88-
self.channel?.invokeMethod("onDislike", arguments: filterWords[0].name)
88+
if(!filterWords.isEmpty){
89+
self.channel?.invokeMethod("onDislike", arguments: filterWords[0].name)
90+
}else{
91+
self.channel?.invokeMethod("onDislike", arguments: "")
92+
}
8993
}
9094

9195
public func nativeExpressAdView(_ nativeExpressAdView: BUNativeExpressAdView, stateDidChanged playerState: BUPlayerPlayState) {

ios/Classes/nativead/NativeAdView.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ extension NativeAdView : BUNativeExpressAdViewDelegate{
9393
public func nativeExpressAdView(_ nativeExpressAdView: BUNativeExpressAdView, dislikeWithReason filterWords: [BUDislikeWords]) {
9494
self.disposeView()
9595
LogUtil.logInstance.printLog(message: "nativeExpressAdView")
96-
self.channel?.invokeMethod("onDislike", arguments: filterWords[0].name)
96+
if(!filterWords.isEmpty){
97+
self.channel?.invokeMethod("onDislike", arguments: filterWords[0].name)
98+
}else{
99+
self.channel?.invokeMethod("onDislike", arguments: "")
100+
}
97101
}
98102

99103
public func nativeExpressAdView(_ nativeExpressAdView: BUNativeExpressAdView, stateDidChanged playerState: BUPlayerPlayState) {

ios/flutter_unionad.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ A new flutter plugin project.
1818
s.dependency 'Flutter'
1919
s.platform = :ios, '9.0'
2020
# s.dependency 'Ads-CN','5.4.1.1''
21-
s.dependency 'Ads-CN-Beta/BUAdSDK','6.6.0.5'
22-
s.dependency 'Ads-CN-Beta/CSJMediation','6.6.0.5'
21+
s.dependency 'Ads-CN-Beta/BUAdSDK','6.7.0.0'
22+
s.dependency 'Ads-CN-Beta/CSJMediation','6.7.0.0'
2323
# .framework文件
2424
# s.vendored_frameworks = 'SDK/BUAdSDK.framework','SDK/BURelyFoundation.framework','SDK/CSJAdSDK.framework'
2525
# .a文件

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_unionad
22
description: 字节跳动 穿山甲广告Flutter版
3-
version: 2.1.0
3+
version: 2.1.1
44
homepage: https://github.com/gstory0404/flutter_unionad
55

66
environment:

0 commit comments

Comments
 (0)