Skip to content

Commit 670dd83

Browse files
committed
Merge branch 'release/1.5.0'
2 parents b26aef6 + 8c74fbc commit 670dd83

File tree

14 files changed

+40
-65
lines changed

14 files changed

+40
-65
lines changed

.github/workflows/flutter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
# Setup the flutter environment.
2828
- uses: subosito/flutter-action@v1
2929
with:
30-
channel: 'stable' # 'dev', 'alpha', default to: 'stable'
31-
#flutter-version: '1.22.x' # you can also specify exact version of flutter
30+
#channel: 'stable' # 'dev', 'alpha', default to: 'stable'
31+
flutter-version: '1.22.x' # you can also specify exact version of flutter
3232

3333
# Get flutter dependencies.
3434
- run: flutter pub get

.github/workflows/publish_apk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
- name: Setup Flutter
2424
uses: subosito/flutter-action@v1
2525
with:
26-
channel: 'stable' # 'dev', 'alpha', default to: 'stable'
27-
#flutter-version: '1.22.x'
26+
#channel: 'stable' # 'dev', 'alpha', default to: 'stable'
27+
flutter-version: '1.22.x'
2828
# fix Permission denied
2929
- name: Setup Permission
3030
run: sudo chown -R $USER $PWD

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
* 2.x.x 是 Null Safety 版本
44
* 现在阶段会同时维护这 2 个版本,再往后可能仅维护一个版本
55

6+
## 1.5.0 [2022-04-08]
7+
* 更新 Android SDK `v4.460.1330`
8+
* 以后将不在维护非 1x 版本,请及时升级
9+
610
## 1.4.1 [2021-12-07]
711
* 修复 iOS 编译问题
812

README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<h3 align="center">一款优质的 Flutter 广告插件(腾讯广告、广点通、优量汇)</h3>
55

