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

The app crash on the release version #6

Closed
ahmed-mohsin opened this issue May 18, 2020 · 2 comments
Closed

The app crash on the release version #6

ahmed-mohsin opened this issue May 18, 2020 · 2 comments

Comments

@ahmed-mohsin
Copy link

the plugin work well in debug mode but in the release build the app stop on loading the chat

@reytum
Copy link
Contributor

reytum commented May 21, 2020

@AmoJava Could you please share some crash logs. It might be issue with proguard. You can try adding the proguard rules in your proguard-rules.pro file. These are the rules used by KM SDK: https://docs.kommunicate.io/docs/android-installation.html#building-with-proguard

@ahmed-mohsin
Copy link
Author

ahmed-mohsin commented May 22, 2020

thanks reytum
The problem was really because of the proguard-rules
and it solved by adding the proguard file inside
"android" >"app" folder
and adjust the buildTypes
to this

buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release

    }
} 

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

2 participants