Skip to content

Commit

Permalink
* 穿山甲flutter_unionad升级1.3.17
Browse files Browse the repository at this point in the history
* 优量汇flutter_tencentad升级1.2.12
  • Loading branch information
gstory0404 committed Dec 1, 2022
1 parent e5dc189 commit 201a110
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 41 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## 1.1.12
## 1.1.13
* 穿山甲flutter_unionad升级1.3.17
* 优量汇flutter_tencentad升级1.2.12

* ## 1.1.12
* 1、升级sdk

## 1.1.11
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 字节跳动穿山甲广告、腾讯优量汇(广点通)聚合广告插件 Flutter版本

<p>
<a href="https://pub.flutter-io.cn/packages/flutter_universalad"><img src=https://img.shields.io/badge/flutter_universalad-v1.1.12-success></a>
<a href="https://pub.flutter-io.cn/packages/flutter_universalad"><img src=https://img.shields.io/badge/flutter_universalad-v1.1.13-success></a>
</p>

## 📢 推荐使用新版聚合插件[GTAds](https://github.com/gstory0404/GTAds),支持自定义广告插入
Expand Down Expand Up @@ -37,7 +37,7 @@
## 集成步骤
#### 1、pubspec.yaml
```Dart
flutter_universalad: ^1.1.12
flutter_universalad: ^1.1.13
```

#### 2、引入
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.hnnuomi.atree"
minSdkVersion 16
minSdkVersion 19
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
2 changes: 0 additions & 2 deletions example/lib/native_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ class _NativePageState extends State<NativePage> {
// 期望view 宽度 dp 必填
expressViewHeight: 275.5,
//期望view高度 dp 必填
expressNum: 2,
mIsExpress: true,
//一次请求广告数量 大于1小于3 必填
callBack: FlutterUnionadNativeCallBack(
onShow: () {
print("信息流广告显示");
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ packages:
name: flutter_tencentad
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.2.11"
version: "1.2.12"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -73,7 +73,7 @@ packages:
name: flutter_unionad
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.3.16"
version: "1.3.17"
flutter_universalad:
dependency: "direct main"
description:
Expand Down
52 changes: 24 additions & 28 deletions lib/widget/native_ad_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,41 +76,37 @@ class _NativeAdViewState extends State<NativeAdView> {
viewWidth: widget.width.toInt(),
viewHeight: widget.height.toInt(),
callBack: FlutterTencentadExpressCallBack(
onShow: () {
widget.callBack?.onShow!(UniversalSdkKType.TENCENT);
},
onFail: (code, message) {
if (isLoadSuccess) {
setState(() {
isLoadSuccess = false;
_type = UniversalSdkKType.PANGOLIN;
});
} else {
widget.callBack?.onFail!(
UniversalSdkKType.TENCENT, code, message);
setState(() {
_isShowAd = false;
});
}
},
onClose: () {
widget.callBack?.onClose!(UniversalSdkKType.TENCENT);
},
onClick: () {
widget.callBack?.onClick!(UniversalSdkKType.TENCENT);
},
onExpose: (){

}
),
onShow: () {
widget.callBack?.onShow!(UniversalSdkKType.TENCENT);
},
onFail: (code, message) {
if (isLoadSuccess) {
setState(() {
isLoadSuccess = false;
_type = UniversalSdkKType.PANGOLIN;
});
} else {
widget.callBack?.onFail!(
UniversalSdkKType.TENCENT, code, message);
setState(() {
_isShowAd = false;
});
}
},
onClose: () {
widget.callBack?.onClose!(UniversalSdkKType.TENCENT);
},
onClick: () {
widget.callBack?.onClick!(UniversalSdkKType.TENCENT);
},
onExpose: () {}),
),
);
} else {
return Container(
child: FlutterUnionad.nativeAdView(
androidCodeId: widget.pAndroidId,
iosCodeId: widget.pIosId,
expressNum: 1,
expressViewWidth: widget.width,
expressViewHeight: widget.height,
callBack: FlutterUnionadNativeCallBack(
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ packages:
name: flutter_tencentad
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.2.8"
version: "1.2.12"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -66,7 +66,7 @@ packages:
name: flutter_unionad
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.3.16"
version: "1.3.17"
matcher:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_universalad
description: A flutter plugin for TencentAD and Bytedance-UnionAD.
version: 1.1.12
version: 1.1.13
homepage: https://github.com/gstory0404/flutter_universalad

environment:
Expand All @@ -11,9 +11,9 @@ dependencies:
flutter:
sdk: flutter
# 穿山甲
flutter_unionad: ^1.3.16
flutter_unionad: ^1.3.17
# 优量汇
flutter_tencentad: ^1.2.11
flutter_tencentad: ^1.2.12
# flutter_tencentad:
# git:
# url: https://github.com/gstory0404/flutter_tencentad.git
Expand Down

0 comments on commit 201a110

Please sign in to comment.