From 202b7333eff4996080a1c9dce79d5af99ed5c3f9 Mon Sep 17 00:00:00 2001 From: Goooler Date: Sat, 31 Aug 2024 16:45:09 +0800 Subject: [PATCH] Enable R8 fullMode in example for testing --- example/build.gradle | 6 +++++- gradle.properties | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/example/build.gradle b/example/build.gradle index 47e7fce..c5e84c1 100644 --- a/example/build.gradle +++ b/example/build.gradle @@ -23,8 +23,12 @@ android { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { + all { + signingConfig signingConfigs.debug + } release { - minifyEnabled false + minifyEnabled true + proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), 'proguard-rules.pro' } } compileOptions { diff --git a/gradle.properties b/gradle.properties index 973d43e..9c65764 100644 --- a/gradle.properties +++ b/gradle.properties @@ -31,4 +31,6 @@ POM_DEVELOPER_ID=mgod POM_DEVELOPER_NAME=Marshall Weir android.useAndroidX=true android.enableJetifier=false +# Enable R8 full mode. +android.enableR8.fullMode=true org.gradle.jvmargs=-Xmx4096m "-XX:MaxMetaspaceSize=512m"