refactor(android): consolidate signing config and bump SDK to 36
- Remove external android-signing.gradle.kts, inline keystore config into app/build.gradle.kts - Update compileSdk and targetSdk to 36 - Fix version format in package.json (v0.1 → 0.1.0)
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
// Android signing configuration — reads keystore credentials from external file.
|
||||
// This file is kept outside gen/android/ so it survives tauri android init regeneration.
|
||||
//
|
||||
// Usage: add `apply(from = "../../../android-signing.gradle.kts")` at the bottom of
|
||||
// src-tauri/gen/android/app/build.gradle.kts
|
||||
|
||||
import java.util.Properties
|
||||
|
||||
val keystorePropertiesFile = java.io.File("/home/msksbr/Android/keystore.properties")
|
||||
val keystoreProperties = Properties().apply {
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystorePropertiesFile.inputStream().use { load(it) }
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
signingConfigs {
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
create("release") {
|
||||
storeFile = java.io.File(keystoreProperties["storeFile"] as String)
|
||||
storePassword = keystoreProperties["storePassword"] as String
|
||||
keyAlias = keystoreProperties["keyAlias"] as String
|
||||
keyPassword = keystoreProperties["keyPassword"] as String
|
||||
}
|
||||
}
|
||||
}
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,12 +13,11 @@ val tauriProperties = Properties().apply {
|
||||
}
|
||||
}
|
||||
|
||||
// Signing config — reads from external keystore.properties
|
||||
// Release signing config
|
||||
val keystorePropertiesFile = file("/home/msksbr/Android/keystore.properties")
|
||||
val keystoreProperties = Properties().apply {
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystorePropertiesFile.inputStream().use { load(it) }
|
||||
}
|
||||
val keystoreProperties = Properties()
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystorePropertiesFile.inputStream().use { keystoreProperties.load(it) }
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -89,4 +88,11 @@ dependencies {
|
||||
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.0")
|
||||
}
|
||||
|
||||
apply(from = "tauri.build.gradle.kts")
|
||||
apply(from = "tauri.build.gradle.kts")
|
||||
|
||||
// Also build per-architecture release APKs when universal release is built
|
||||
afterEvaluate {
|
||||
tasks.matching { it.name == "assembleUniversalRelease" }.configureEach {
|
||||
dependsOn("assembleArm64Release", "assembleArmRelease", "assembleX86_64Release", "assembleX86Release")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user