Skip to content

Commit

Permalink
refactor(android): Remove targetSdk = 34 from every gradle build files (
Browse files Browse the repository at this point in the history
#1649)

* remove targetSdk

* changelog

* fix md file

* Add the -js ones as well

* remove -js ones
  • Loading branch information
ahqsoftwares authored Aug 12, 2024
1 parent 5f68990 commit 6b079cf
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 28 deletions.
15 changes: 15 additions & 0 deletions .changes/remove-target-sdk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"barcode-scanner": patch:changes
"biometric": patch:changes
"clipboard-manager": patch:changes
"deep-link": patch:changes
"dialog": patch:changes
"geolocation": patch:changes
"haptics": patch:changes
"nfc": patch:changes
"notification": patch:changes
"shell": patch:changes
"store": patch:changes
---

Remove targetSdk from build.kts files as it is deprecated and will be removed from DSL v9.0
3 changes: 1 addition & 2 deletions examples/api/src-tauri/gen/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ android {
defaultConfig {
manifestPlaceholders["usesCleartextTraffic"] = "false"
applicationId = "com.tauri.api"
minSdk = 24
targetSdk = 34
minSdk = 24
versionCode = tauriProperties.getProperty("tauri.android.versionCode", "1").toInt()
versionName = tauriProperties.getProperty("tauri.android.versionName", "1.0")
}
Expand Down
3 changes: 1 addition & 2 deletions plugins/barcode-scanner/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ android {
compileSdk = 34

defaultConfig {
minSdk = 24
targetSdk = 34
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand Down
3 changes: 1 addition & 2 deletions plugins/biometric/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ android {
compileSdk = 34

defaultConfig {
minSdk = 24
targetSdk = 34
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand Down
3 changes: 1 addition & 2 deletions plugins/clipboard-manager/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ android {
compileSdk = 34

defaultConfig {
minSdk = 24
targetSdk = 34
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand Down
3 changes: 1 addition & 2 deletions plugins/deep-link/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ android {
compileSdk = 34

defaultConfig {
minSdk = 24
targetSdk = 34
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ android {
defaultConfig {
manifestPlaceholders["usesCleartextTraffic"] = "false"
applicationId = "com.tauri.deep_link_example"
minSdk = 24
targetSdk = 34
minSdk = 24
versionCode = 1
versionName = "1.0"
}
Expand Down
3 changes: 1 addition & 2 deletions plugins/dialog/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ android {
compileSdk = 34

defaultConfig {
minSdk = 24
targetSdk = 34
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand Down
3 changes: 1 addition & 2 deletions plugins/geolocation/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ android {
compileSdk = 34

defaultConfig {
minSdk = 24
targetSdk = 34
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand Down
3 changes: 1 addition & 2 deletions plugins/haptics/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ android {
compileSdk = 34

defaultConfig {
minSdk = 24
targetSdk = 34
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand Down
3 changes: 1 addition & 2 deletions plugins/nfc/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ android {
compileSdk = 34

defaultConfig {
minSdk = 24
targetSdk = 34
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand Down
3 changes: 1 addition & 2 deletions plugins/notification/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ android {
compileSdk = 34

defaultConfig {
minSdk = 24
targetSdk = 34
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand Down
3 changes: 1 addition & 2 deletions plugins/shell/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ android {
compileSdk = 34

defaultConfig {
minSdk = 24
targetSdk = 34
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand Down
3 changes: 1 addition & 2 deletions plugins/store/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ android {
compileSdk = 34

defaultConfig {
minSdk = 24
targetSdk = 34
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand Down
3 changes: 1 addition & 2 deletions shared/template/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ android {
compileSdk = 34

defaultConfig {
minSdk = 24
targetSdk = 34
minSdk = 24

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
Expand Down

0 comments on commit 6b079cf

Please sign in to comment.