Update android.gradle.plugin to v8.5.2 (#3004)
* Update android.gradle.plugin * Fix release builds with AGP 8.5 by removing the minification config in each library module. I believe this is now centralised. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jorge Martín <jorgem@element.io>
This commit is contained in:
2
app/proguard-rules.pro
vendored
2
app/proguard-rules.pro
vendored
@@ -40,3 +40,5 @@
|
||||
-keepclassmembers class android.view.JavaViewSpy {
|
||||
static int windowAttachCount(android.view.View);
|
||||
}
|
||||
|
||||
-keep class io.element.android.x.di.** { *; }
|
||||
|
||||
@@ -59,6 +59,3 @@ android.enableBuildConfigAsBytecode=true
|
||||
|
||||
# By default, the plugin applies itself to all subprojects, but we don't want that as it would cause issues with builds using local AARs
|
||||
dependency.analysis.autoapply=false
|
||||
|
||||
# Disable new R8 shrinking for local dependencies as it causes issues with release builds
|
||||
android.disableMinifyLocalDependenciesForLibraries=false
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
[versions]
|
||||
# Project
|
||||
android_gradle_plugin = "8.4.1"
|
||||
android_gradle_plugin = "8.5.2"
|
||||
kotlin = "1.9.25"
|
||||
ksp = "1.9.25-1.0.20"
|
||||
firebaseAppDistribution = "5.0.0"
|
||||
|
||||
@@ -29,7 +29,6 @@ android {
|
||||
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = true
|
||||
consumerProguardFiles("consumer-rules.pro")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
isMinifyEnabled = false
|
||||
consumerProguardFiles("consumer-proguard-rules.pro")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
consumerProguardFiles("consumer-rules.pro")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ android {
|
||||
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = true
|
||||
consumerProguardFiles("consumer-proguard-rules.pro")
|
||||
resValue(
|
||||
type = "string",
|
||||
|
||||
Reference in New Issue
Block a user