From 20fac5675c3c08f2886c728cbc8f1019b0faa07c Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Wed, 15 Nov 2023 09:55:12 +0100 Subject: [PATCH] chore(android): Replace deprecated compileSdkVersion with compileSdk (#1901) --- action-sheet/android/build.gradle | 2 +- app-launcher/android/build.gradle | 2 +- app/android/build.gradle | 2 +- browser/android/build.gradle | 2 +- camera/android/build.gradle | 2 +- clipboard/android/build.gradle | 2 +- device/android/build.gradle | 2 +- dialog/android/build.gradle | 2 +- filesystem/android/build.gradle | 2 +- geolocation/android/build.gradle | 2 +- google-maps/android/build.gradle | 2 +- haptics/android/build.gradle | 2 +- keyboard/android/build.gradle | 2 +- local-notifications/android/build.gradle | 2 +- network/android/build.gradle | 2 +- preferences/android/build.gradle | 2 +- push-notifications/android/build.gradle | 2 +- screen-orientation/android/build.gradle | 2 +- screen-reader/android/build.gradle | 2 +- share/android/build.gradle | 2 +- splash-screen/android/build.gradle | 2 +- status-bar/android/build.gradle | 2 +- text-zoom/android/build.gradle | 2 +- toast/android/build.gradle | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/action-sheet/android/build.gradle b/action-sheet/android/build.gradle index 58f759375..cbb7ddafd 100644 --- a/action-sheet/android/build.gradle +++ b/action-sheet/android/build.gradle @@ -32,7 +32,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.actionsheet" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/app-launcher/android/build.gradle b/app-launcher/android/build.gradle index 8c7a94d21..bc19c6082 100644 --- a/app-launcher/android/build.gradle +++ b/app-launcher/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.applauncher" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/app/android/build.gradle b/app/android/build.gradle index 4dc653892..1ee63dae1 100644 --- a/app/android/build.gradle +++ b/app/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.app" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/browser/android/build.gradle b/browser/android/build.gradle index c3be23c4a..25e3e07d4 100644 --- a/browser/android/build.gradle +++ b/browser/android/build.gradle @@ -32,7 +32,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.browser" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/camera/android/build.gradle b/camera/android/build.gradle index 3ba97d85c..afc8d875a 100644 --- a/camera/android/build.gradle +++ b/camera/android/build.gradle @@ -33,7 +33,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.camera" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/clipboard/android/build.gradle b/clipboard/android/build.gradle index 9e0b1fd7e..88f8f952a 100644 --- a/clipboard/android/build.gradle +++ b/clipboard/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.clipboard" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/device/android/build.gradle b/device/android/build.gradle index 2fa79c32a..b0bcc5d2a 100644 --- a/device/android/build.gradle +++ b/device/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.device" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/dialog/android/build.gradle b/dialog/android/build.gradle index de1464d18..aa9ded24a 100644 --- a/dialog/android/build.gradle +++ b/dialog/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.dialog" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/filesystem/android/build.gradle b/filesystem/android/build.gradle index 4056d0c9f..5daf41075 100644 --- a/filesystem/android/build.gradle +++ b/filesystem/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.filesystem" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/geolocation/android/build.gradle b/geolocation/android/build.gradle index 602b72162..19ce83927 100644 --- a/geolocation/android/build.gradle +++ b/geolocation/android/build.gradle @@ -32,7 +32,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.geolocation" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/google-maps/android/build.gradle b/google-maps/android/build.gradle index febd255bf..5fc80cd77 100644 --- a/google-maps/android/build.gradle +++ b/google-maps/android/build.gradle @@ -40,7 +40,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.googlemaps" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/haptics/android/build.gradle b/haptics/android/build.gradle index d4b521ec5..82ea3669e 100644 --- a/haptics/android/build.gradle +++ b/haptics/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.haptics" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/keyboard/android/build.gradle b/keyboard/android/build.gradle index daca553f2..60b98f7b5 100644 --- a/keyboard/android/build.gradle +++ b/keyboard/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.keyboard" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/local-notifications/android/build.gradle b/local-notifications/android/build.gradle index 0f116813c..6c51ce0b6 100644 --- a/local-notifications/android/build.gradle +++ b/local-notifications/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.localnotifications" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/network/android/build.gradle b/network/android/build.gradle index da903cdaf..dda01cd79 100644 --- a/network/android/build.gradle +++ b/network/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.network" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/preferences/android/build.gradle b/preferences/android/build.gradle index fbd3fb8df..6da86c3e0 100644 --- a/preferences/android/build.gradle +++ b/preferences/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.preferences" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/push-notifications/android/build.gradle b/push-notifications/android/build.gradle index 524eef497..694d2d6db 100644 --- a/push-notifications/android/build.gradle +++ b/push-notifications/android/build.gradle @@ -32,7 +32,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.pushnotifications" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/screen-orientation/android/build.gradle b/screen-orientation/android/build.gradle index 51f1c6ee7..9adb703e8 100644 --- a/screen-orientation/android/build.gradle +++ b/screen-orientation/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.screenorientation" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/screen-reader/android/build.gradle b/screen-reader/android/build.gradle index c5498cfa8..b4403566f 100644 --- a/screen-reader/android/build.gradle +++ b/screen-reader/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.screenreader" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/share/android/build.gradle b/share/android/build.gradle index c77a8f821..4390229d6 100644 --- a/share/android/build.gradle +++ b/share/android/build.gradle @@ -32,7 +32,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.share" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/splash-screen/android/build.gradle b/splash-screen/android/build.gradle index 7e9dcad54..34e461018 100644 --- a/splash-screen/android/build.gradle +++ b/splash-screen/android/build.gradle @@ -32,7 +32,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.splashscreen" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/status-bar/android/build.gradle b/status-bar/android/build.gradle index cbdf3c48f..55a35ffae 100644 --- a/status-bar/android/build.gradle +++ b/status-bar/android/build.gradle @@ -32,7 +32,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.statusbar" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/text-zoom/android/build.gradle b/text-zoom/android/build.gradle index 07d3f9d77..26ba4b0cd 100644 --- a/text-zoom/android/build.gradle +++ b/text-zoom/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.textzoom" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34 diff --git a/toast/android/build.gradle b/toast/android/build.gradle index 7c55ee801..7cf34a04d 100644 --- a/toast/android/build.gradle +++ b/toast/android/build.gradle @@ -31,7 +31,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") { android { namespace "com.capacitorjs.plugins.toast" - compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 + compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34 defaultConfig { minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34