Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in release mode on Android when minifyEnabled is set to true #20

Closed
artur-ios-dev opened this issue Sep 21, 2018 · 1 comment
Closed

Comments

@artur-ios-dev
Copy link

The app crashes when initializing and sending local notifications when it's built in release mode with the given configuration:

buildTypes {
        release {
            signingConfig signingConfigs.release

            minifyEnabled true
            useProguard true

            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

        }
    }

proguard-rules.pro

#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.**  { *; }

Disabling minifyEnabled rule fixes the issue. So seems like something is cut out of .apk that is needed for this plugin to work.

If needed I can provide the crash log once it shows up in the google play console.

@artur-ios-dev
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant