Skip to content

Commit

Permalink
* android sdk升级5.6.0.7
Browse files Browse the repository at this point in the history
* ios sdk升级5.7.0.1
* 发布1.3.26
  • Loading branch information
gstory0404 committed Sep 21, 2023
1 parent 8d13bd5 commit 596ccfd
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 35 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.26
* android sdk升级5.6.0.7
* ios sdk升级5.7.0.1

## 1.3.25
* fix bug
* android sdk升级5.5.1.2
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@

## 本地开发环境
```
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.5 22G74 darwin-x64, locale
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.5.2 22G91 darwin-x64, locale
zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2)
[✓] VS Code (version 1.80.2)
[✓] Android Studio (version 2022.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.2)
[✓] VS Code (version 1.82.2)
[✓] Connected device (4 available)
[✓] Network resources
```
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.appcompat:appcompat:1.3.1"
// implementation 'com.pangle.cn:ads-sdk:+'
implementation 'com.pangle.cn:ads-sdk-pro:5.5.1.2'
implementation 'com.pangle.cn:ads-sdk-pro:5.6.0.7'
// implementation(name: 'open_ad_sdk_5.2.0.5', ext: 'aar')
// implementation(name: 'tools_release', ext: 'aar')
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public class FlutterUnionadPlugin : FlutterPlugin, MethodCallHandler, ActivityAw
val useTextureView = call.argument<Boolean>("useTextureView")
val appName = call.argument<String>("appName")
var allowShowNotify = call.argument<Boolean>("allowShowNotify")
var allowShowPageWhenScreenLock = call.argument<Boolean>("allowShowPageWhenScreenLock")
var debug = call.argument<Boolean>("debug")
var supportMultiProcess = call.argument<Boolean>("supportMultiProcess")
val directDownloadNetworkType = call.argument<List<Int>>("directDownloadNetworkType")!!
Expand All @@ -96,7 +95,6 @@ public class FlutterUnionadPlugin : FlutterPlugin, MethodCallHandler, ActivityAw
useTextureView!!,
appName,
allowShowNotify!!,
allowShowPageWhenScreenLock!!,
debug!!,
supportMultiProcess!!,
directDownloadNetworkType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,43 +27,38 @@ object TTAdManagerHolder {
useTextureView: Boolean,
appName: String,
allowShowNotify: Boolean,
allowShowPageWhenScreenLock: Boolean,
debug: Boolean,
supportMultiProcess: Boolean,
directDownloadNetworkType: List<Int>,
personalise: String,
themeStatus: Int,
callback: TTAdSdk.InitCallback
) {
TTAdSdk.init(
context,
TTAdSdk.init(context,
buildConfig(
context,
appId,
useTextureView,
appName,
allowShowNotify,
allowShowPageWhenScreenLock,
debug,
supportMultiProcess,
directDownloadNetworkType,
personalise,
themeStatus
),
object : TTAdSdk.InitCallback {
override fun success() {
sInit = true
callback.success()
}

override fun fail(p0: Int, p1: String?) {
sInit = false
callback.fail(p0, p1)
}
))
TTAdSdk.start(object : TTAdSdk.Callback{
override fun success() {
sInit = true
callback.success()
}

override fun fail(p0: Int, p1: String?) {
sInit = false
callback.fail(p0, p1)
}

)
})
}

private fun buildConfig(
Expand All @@ -72,7 +67,6 @@ object TTAdManagerHolder {
useTextureView: Boolean,
appName: String,
allowShowNotify: Boolean,
allowShowPageWhenScreenLock: Boolean,
debug: Boolean,
supportMultiProcess: Boolean,
directDownloadNetworkType: List<Int>,
Expand Down
12 changes: 6 additions & 6 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PODS:
- Ads-CN-Beta (5.6.0.0):
- Ads-CN-Beta/BUAdSDK (= 5.6.0.0)
- Ads-CN-Beta/BUAdSDK (5.6.0.0):
- Ads-CN-Beta (5.7.0.1):
- Ads-CN-Beta/BUAdSDK (= 5.7.0.1)
- Ads-CN-Beta/BUAdSDK (5.7.0.1):
- BURelyFoundation/CSJ (= 0.3.0.4)
- BURelyFoundation/AFNetworking (0.3.0.4)
- BURelyFoundation/BURelyFoundation (0.3.0.4)
Expand All @@ -14,7 +14,7 @@ PODS:
- BURelyFoundation/AFNetworking
- Flutter (1.0.0)
- flutter_unionad (0.0.1):
- Ads-CN-Beta (= 5.6.0.0)
- Ads-CN-Beta (= 5.7.0.1)
- Flutter

DEPENDENCIES:
Expand All @@ -33,10 +33,10 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/flutter_unionad/ios"

SPEC CHECKSUMS:
Ads-CN-Beta: 01d6996747f568468a36d9bf2ff1240c4eeb69cc
Ads-CN-Beta: af033315176f9cfcdd8e4a96e13f94cd1d4853d6
BURelyFoundation: f6dc8547c858e7f97c1a0ec31a0c81b62f657892
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_unionad: a25ed5d6ba53fa2c8b86201671d1723fc4e29365
flutter_unionad: c2e8884f6ed082d246843ee0087e675872786acd

PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3

Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.3.24"
version: "1.3.26"
js:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/nativead/NativeAdView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ extension NativeAdView : BUNativeExpressAdViewDelegate{
self.channel?.invokeMethod("onFail", arguments: error?.localizedDescription)
}

public func nativeExpressAdViewPlayerDidPlayFinish(_ nativeExpressAdView: BUNativeExpressAdView, error: Error) {
public func nativeExpressAdViewPlayerDidPlayFinish(_ nativeExpressAdView: BUNativeExpressAdView, error: Error?) {
LogUtil.logInstance.printLog(message: "nativeExpressAdViewPlayerDidPlayFinish")
}

Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/splashad/SplashAdView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ extension SplashAdView : BUSplashAdDelegate{
}

//视频广告播放完毕回调
public func splashVideoAdDidPlayFinish(_ splashAd: BUSplashAd, didFailWithError error: Error) {
public func splashVideoAdDidPlayFinish(_ splashAd: BUSplashAd, didFailWithError error: Error?) {

}

Expand Down
2 changes: 1 addition & 1 deletion ios/flutter_unionad.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A new flutter plugin project.
s.dependency 'Flutter'
s.platform = :ios, '9.0'
# s.dependency 'Ads-CN','5.4.1.1''
s.dependency 'Ads-CN-Beta','5.6.0.0'
s.dependency 'Ads-CN-Beta','5.7.0.1'
# .framework文件
# s.vendored_frameworks = 'SDK/BUAdSDK.framework','SDK/BURelyFoundation.framework','SDK/CSJAdSDK.framework'
# .a文件
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_unionad
description: 字节跳动 穿山甲广告Flutter版
version: 1.3.25
version: 1.3.26
homepage: https://github.com/gstory0404/flutter_unionad

environment:
Expand Down

0 comments on commit 596ccfd

Please sign in to comment.