From 160616938a880c373507062a0903e45079601eb6 Mon Sep 17 00:00:00 2001 From: Zero <1300326388@qq.com> Date: Sun, 4 Aug 2024 17:15:52 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20=E5=8D=87=E7=BA=A7=20SDK=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pubignore | 3 + CHANGELOG.md | 45 ++- README.md | 324 ++---------------- android/build.gradle | 3 +- .../flutter_pangle_ads/PluginDelegate.java | 2 + example/android/app/build.gradle | 2 +- example/ios/Runner.xcodeproj/project.pbxproj | 2 +- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- example/lib/pages/pro_page.dart | 4 +- example/pubspec.yaml | 2 +- ios/Classes/FlutterPangleAdsPlugin.m | 2 + ios/flutter_pangle_ads.podspec | 7 +- lib/flutter_pangle_ads.dart | 2 + pubspec.yaml | 47 +-- 14 files changed, 84 insertions(+), 363 deletions(-) create mode 100644 .pubignore diff --git a/.pubignore b/.pubignore new file mode 100644 index 0000000..71c4767 --- /dev/null +++ b/.pubignore @@ -0,0 +1,3 @@ +example/images +example/android +example/ios \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 28327ce..ecae64e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,39 +1,48 @@ -## 2.9.0 [2023-10-22] -* 🚀 推荐使用【[Gromore](https://flutterads.github.io/site/)】 让您的广告收益翻倍 +## 3.0.0 +* 🚀 推荐使用【[Gromore Pro](https://flutterads.top/)】 让您的广告收益翻倍 +* 升级 iOS SDK 到 `v6.2.1.6` +* 升级 Android SDK 到 `v6.1.0.7`,感谢 @daixianceng +* 适配 iOS 17 隐私清单政策,防止上架被拒 +* 适配新的广告初始化逻辑 +* 优化帮助文档说明到 [wiki](https://github.com/FlutterAds/flutter_pangle_ads/wiki) + +## 2.9.0 +* 🚀 推荐使用【[Gromore Pro](https://flutterads.top/)】 让您的广告收益翻倍 * 升级 iOS SDK 到 `v5.7.0.6` * 升级 Android SDK 到 `v5.5.1.7` -## 2.8.0 [2023-08-10] +## 2.8.0 * 升级 iOS SDK 到 `v5.4.1.1` * 升级 Android SDK 到 `v5.4.1.6` -## 2.7.0 [2023-01-28] + +## 2.7.0 * [修复] iOS SDK 版本升级后不可用问题 * 升级 iOS SDK 到 `v5.0.0.5` * 升级 Android SDK 到 Pro 版 `v5.1.0.2` -## 2.6.1 [2022-09-06] +## 2.6.1 * [修复] iOS 开屏广告点击后不跳转的问题 * [修复] Android 激励视频通知两次激励的问题 -## 2.6.0 [2022-09-02] +## 2.6.0 * [升级] 适配 4700 SDK 版本[#30](https://github.com/FlutterAds/flutter_pangle_ads/issues/30) * [新增] 新增进阶激励视频支持[#31](https://github.com/FlutterAds/flutter_pangle_ads/issues/31) * [升级] iOS SDK 到 `v4.7.0.8` * [升级] Android SDK 到 Pro 版 `v4.7.1.2` -## 2.5.0 [2022-03-18] +## 2.5.0 * [修复] `splashButtonType` 新版 SKD 不存在的问题 [#20](https://github.com/FlutterAds/flutter_pangle_ads/issues/20) * 升级 iOS SDK 到 `v4.3.0.4` * 升级 Android SDK 到 Pro 版 `v4.3.0.8` -## 2.4.0 [2021-11-30] +## 2.4.0 * [新增] 信息流广告类型 * 升级 Android SDK 到 Pro 版 `v4.0.2.2` -## 2.3.1 [2021-10-28] +## 2.3.1 * 新增配置开屏广告点击热区样式 * 升级 Android SDK 到 Pro 版 `v4.0.1.1` -## 2.3.0 [2021-09-13] +## 2.3.0 * 修复 iOS 点击开屏广告后 Flutter 页面点击事件无响应的问题 #8(全网唯一修复💪🏻) * 优化 Android 开屏加载素材尺寸 * 增加 Android 下载确认弹窗配置 @@ -41,42 +50,42 @@ * 优化基础架构 * 升级 Android SDK 到 Pro 版 `v4.0.0.1` -## 2.2.0 [2021-09-04] +## 2.2.0 * 增加 Banner 广告支持 * 优化开屏广告支持超时时间设置 #3 * 开屏 API 变更,logo 参数由位置参数变为可选命名参数,注意修改 #3 * 升级 Android SDK 到 `v3.9.0.5` -## 2.1.0 [2021-08-25] +## 2.1.0 * 增加全屏视屏 * 增加新插屏 * 优化事件发送 -## 2.0.0 [2021-08-23] +## 2.0.0 * 1.x.x 是非 Null Safety 版本 * 2.x.x 是 Null Safety 版本 * 现在阶段会同时维护这 2 个版本,再往后可能仅维护一个版本 -## 1.4.0 [2021-11-30] +## 1.4.0 * [新增] 信息流广告类型 * 升级 Android SDK 到 Pro 版 `v4.0.2.2` -## 1.3.1 [2021-10-28] +## 1.3.1 * 新增配置开屏广告点击热区样式 * 升级 Android SDK 到 Pro 版 `v4.0.1.1` -## 1.2.0 [2021-09-04] +## 1.2.0 * 增加 Banner 广告支持 * 优化开屏广告支持超时时间设置 #3 * 开屏 API 变更,logo 参数由位置参数变为可选命名参数,注意修改 #3 * 升级 Android SDK 到 `v3.9.0.5` -## 1.1.0 [2021-08-25] +## 1.1.0 * 增加全屏视屏 * 增加新插屏 * 优化事件发送 -## 1.0.0 [2021-08-23] +## 1.0.0 * 优化初始化配置 * 更新说明 * Android SDK `v3.9.0.2` diff --git a/README.md b/README.md index 483a542..0251786 100644 --- a/README.md +++ b/README.md @@ -1,318 +1,54 @@ -

