Browse Source

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>
pull/3291/head
renovate[bot] 1 month ago committed by GitHub
parent
commit
738295a933
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/proguard-rules.pro
  2. 3
      gradle.properties
  3. 2
      gradle/libs.versions.toml
  4. 1
      libraries/designsystem/build.gradle.kts
  5. 2
      libraries/encrypted-db/build.gradle.kts
  6. 1
      libraries/network/build.gradle.kts
  7. 1
      libraries/pushproviders/firebase/build.gradle.kts

2
app/proguard-rules.pro vendored

@ -40,3 +40,5 @@ @@ -40,3 +40,5 @@
-keepclassmembers class android.view.JavaViewSpy {
static int windowAttachCount(android.view.View);
}
-keep class io.element.android.x.di.** { *; }

3
gradle.properties

@ -59,6 +59,3 @@ android.enableBuildConfigAsBytecode=true @@ -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

2
gradle/libs.versions.toml

@ -3,7 +3,7 @@ @@ -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"

1
libraries/designsystem/build.gradle.kts

@ -29,7 +29,6 @@ android { @@ -29,7 +29,6 @@ android {
buildTypes {
getByName("release") {
isMinifyEnabled = true
consumerProguardFiles("consumer-rules.pro")
}
}

2
libraries/encrypted-db/build.gradle.kts

@ -22,7 +22,7 @@ android { @@ -22,7 +22,7 @@ android {
buildTypes {
release {
isMinifyEnabled = true
isMinifyEnabled = false
consumerProguardFiles("consumer-proguard-rules.pro")
}
}

1
libraries/network/build.gradle.kts

@ -23,7 +23,6 @@ android { @@ -23,7 +23,6 @@ android {
buildTypes {
release {
isMinifyEnabled = true
consumerProguardFiles("consumer-rules.pro")
}
}

1
libraries/pushproviders/firebase/build.gradle.kts

@ -26,7 +26,6 @@ android { @@ -26,7 +26,6 @@ android {
buildTypes {
getByName("release") {
isMinifyEnabled = true
consumerProguardFiles("consumer-proguard-rules.pro")
resValue(
type = "string",

Loading…
Cancel
Save