Skip to content

Commit

Permalink
Updated proguardFiles to example
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-minaiev-frontegg committed Aug 19, 2024
1 parent 99ba638 commit 9e4e1d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ android {
buildTypes {
release {
signingConfig signingConfigs.debug

minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

Expand Down
11 changes: 11 additions & 0 deletions example/android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#Flutter Wrapper
-keep class io.flutter.app.** { *; }
-keep class io.flutter.plugin.** { *; }
-keep class io.flutter.util.** { *; }
-keep class io.flutter.view.** { *; }
-keep class io.flutter.** { *; }
-keep class io.flutter.plugins.** { *; }

# Frontegg SDK

-keepclasseswithmembers class com.frontegg.** {*;}

0 comments on commit 9e4e1d1

Please sign in to comment.