Skip to content

Commit

Permalink
[FSSDK-9105] Fix: Added proguard rules to resolve "no serializer foun…
Browse files Browse the repository at this point in the history
…d" error (#51)

* Added proguard rules

* nit fix

---------

Co-authored-by: NomanShoaib <[email protected]>
(cherry picked from commit 4d9468f)
  • Loading branch information
mnoman09 authored and mikechu-optimizely committed May 8, 2023
1 parent 005ecca commit fdf4bd2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
5 changes: 4 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -61,7 +64,7 @@ android {

buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand Down
14 changes: 14 additions & 0 deletions android/proguard-rules.txt
Original file line number Diff line number Diff line change
@@ -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 ----------

0 comments on commit fdf4bd2

Please sign in to comment.