mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 13:57:16 +00:00
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:
parent
232265c70e
commit
12e3590613
5
.changes/update-android-sdk.md
Normal file
5
.changes/update-android-sdk.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
'tauri-cli': 'patch:changes'
|
||||
---
|
||||
|
||||
Update compileSdk, targetSdk in android template to 36
|
||||
@ -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")
|
||||
}
|
||||
|
||||
@ -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}}
|
||||
|
||||
@ -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")
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -5,7 +5,7 @@ plugins {
|
||||
|
||||
android {
|
||||
namespace = "{{android_package_id}}"
|
||||
compileSdk = 34
|
||||
compileSdk = 36
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 21
|
||||
|
||||
@ -5,7 +5,7 @@ plugins {
|
||||
|
||||
android {
|
||||
namespace = "app.tauri"
|
||||
compileSdk = 34
|
||||
compileSdk = 36
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 21
|
||||
|
||||
@ -5,7 +5,7 @@ plugins {
|
||||
|
||||
android {
|
||||
namespace = "com.plugin.sample"
|
||||
compileSdk = 34
|
||||
compileSdk = 36
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 21
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user