diff --git a/plugins/2019.3497/android/corona.gradle b/plugins/2019.3497/android/corona.gradle index 880a424..f41db41 100644 --- a/plugins/2019.3497/android/corona.gradle +++ b/plugins/2019.3497/android/corona.gradle @@ -4,5 +4,5 @@ android.defaultConfig { ext["minSdkVersion"] = Math.max(ext.find("minSdkVersion")?:15, 19) dependencies { - implementation 'com.unity3d.ads:unity-ads:4.4.1' + implementation 'com.unity3d.ads:unity-ads:4.5.0' } diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts index 1e75e36..3059365 100644 --- a/src/android/app/build.gradle.kts +++ b/src/android/app/build.gradle.kts @@ -181,10 +181,10 @@ if (configureCoronaPlugins == "YES") { // android { - compileSdkVersion(29) + compileSdkVersion(30) defaultConfig { applicationId = coronaAppPackage - targetSdkVersion(29) + targetSdkVersion(30) minSdkVersion(coronaMinSdkVersion) versionCode = coronaVersionCode versionName = coronaVersionName diff --git a/src/android/build.gradle.kts b/src/android/build.gradle.kts index c38406e..9f14342 100644 --- a/src/android/build.gradle.kts +++ b/src/android/build.gradle.kts @@ -5,7 +5,7 @@ buildscript { } dependencies { classpath(kotlin("gradle-plugin", version = "1.3.70")) - classpath("com.android.tools.build:gradle:3.5.4") + classpath("com.android.tools.build:gradle:4.0.2") classpath("com.beust:klaxon:5.0.1") } } diff --git a/src/android/gradle.properties b/src/android/gradle.properties index 6a0212e..73e6ce1 100644 --- a/src/android/gradle.properties +++ b/src/android/gradle.properties @@ -1 +1,2 @@ coronaTargetStore=google +android.useAndroidX=true diff --git a/src/android/plugin/build.gradle b/src/android/plugin/build.gradle index 73bf230..7648816 100644 --- a/src/android/plugin/build.gradle +++ b/src/android/plugin/build.gradle @@ -1,11 +1,11 @@ apply plugin: 'com.android.library' android { - compileSdkVersion 29 + compileSdkVersion 30 defaultConfig { minSdkVersion 19 - targetSdkVersion 29 + targetSdkVersion 30 versionCode 1 versionName "1.0" } @@ -13,7 +13,7 @@ android { dependencies { implementation ':Corona@aar' - implementation 'com.unity3d.ads:unity-ads:4.4.1' + implementation 'com.unity3d.ads:unity-ads:4.5.0' } task extractPluginJar() { diff --git a/src/android/plugin/src/main/java/plugin/unityads/v4/LuaLoader.java b/src/android/plugin/src/main/java/plugin/unityads/v4/LuaLoader.java index 3461488..5d52404 100644 --- a/src/android/plugin/src/main/java/plugin/unityads/v4/LuaLoader.java +++ b/src/android/plugin/src/main/java/plugin/unityads/v4/LuaLoader.java @@ -42,7 +42,7 @@ @SuppressWarnings({"unused", "RedundantSuppression"}) public class LuaLoader implements JavaFunction, CoronaRuntimeListener { private static final String PLUGIN_NAME = "plugin.unityads.v4"; - private static final String PLUGIN_VERSION = "1.0.0"; + private static final String PLUGIN_VERSION = "1.0.1"; private static final String PLUGIN_SDK_VERSION = UnityAds.getVersion(); private static final String EVENT_NAME = "adsRequest";