-logo -

-

一款优质的 Flutter 广告插件(字节跳动、巨量引擎、穿山甲)

+

📱 Flutter Pangle Ads

+

一款优质的穿山甲(字节跳动、巨量引擎)Flutter 广告插件

+

♻️ 持续更新 ♻️

- - - - - + + + + + + + + + + + + +

-## 插件特点 -- 🔨 接入简单快速(封装原生端配置,仅需引入即可开始) -- 📡 事件统一返回(将原生端各种重要回调事件统一返回,方便业务处理和埋点统计等需求) -- 🎁 注重优化体验(无闪烁 Logo 开屏、iOS 开屏防止事件穿透、权限申请、隐私跟踪申请、信息流自动适配宽高等) -- 🏆 极客代码封装(原生端代码不凑合,两端统一基础框架、广告事件封装抽象、易扩展新广告形式、方便开发个性化需求) +## 🚀 核心功能 -## 支持功能 - ✅ 开屏广告 -- ✅ 新插屏广告 - - ✅ 半屏 - - ✅ 全屏 +- ✅ 插屏广告 - ✅ 激励视频 - - ✅ 普通激励 - - ✅ 进阶激励 - ✅ Banner - ✅ 信息流 +- 🦥 预缓存(预加载,极速展示) [🎁 Pro 版](https://flutterads.top/) +- 🏆 实时价格 eCPM(上报归因,买量更有效)[🎁 Pro 版](https://flutterads.top/) -## 📣 请升级到 GroMore - -- 因穿山甲官方已全面推 Gromore 融合 SDK,后续本插件也将只做小更新,推荐使用 [Gromore](https://flutterads.github.io/site/) -- 【[Gromore](https://flutterads.github.io/site/)】可进行多家广告瀑布流竞价,让您拥有更高的广告收益 - -[![](https://raw.githubusercontent.com/FlutterAds/.github/main/gromore_pro_site.png)](https://flutterads.github.io/site/) - - -## 下载体验 - -- 回复 `穿山甲体验` -- 回复 `Pro` 体验 Pro 版 🚀 - -## 入门使用 - -### 引入依赖 - -``` Dart -dependencies: - flutter_pangle_ads: ^2.9.0 -``` -### 初始化广告 - -``` Dart -// 导包 -import 'package:flutter_pangle_ads/flutter_pangle_ads.dart'; -/// [appId] 应用ID -FlutterPangleAds.initAd(appId); -``` - -### 个性化广告开关 - -```dart -/// 不调用默认为开,'1'打开,'0'关闭 -FlutterPangleAds.setUserExtData(personalAdsType: '1'); -``` - -### 开屏广告 - -- 全屏 -``` Dart -/// [posId] 广告位 id -FlutterPangleAds.showSplashAd(posId); -``` - -- 半屏广告 + Logo -- [Logo 设置的最佳实践](https://github.com/FlutterAds/flutter_qq_ads/blob/develop/doc/SETTING_LOGO.md) - -``` Dart -/// [posId] 广告位 id -/// [logo] 如果传值则展示底部logo,不传不展示,则全屏展示 -/// [timeout] 加载超时时间 -FlutterPangleAds.showSplashAd( - posId, - logo: 'flutterads_logo', - timeout: 3.5, -); -``` - -### 新插屏广告 -``` Dart -/// [posId] 广告位 id -FlutterPangleAds.showFullScreenVideoAd(AdsConfig.newInterstitialId); -``` - -### 激励视频 -``` Dart -/// [posId] 广告位 id -/// [customData] 设置服务端验证的自定义信息 -/// [userId] 设置服务端验证的用户信息 -FlutterPangleAds.showRewardVideoAd( - AdsConfig.rewardVideoId, - customData: 'customData', - userId: 'userId', -); -``` - -### Banner -``` Dart -/// [posId] 广告位 id -/// [width] 创建 Banner 广告位时选择的宽度,默认值是 300 -/// [height] 创建 Banner 广告位时选择的高度,默认值是 150 -/// [interval] 广告轮播间隔,0 或[30~120]之间的数字,单位为 s,默认为 0 不轮播 -/// [show] 是否显示广告 -/// [autoClose] 是否自动关闭,一般是在用户点击不感兴趣之后的操作 -AdBannerWidget( - posId: AdsConfig.bannerId, - width: 300, - height: 150, - interval: 30, - show: true, - autoClose: true, -); -``` +## 📃 接入文档 -Banner 广告外部需要嵌套一个带有约束布局的 Widget,如:`AspectRatio、SizedBox、Container` 等,示例如下: +- [ 🎯 极速接入、快速体验、持续更新](https://github.com/FlutterAds/flutter_pangle_ads/wiki) -- 嵌套 `SizedBox` (推荐) +- [ 💰 变现套件 = 【GroMore】+【AdSpark】+【AdContent】](https://flutterads.top/) -``` Dart -SizedBox( - width: 300, - height: 150, - child: AdBannerWidget( - posId: AdsConfig.bannerId, - width: 300, - height: 150, - interval: 30, - show: true, - ), -) -``` -### 信息流 -- 获取信息流广告列表 -``` Dart -/// [posId] 广告位 id -/// [width] 宽度 -/// [height] 高度 -/// [count] 获取广告数量,建议 1~3 个 -List feedAdList = await FlutterPangleAds.loadFeedAd( - AdsConfig.feedId, - width: 375, - height: 128, - count: 3, - ); -``` -- 清除信息流广告列表 - -> 当你的广告不再需要时,请一定执行清除操作 -``` Dart -/// [list] 信息流广告 id 列表 -bool result = await FlutterPangleAds.clearFeedAd(feedAdList); -``` -- 页面中展示信息流广告 -``` Dart -/// Feed 信息流广告组件 -/// [posId]返回的广告 id,这里不是广告位id -/// [width]组件的宽度 -/// [height]组件的高度 -/// [show]是否显示 -AdFeedWidget( - posId: '${feedAdList[0]}', - width: 375, - height: 128, - show: true, - ) -``` -> `width` 和 `height` 需要根据你新建广告位的模板来设置 - -### 旧插屏广告(已废弃) -> 建议使用新插屏 - -``` Dart -/// [posId] 广告位 id -/// [width] 请求模板广告素材的尺寸宽度(对应 expressViewWidth 参数) -/// [height] 请求模板广告素材的尺寸高度(对应 expressViewWidth 参数) -FlutterPangleAds.showInterstitialAd( - AdsConfig.interstitialId, - width: 300, - height: 300, -); -``` - - -### 设置广告事件监听 - -``` Dart -FlutterPangleAds.onEventListener((event) { - // 普通广告事件 - String _adEvent = 'adId:${event.adId} action:${event.action}'; - if (event is AdErrorEvent) { - // 错误事件 - _adEvent += ' errCode:${event.errCode} errMsg:${event.errMsg}'; - } else if (event is AdRewardEvent) { - // 激励事件 - _adEvent += - 'rewardType:${event.rewardType} rewardVerify:${event.rewardVerify} rewardAmount:${event.rewardAmount} rewardName:${event.rewardName} errCode:${event.errCode} errMsg:${event.errMsg} customData:${event.customData} userId:${event.userId}'; - } - // 测试关闭 Banner(会员场景) - if (event.action == AdEventAction.onAdClosed && - event.adId == AdsConfig.bannerId02) { - _adEvent += '仅会员可以关闭广告'; - } - print('onEventListener:$_adEvent'); -}); -``` -### 事件列表 -|事件|说明| -|-|-| -|onAdLoaded|广告加载成功| -|onAdPresent|广告填充| -|onAdExposure|广告曝光| -|onAdClosed|广告关闭(开屏计时结束或者用户点击关闭)| -|onAdClicked|广告点击| -|onAdSkip|广告跳过| -|onAdComplete|广告播放或计时完毕| -|onAdError|广告错误| -|onAdReward|获得广告激励| - -> 这里做了统一的抽象,iOS 和 Android 原生 SDK 名称不同,如果觉得对应不上,可以提 [Issues](https://github.com/FlutterAds/flutter_pangle_ads/issues)(一定要加上 log 截图) - -## 其他配置 -### 信任HTTP请求(仅 iOS) -苹果公司在iOS9中升级了应用网络通信安全策略,默认推荐开发者使用HTTPS协议来进行网络通信,并限制HTTP协议的请求。为了避免出现无法拉取到广告的情况,我们推荐开发者在info.plist文件中增加如下配置来实现广告的网络访问 -- 修改 `info.plist` -``` xml -NSAppTransportSecurity - - NSAllowsArbitraryLoads - - -``` -![信任HTTP请求](https://raw.githubusercontent.com/FlutterAds/site/master/docs/images/02_AppTransportSecurity.png) - -### 请求应用跟踪透明度授权(仅 iOS) -此步骤必须要做,不然上架审核时候会被拒绝 -``` Dart -bool result = await FlutterPangleAds.requestIDFA; -``` -- 修改 `info.plist` -``` xml -NSUserTrackingUsageDescription -为了向您提供更优质、安全的个性化服务及内容,需要您允许使用相关权限 -``` -![请求应用跟踪透明度授权](https://raw.githubusercontent.com/FlutterAds/site/master/docs/images/01_TrackingUsageDescription.png) - -- 效果 - -![预览效果](https://raw.githubusercontent.com/FlutterAds/site/master/docs/images/03_RequestTracking.png) - -- [官方参考链接 - 用户隐私和数据使用](https://developer.apple.com/cn/app-store/user-privacy-and-data-use/) - -### 动态请求权限(仅 Android) - -``` Dart -bool result = await FlutterPangleAds.requestPermissionIfNecessary; -``` +## 📣 请升级到 GroMore -## 原生 SDK 版本更新方法 -如果是大版本,我会第一时间适配更新,小版本可以自己更新,方法如下: -- Android +- 因穿山甲官方已全面推 Gromore 融合 SDK,后续本插件也将只做小更新,推荐使用 [Gromore](https://flutterads.top/) +- 【[Gromore](https://flutterads.top/)】可进行多家广告瀑布流竞价,让您拥有更高的广告收益 - 方法1:可以给我提 Issues 提示我更新,此插件版本号 `x.y.z`,会更新 `z` 版本迭代 - - 方法2:可以自己指定版本,方法如下: -```shell -// build.gradle(android.app) -android{ - configurations.all { - resolutionStrategy { - force 'com.pangle.cn:ads-sdk-pro:版本号' - } - } -} -``` -- iOS +[![](https://raw.githubusercontent.com/FlutterAds/.github/main/gromore_pro_site.png)](https://flutterads.top/) - 自己手动更新,自己的项目根目录下执行即可 -```shell -// 可在 ios/Podfile.lock 中查看 SDK 当前版本 -cd ios -rm -rf Podfile.lock -pod repo update -pod install -``` -## FlutterAds 广告插件系列 +## 📌 广告系列插件(FlutterAds) |插件|描述| |-|-| -|[flutter_gromore_pro](https://flutterads.github.io/site/)|🏆🏆🏆 帮你大幅提升广告收益,发挥出最大的用户价值| +|[flutter_gromore_pro](https://flutterads.top/)|🏆🏆🏆 帮你大幅提升广告收益,发挥出最大的用户价值| |[flutter_gromore_ads](https://github.com/FlutterAds/flutter_gromore_ads)|字节跳动、穿山甲、GroMore 聚合 Flutter 广告开源版插件| |[flutter_pangle_ads](https://github.com/FlutterAds/flutter_pangle_ads)|字节跳动、穿山甲 Flutter 广告插件| |[flutter_qq_ads](https://github.com/FlutterAds/flutter_qq_ads)|腾讯广告、广点通、优量汇 Flutter 广告插件| |[flutter_adspark](https://github.com/FlutterAds/flutter_adspark)|巨量广告/穿山甲的广告监测、增长分析、归因上报、事件管理 Flutter 版插件| -|[flutter_adcontent](https://github.com/FlutterAds/flutter_adcontent)|穿山甲内容输出,支持「短剧」和「小视频」的 Flutter 版插件| - -## 💬 App 广告变现群 - -- 插件问题解答 -- 变现玩法交流 -- 收益提升探讨 -- 大盘趋势推送 -- 版本更新推送 - -> 因微信群入群限制,请添加个人微信备注:`变现群`,我拉你进群。 - -wechat:toponelan +|[flutter_adcontent](https://github.com/FlutterAds/flutter_adcontent)|穿山甲内容输出 Flutter 版插件,支持短剧和小视频| diff --git a/android/build.gradle b/android/build.gradle index b43e341..527ad15 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -37,7 +37,6 @@ dependencies { implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.legacy:legacy-support-v4:1.0.0' - // 广告 SDK + // 广告 SDK 依赖: https://artifact.bytedance.com/repository/pangle/com/pangle/cn/ads-sdk-pro/ implementation 'com.pangle.cn:ads-sdk-pro:6.1.0.7' -// compileOnly fileTree(dir: 'libs', include: ['*.jar', '*.aar']) } diff --git a/android/src/main/java/com/zero/flutter_pangle_ads/PluginDelegate.java b/android/src/main/java/com/zero/flutter_pangle_ads/PluginDelegate.java index be3c1f7..d6b62ee 100644 --- a/android/src/main/java/com/zero/flutter_pangle_ads/PluginDelegate.java +++ b/android/src/main/java/com/zero/flutter_pangle_ads/PluginDelegate.java @@ -186,6 +186,8 @@ public void initAd(MethodCall call, final MethodChannel.Result result) { .build(); // 初始化 SDK TTAdSdk.init(activity.getApplicationContext(), config); + // 升级提示 + Log.w(TAG, "🎉🎉🎉 FlutterAds ==> 初始化完成,推荐使用 GroMore Pro 版本,获得更高的收益:https://flutterads.top/"); } /** diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index b83f004..94219eb 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -32,7 +32,7 @@ android { defaultConfig { applicationId "com.zero.flutter_pangle_ads_example" - minSdkVersion 19 + minSdkVersion flutter.minSdkVersion targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index b71f79f..ec52aa8 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -166,7 +166,7 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1430; + LastUpgradeCheck = 1510; ORGANIZATIONNAME = ""; TargetAttributes = { 97C146ED1CF9000F007C117D = { diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index b52b2e6..e67b280 100644 --- a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ { /// 复制url Future pasteUrl() async { - Clipboard.setData(ClipboardData(text: 'https://flutterads.github.io/site/')) - .then((value) => ScaffoldMessenger.of(context) + Clipboard.setData(ClipboardData(text: 'https://flutterads.top/')).then( + (value) => ScaffoldMessenger.of(context) .showSnackBar(SnackBar(content: Text('链接复制成功')))); } } diff --git a/example/pubspec.yaml b/example/pubspec.yaml index aa94b53..18171a3 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -4,7 +4,7 @@ description: FlutterAds 穿山甲广告 SDK 插件示例 # The following line prevents the package from being accidentally published to # pub.dev using `pub publish`. This is preferred for private packages. publish_to: "none" # Remove this line if you wish to publish to pub.dev -version: 2.9.0+20 +version: 3.0.0+20 environment: sdk: ">=2.12.0 <3.0.0" diff --git a/ios/Classes/FlutterPangleAdsPlugin.m b/ios/Classes/FlutterPangleAdsPlugin.m index 2be308c..af585ea 100644 --- a/ios/Classes/FlutterPangleAdsPlugin.m +++ b/ios/Classes/FlutterPangleAdsPlugin.m @@ -73,6 +73,8 @@ - (void) initAd:(FlutterMethodCall*) call result:(FlutterResult) result{ NSLog(@"initAd:%@",success?@"YES":@"NO"); result(@(success)); }]; + // 升级提示 + NSLog(@"🎉🎉🎉 FlutterAds ==> 初始化完成,推荐使用 GroMore Pro 版本,获得更高的收益:https://flutterads.top/"); } // 显示开屏广告 diff --git a/ios/flutter_pangle_ads.podspec b/ios/flutter_pangle_ads.podspec index 93ca08a..9773c7c 100644 --- a/ios/flutter_pangle_ads.podspec +++ b/ios/flutter_pangle_ads.podspec @@ -4,19 +4,20 @@ # Pod::Spec.new do |s| s.name = 'flutter_pangle_ads' - s.version = '2.10.0' + s.version = '3.0.0' s.summary = 'FlutterAds 一款优质的 Flutter 广告插件(字节跳动、穿山甲)' s.description = <<-DESC FlutterAds 致力于构建优质的 Flutter 广告插件 DESC - s.homepage = 'https://github.com/FlutterAds' + s.homepage = 'https://flutterads.top' s.license = { :file => '../LICENSE' } s.author = { 'ZeroFlutter' => '1300326388@qq.com' } s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h' s.dependency 'Flutter' - s.dependency 'Ads-CN','5.8.1.2' + # 依赖穿山甲广告:https://github.com/CocoaPods/Specs/tree/master/Specs/d/9/8/Ads-CN/ + s.dependency 'Ads-CN','6.2.1.6' s.platform = :ios, '11.0' s.static_framework = true diff --git a/lib/flutter_pangle_ads.dart b/lib/flutter_pangle_ads.dart index 78be935..635b816 100644 --- a/lib/flutter_pangle_ads.dart +++ b/lib/flutter_pangle_ads.dart @@ -61,6 +61,8 @@ class FlutterPangleAds { 'directDownloadNetworkType': directDownloadNetworkType, }, ); + print( + "🎉🎉🎉 FlutterAds ==> 初始化完成,推荐使用 GroMore Pro 版本,获得更高的收益:https://flutterads.top/"); return result; } diff --git a/pubspec.yaml b/pubspec.yaml index bce387c..3ddc7df 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,12 +1,16 @@ name: flutter_pangle_ads description: FlutterAds 一款优质的 Flutter 广告插件(字节跳动、穿山甲) -version: 2.9.0 -homepage: https://flutterads.github.io/site/ +version: 3.0.0 +homepage: https://flutterads.top repository: https://github.com/FlutterAds/flutter_pangle_ads +issue_tracker: https://github.com/FlutterAds/flutter_pangle_ads/issues +documentation: https://github.com/FlutterAds/flutter_pangle_ads/wiki +topics: [flutterads, ads, pangle, bytedance, income] +funding: [https://github.com/FlutterAds/.github] environment: sdk: ">=2.12.0 <4.0.0" - flutter: ">=1.20.0" + flutter: ">=2.5.0" dependencies: flutter: @@ -15,16 +19,8 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - # The following section is specific to Flutter. flutter: - # This section identifies this Flutter project as a plugin project. - # The 'pluginClass' and Android 'package' identifiers should not ordinarily - # be modified. They are used by the tooling to maintain consistency when - # adding or updating assets for this project. plugin: platforms: android: @@ -32,32 +28,3 @@ flutter: pluginClass: FlutterPangleAdsPlugin ios: pluginClass: FlutterPangleAdsPlugin - # To add assets to your plugin package, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # - # For details regarding assets in packages, see - # https://flutter.dev/assets-and-images/#from-packages - # - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware. - # To add custom fonts to your plugin package, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts in packages, see - # https://flutter.dev/custom-fonts/#from-packages