66
<p align="center">
7-
<a href="https://github.com/FlutterAds/flutter_qq_ads"><img src=https://img.shields.io/badge/version-v1.4.1-success></a>
7+
<a href="https://github.com/FlutterAds/flutter_qq_ads"><img src=https://img.shields.io/badge/version-v1.5.0-success></a>
88
<a href="https://github.com/FlutterAds/flutter_qq_ads"><img src=https://img.shields.io/badge/null_safety-v2.4.1-success></a>
99
<a href="https://github.com/FlutterAds/flutter_qq_ads"><img src=https://img.shields.io/badge/platform-iOS%20%7C%20Android-brightgreen></a>
10-
<a href="https://github.com/FlutterAds/flutter_qq_ads/actions/workflows/flutter.yml"><img src="https://github.com/FlutterAds/flutter_qq_ads/actions/workflows/flutter.yml/badge.svg?branch=develop"></a>
10+
<a href="https://github.com/FlutterAds/flutter_qq_ads/actions/workflows/flutter.yml"><img src="https://github.com/FlutterAds/flutter_qq_ads/actions/workflows/flutter.yml/badge.svg?branch=2x"></a>
1111
<a href="https://github.com/FlutterAds/flutter_qq_ads"><img src=https://img.shields.io/github/stars/FlutterAds/flutter_qq_ads?color=brightgreen></a>
1212
<a href="https://github.com/FlutterAds/flutter_qq_ads/blob/develop/LICENSE"><img src=https://img.shields.io/badge/license-MIT-brightgreen></a>
1313
</p>
@@ -29,14 +29,15 @@
2929
-[信息流](#信息流)
3030

3131
## 下载体验
32-
<a href="https://www.pgyer.com/app/qrcode/fadsqq"><img src="https://www.pgyer.com/app/qrcode/fadsqq" width='100' height='100'></a>
32+
<a href="https://www.pgyer.com/app/qrcode/fadsqq"><img src="https://raw.githubusercontent.com/yy1300326388/yy1300326388/main/images/gzh/gzh_qrcode.jpeg" width='100' height='100'></a>
33+
> 回复 `优量汇体验`
3334
3435
## 入门使用
3536
### 引入依赖
3637

3738
``` Dart
3839
dependencies:
39-
flutter_qq_ads: ^1.4.1 # 非 Null Safety 版本
40+
flutter_qq_ads: ^1.5.0 # 非 Null Safety 版本
4041
flutter_qq_ads: ^2.4.1 # Null Safety 版本
4142
```
4243

@@ -162,7 +163,7 @@ AspectRatio(
162163
/// [width] 宽度
163164
/// [height] 高度,0:代表自适应广告高度
164165
/// [count] 获取广告数量,建议 1~3 个
165-
List<int> feedAdList = await FlutterPangleAds.loadFeedAd(
166+
List<int> feedAdList = await FlutterQqAds.loadFeedAd(
166167
AdsConfig.feedId,
167168
width: 375,
168169
height: 0,
@@ -174,7 +175,7 @@ List<int> feedAdList = await FlutterPangleAds.loadFeedAd(
174175
> 当你的广告不再需要时,请一定执行清除操作
175176
``` Dart
176177
/// [list] 信息流广告 id 列表
177-
bool result = await FlutterPangleAds.clearFeedAd(feedAdList);
178+
bool result = await FlutterQqAds.clearFeedAd(feedAdList);
178179
```
179180
- 页面中展示信息流广告
180181

@@ -299,11 +300,19 @@ pod install
299300

300301
## 支持开源
301302

302-
支持开源项目最好的方式就是点个免费的 [Star](https://github.com/FlutterAds/flutter_qq_ads) ⭐️
303+
- 开源不易,需要花费大量休息时间加班熬夜来维护,你可以通过下方二维码赞赏支持我。
303304

304-
## FlutterAds 系列插件
305+
<a href="https://raw.githubusercontent.com/yy1300326388/yy1300326388/main/images/pay_qr_code/pay_qr_code.png">
306+
<img width="300" alt="coffee" src="https://raw.githubusercontent.com/yy1300326388/yy1300326388/main/images/pay_qr_code/pay_qr_code.png">
307+
</a>
308+
309+
- 用爱发电,给本项目点个免费的 [Star](https://github.com/FlutterAds/flutter_qq_ads) ⭐️ 也是非常好的支持。
310+
311+
## FlutterAds 广告插件系列
305312
|插件|描述|
306313
|-|-|
307314
|[flutter_qq_ads](https://github.com/FlutterAds/flutter_qq_ads)|腾讯广告、广点通、优量汇 Flutter 广告插件|
308315
|[flutter_pangle_ads](https://github.com/FlutterAds/flutter_pangle_ads)|字节跳动、穿山甲 Flutter 广告插件|
309-
|[flutter_gromore_ads](https://github.com/FlutterAds/flutter_gromore_ads)|字节跳动、穿山甲、Gromore 聚合 Flutter 广告插件(开发中)|
316+
|[flutter_gromore_ads](https://github.com/FlutterAds/flutter_gromore_ads)|字节跳动、穿山甲、Gromore 聚合 Flutter 广告插件|
317+
318+

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ android {
3333
}
3434

3535
dependencies {
36-
implementation 'androidx.appcompat:appcompat:1.2.0'
36+
implementation 'androidx.appcompat:appcompat:1.3.1'
3737
implementation 'com.google.android.material:material:1.3.0'
3838
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
3939
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
4040
// 广告 SDK
41-
implementation 'com.qq.e.union:union:4.430.1300'
41+
implementation 'com.qq.e.union:union:4.460.1330'
4242
}

android/src/main/java/com/zero/flutter_qq_ads/PluginDelegate.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import androidx.annotation.NonNull;
88

9-
import com.qq.e.comm.managers.GDTADManager;
109
import com.qq.e.comm.managers.GDTAdSdk;
1110
import com.zero.flutter_qq_ads.load.FeedAdLoad;
1211
import com.zero.flutter_qq_ads.load.FeedAdManager;

android/src/main/java/com/zero/flutter_qq_ads/load/FeedAdLoad.java

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* 信息流加载对象
2727
*/
2828
public class FeedAdLoad extends BaseAdPage implements NativeExpressAD.NativeExpressADListener {
29-
private final String TAG = FeedAdManager.class.getSimpleName();
29+
private final String TAG = FeedAdLoad.class.getSimpleName();
3030
private MethodChannel.Result result;
3131

3232
/**
@@ -106,30 +106,20 @@ private void sendBroadcastEvent(NativeExpressADView adView, String event) {
106106
intent.setAction(PluginDelegate.KEY_FEED_VIEW + "_" + adView.hashCode());
107107
intent.putExtra("event", event);
108108
boolean result = LocalBroadcastManager.getInstance(activity).sendBroadcast(intent);
109-
Log.i(TAG, "onADClosed sendBroadcast:" + result);
109+
// Log.i(TAG, "sendBroadcastEvent sendBroadcast:" + result);
110110
}
111111

112112
@Override
113113
public void onADLeftApplication(NativeExpressADView nativeExpressADView) {
114114

115115
}
116116

117-
@Override
118-
public void onADOpenOverlay(NativeExpressADView nativeExpressADView) {
119-
120-
}
121-
122-
@Override
123-
public void onADCloseOverlay(NativeExpressADView nativeExpressADView) {
124-
125-
}
126-
127117
@Override
128118
public void onNoAD(AdError error) {
129119
String msg = String.format(Locale.getDefault(), "onError, error code: %d, error msg: %s",
130120
error.getErrorCode(), error.getErrorMsg());
131121
Log.i(TAG, "onError, adError=" + msg);
132122
sendErrorEvent(error.getErrorCode(), error.getErrorMsg());
133-
this.result.success(new List[]{});
123+
this.result.success(new ArrayList<Integer>());
134124
}
135125
}

android/src/main/java/com/zero/flutter_qq_ads/page/AdBannerView.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,4 @@ public void onADLeftApplication() {
115115
Log.i(TAG, "onADLeftApplication");
116116
}
117117

118-
@Override
119-
public void onADOpenOverlay() {
120-
Log.i(TAG, "onADOpenOverlay");
121-
// sendEvent(AdEventAction.onAdClicked);
122-
}
123-
124-
@Override
125-
public void onADCloseOverlay() {
126-
Log.i(TAG, "onADCloseOverlay");
127-
// sendEvent(AdEventAction.onAdClosed);
128-
}
129-
130-
131118
}

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>8.0</string>
24+
<string>9.0</string>
2525
</dict>
2626
</plist>

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@
149149
97C146EC1CF9000F007C117D /* Resources */,
150150
9705A1C41CF9048500538489 /* Embed Frameworks */,
151151
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
152-
2A710B39D8AA4257F4D2F5F9 /* [CP] Embed Pods Frameworks */,
153152
0DD52AD8226E90C038FBB76E /* [CP] Copy Pods Resources */,
154153
);
155154
buildRules = (
@@ -225,23 +224,6 @@
225224
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
226225
showEnvVarsInLog = 0;
227226
};
228-
2A710B39D8AA4257F4D2F5F9 /* [CP] Embed Pods Frameworks */ = {
229-
isa = PBXShellScriptBuildPhase;
230-
buildActionMask = 2147483647;
231-
files = (
232-
);
233-
inputFileListPaths = (
234-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
235-
);
236-
name = "[CP] Embed Pods Frameworks";
237-
outputFileListPaths = (
238-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
239-
);
240-
runOnlyForDeploymentPostprocessing = 0;
241-
shellPath = /bin/sh;
242-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
243-
showEnvVarsInLog = 0;
244-
};
245227
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
246228
isa = PBXShellScriptBuildPhase;
247229
buildActionMask = 2147483647;

0 commit comments

Comments
 (0)