chore: bump version to 1.0.0 (versionCode 2) and enable minification for release builds
Build and Release APK / build-and-release (push) Failing after 5m15s

This commit is contained in:
2026-06-14 11:53:26 +01:00
parent d40a63ec4a
commit 4d0ab48c1f
2 changed files with 46 additions and 3 deletions
+3 -3
View File
@@ -12,8 +12,8 @@ android {
applicationId = "com.gronod.esp32aldldashboard"
minSdk = 24
targetSdk = 36
versionCode = 1
versionName = "1.0"
versionCode = 2
versionName = "1.0.0"
}
signingConfigs {
@@ -31,7 +31,7 @@ android {
buildTypes {
release {
signingConfig = signingConfigs.getByName("release")
isMinifyEnabled = false
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
+43
View File
@@ -0,0 +1,43 @@
# ProGuard rules for ESP32 ALDL Dashboard
# Compose + Room + Kotlin Serialization + Navigation3
# --- General ---
-keepattributes *Annotation*
-keepattributes Signature
-keepattributes Exceptions
-keepattributes InnerClasses
-keepattributes EnclosingMethod
-keepattributes SourceFile,LineNumberTable
-renamesourcefileattribute SourceFile
# --- Room ---
-keep class * extends androidx.room.RoomDatabase
-keep class * { @androidx.room.* <fields>; }
-dontwarn androidx.room.paging.**
# --- Kotlin Serialization ---
-keep class kotlinx.serialization.** { *; }
-keepclassmembers class * {
@kotlinx.serialization.SerialName <fields>;
@kotlinx.serialization.Serializable <fields>;
}
-if @kotlinx.serialization.Serializable class **
-keepclassmembers class <1> {
static **$$serializerInstance;
kotlinx.serialization.KSerializer serializer(...);
}
# --- Compose / Navigation ---
-keep class androidx.navigation3.** { *; }
-keep class * implements androidx.navigation3.NavigationUi { *; }
-keepclassmembers class * {
@androidx.compose.runtime.Composable <methods>;
}
# --- DataStore / Preferences ---
-keep class androidx.datastore.** { *; }
-keep class * implements androidx.datastore.core.Serializer { *; }
# --- Application classes (auto-generated, keep to be safe) ---
-keep class com.gronod.esp32aldldashboard.** { *; }
-keepclassmembers class com.gronod.esp32aldldashboard.** { *; }