From 2242593f7e6bc85dac41f2141852528e6ce4ccaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jc=20Mi=C3=B1arro?= Date: Tue, 31 Oct 2023 10:01:39 +0100 Subject: [PATCH] Enable R8 full mode --- gradle.properties | 2 +- stream-chat-android-ui-components-sample/build.gradle | 2 +- stream-chat-android-ui-components-sample/proguard-rules.pro | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 24c8a948b2b..cf444823122 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,5 +6,5 @@ org.gradle.caching=true android.nonTransitiveRClass=false # Disabled R8 full mode -android.enableR8.fullMode=false +android.enableR8.fullMode=true android.suppressUnsupportedCompileSdk=34 \ No newline at end of file diff --git a/stream-chat-android-ui-components-sample/build.gradle b/stream-chat-android-ui-components-sample/build.gradle index a0439aefc6a..270de8103cb 100644 --- a/stream-chat-android-ui-components-sample/build.gradle +++ b/stream-chat-android-ui-components-sample/build.gradle @@ -71,7 +71,7 @@ android { debuggable false } release { - minifyEnabled false + minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } diff --git a/stream-chat-android-ui-components-sample/proguard-rules.pro b/stream-chat-android-ui-components-sample/proguard-rules.pro index 8d938305ec9..32fd850f12b 100644 --- a/stream-chat-android-ui-components-sample/proguard-rules.pro +++ b/stream-chat-android-ui-components-sample/proguard-rules.pro @@ -28,3 +28,8 @@ -keepattributes LineNumberTable,SourceFile -renamesourcefileattribute SourceFile + +-dontwarn android.telephony.HwTelephonyManager +-dontwarn com.caverock.androidsvg.SVG +-dontwarn com.caverock.androidsvg.SVGParseException +-dontwarn pl.droidsonroids.gif.GifDrawable \ No newline at end of file