Fix(package.json) build script, Fix(android) build template (#13759)

* Update compileSdk targetSdk, Fix build cmd

* Add changelog

* Update AGP version

* Update package.json

* Update AGP

* Update SDK

* Update

* Update .changes/update-android-sdk.md

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>

* Use changes tag in change file

---------

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
This commit is contained in:
Jeong Min Oh 2025-07-08 18:00:26 +09:00 committed by GitHub
parent 232265c70e
commit 12e3590613
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 15 additions and 10 deletions

View File

@ -0,0 +1,5 @@
---
'tauri-cli': 'patch:changes'
---
Update compileSdk, targetSdk in android template to 36

View File

@ -16,13 +16,13 @@ val tauriProperties = Properties().apply {
}
android {
compileSdk = 34
compileSdk = 36
namespace = "{{app.identifier}}"
defaultConfig {
manifestPlaceholders["usesCleartextTraffic"] = "false"
applicationId = "{{app.identifier}}"
minSdk = {{android.min-sdk-version}}
targetSdk = 34
targetSdk = 36
versionCode = tauriProperties.getProperty("tauri.android.versionCode", "1").toInt()
versionName = tauriProperties.getProperty("tauri.android.versionName", "1.0")
}

View File

@ -4,7 +4,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:8.5.1")
classpath("com.android.tools.build:gradle:8.11.0")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.25")
{{~#each android-project-dependencies}}
classpath("{{this}}"){{/each}}

View File

@ -18,6 +18,6 @@ repositories {
dependencies {
compileOnly(gradleApi())
implementation("com.android.tools.build:gradle:8.5.1")
implementation("com.android.tools.build:gradle:8.11.0")
}

View File

@ -1,6 +1,6 @@
#Tue May 10 19:22:52 CST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

View File

@ -5,7 +5,7 @@ plugins {
android {
namespace = "{{android_package_id}}"
compileSdk = 34
compileSdk = 36
defaultConfig {
minSdk = 21

View File

@ -5,7 +5,7 @@ plugins {
android {
namespace = "app.tauri"
compileSdk = 34
compileSdk = 36
defaultConfig {
minSdk = 21

View File

@ -5,7 +5,7 @@ plugins {
android {
namespace = "com.plugin.sample"
compileSdk = 34
compileSdk = 36
defaultConfig {
minSdk = 21

View File

@ -15,8 +15,8 @@
"format:check": "prettier --check .",
"eslint:check": "pnpm run -r eslint:check",
"ts:check": "pnpm run -r ts:check",
"build": "pnpm run -r build",
"build:debug": "pnpm run -r build:debug",
"build": "pnpm run -F !api build && pnpm run -F api build",
"build:debug": "pnpm run -F !api build:debug && pnpm run -F api build:debug",
"build:api": "pnpm run --filter \"@tauri-apps/api\" build",
"build:api:debug": "pnpm run --filter \"@tauri-apps/api\" build:debug",
"build:cli": "pnpm run --filter \"@tauri-apps/cli\" build",