From 3009bead3bacf09f77e0492dcb07a909d538d6f3 Mon Sep 17 00:00:00 2001 From: NomanShoaib Date: Thu, 4 May 2023 19:48:26 +0500 Subject: [PATCH 1/2] Added proguard rules --- android/build.gradle | 5 ++++- android/proguard-rules.txt | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 android/proguard-rules.txt diff --git a/android/build.gradle b/android/build.gradle index d2e1bf2..d707cf2 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -49,6 +49,9 @@ android { versionName version_name buildConfigField "String", "CLIENT_VERSION", "\"$version_name\"" multiDexEnabled true + + // these rules will be merged to app's proguard rules + consumerProguardFiles './proguard-rules.txt' } compileOptions { @@ -61,7 +64,7 @@ android { buildTypes { release { - minifyEnabled false + minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } diff --git a/android/proguard-rules.txt b/android/proguard-rules.txt new file mode 100644 index 0000000..da93399 --- /dev/null +++ b/android/proguard-rules.txt @@ -0,0 +1,14 @@ +# Add project specific ProGuard rules here. +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# Optimizely +-keep class com.optimizely.optimizely_flutter_sdk.** {*;} +-keep class com.fasterxml.jackson.** {*;} +##---------------End: proguard configuration for Gson ---------- + From 7f22a6389428ce3787b0487107f18c486c0d0451 Mon Sep 17 00:00:00 2001 From: NomanShoaib Date: Thu, 4 May 2023 19:53:04 +0500 Subject: [PATCH 2/2] nit fix --- android/proguard-rules.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/proguard-rules.txt b/android/proguard-rules.txt index da93399..7fede45 100644 --- a/android/proguard-rules.txt +++ b/android/proguard-rules.txt @@ -10,5 +10,5 @@ # Optimizely -keep class com.optimizely.optimizely_flutter_sdk.** {*;} -keep class com.fasterxml.jackson.** {*;} -##---------------End: proguard configuration for Gson ---------- +##---------------End: proguard configuration ---------- pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy