diff --git a/android/build.gradle b/android/build.gradle index edb3e34..b4b38bb 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -39,6 +39,6 @@ dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.legacy:legacy-support-v4:1.0.0' // 广告 SDK - implementation 'com.pangle.cn:ads-sdk-pro:5.4.1.6' + implementation 'com.pangle.cn:ads-sdk-pro:5.5.1.7' // compileOnly fileTree(dir: 'libs', include: ['*.jar', '*.aar']) } diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 01a286e..3c9d085 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 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 71b5267..c6c491c 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 @@ -183,7 +183,6 @@ public void initAd(MethodCall call, final MethodChannel.Result result) { .debug(BuildConfig.DEBUG) //测试阶段打开,可以通过日志排查问题,上线时去除该调用 .supportMultiProcess(supportMultiProcess)//是否支持多进程 .directDownloadNetworkType(directDownloadNetworkTypeList)// 直接下载的网络方式 - .needClearTaskReset() .build(); // 初始化 SDK TTAdSdk.init(activity.getApplicationContext(), config, new TTAdSdk.InitCallback() { diff --git a/example/android/build.gradle b/example/android/build.gradle index 59d227f..9d9b726 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -5,7 +5,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:4.2.1' + classpath 'com.android.tools.build:gradle:7.3.0' } } diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index 7ca1f1f..dcd501c 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Fri Sep 02 15:34:15 CST 2022 distributionBase=GRADLE_USER_HOME -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME +zipStoreBase=GRADLE_USER_HOME \ No newline at end of file diff --git a/ios/Classes/Event/AdRewardEvent.h b/ios/Classes/Event/AdRewardEvent.h index 5ad346c..2b7673a 100644 --- a/ios/Classes/Event/AdRewardEvent.h +++ b/ios/Classes/Event/AdRewardEvent.h @@ -8,7 +8,7 @@ #import "BaseAdPage.h" // 广告激励事件 @interface AdRewardEvent : AdEvent -// 错误码 +// 激励类型 @property (nonatomic,assign) NSInteger rewardType; // 奖励是否有效 @property BOOL rewardVerify;