Skip to content

Commit 9e27c61

Browse files
ahqsoftwaresSir-Thom
authored andcommitted
refactor(android): Remove targetSdk = 34 from every gradle build files (tauri-apps#1649)
* remove targetSdk * changelog * fix md file * Add the -js ones as well * remove -js ones
1 parent 3bb0771 commit 9e27c61

File tree

15 files changed

+29
-28
lines changed

15 files changed

+29
-28
lines changed

.changes/remove-target-sdk.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"barcode-scanner": patch:changes
3+
"biometric": patch:changes
4+
"clipboard-manager": patch:changes
5+
"deep-link": patch:changes
6+
"dialog": patch:changes
7+
"geolocation": patch:changes
8+
"haptics": patch:changes
9+
"nfc": patch:changes
10+
"notification": patch:changes
11+
"shell": patch:changes
12+
"store": patch:changes
13+
---
14+
15+
Remove targetSdk from build.kts files as it is deprecated and will be removed from DSL v9.0

examples/api/src-tauri/gen/android/app/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ android {
1919
defaultConfig {
2020
manifestPlaceholders["usesCleartextTraffic"] = "false"
2121
applicationId = "com.tauri.api"
22-
minSdk = 24
23-
targetSdk = 34
22+
minSdk = 24
2423
versionCode = tauriProperties.getProperty("tauri.android.versionCode", "1").toInt()
2524
versionName = tauriProperties.getProperty("tauri.android.versionName", "1.0")
2625
}

plugins/barcode-scanner/android/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ android {
88
compileSdk = 34
99

1010
defaultConfig {
11-
minSdk = 24
12-
targetSdk = 34
11+
minSdk = 24
1312

1413
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1514
consumerProguardFiles("consumer-rules.pro")

plugins/biometric/android/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ android {
88
compileSdk = 34
99

1010
defaultConfig {
11-
minSdk = 24
12-
targetSdk = 34
11+
minSdk = 24
1312

1413
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1514
consumerProguardFiles("consumer-rules.pro")

plugins/clipboard-manager/android/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ android {
88
compileSdk = 34
99

1010
defaultConfig {
11-
minSdk = 24
12-
targetSdk = 34
11+
minSdk = 24
1312

1413
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1514
consumerProguardFiles("consumer-rules.pro")

plugins/deep-link/android/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ android {
88
compileSdk = 34
99

1010
defaultConfig {
11-
minSdk = 24
12-
targetSdk = 34
11+
minSdk = 24
1312

1413
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1514
consumerProguardFiles("consumer-rules.pro")

plugins/deep-link/examples/app/src-tauri/gen/android/app/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ android {
1010
defaultConfig {
1111
manifestPlaceholders["usesCleartextTraffic"] = "false"
1212
applicationId = "com.tauri.deep_link_example"
13-
minSdk = 24
14-
targetSdk = 34
13+
minSdk = 24
1514
versionCode = 1
1615
versionName = "1.0"
1716
}

plugins/dialog/android/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ android {
88
compileSdk = 34
99

1010
defaultConfig {
11-
minSdk = 24
12-
targetSdk = 34
11+
minSdk = 24
1312

1413
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1514
consumerProguardFiles("consumer-rules.pro")

plugins/geolocation/android/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ android {
88
compileSdk = 34
99

1010
defaultConfig {
11-
minSdk = 24
12-
targetSdk = 34
11+
minSdk = 24
1312

1413
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1514
consumerProguardFiles("consumer-rules.pro")

plugins/haptics/android/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ android {
88
compileSdk = 34
99

1010
defaultConfig {
11-
minSdk = 24
12-
targetSdk = 34
11+
minSdk = 24
1312

1413
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1514
consumerProguardFiles("consumer-rules.pro")

0 commit comments

Comments
 (0)