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

App has stopped on production #3

Closed
savandev17 opened this issue Jun 20, 2020 · 2 comments
Closed

App has stopped on production #3

savandev17 opened this issue Jun 20, 2020 · 2 comments

Comments

@savandev17
Copy link

savandev17 commented Jun 20, 2020

This is awesome plugin, It's working fine when running on the emulator but I have some issue when released app to pay store, it show the error app has stopped when pdf view try to loading,
thought might need to add this line "-keep class com.shockwave.**" but not sure where need to add it,
could you please advise, thank you.

@savandev17 savandev17 changed the title For production usage App has stopped on production Jun 20, 2020
@binSaed
Copy link
Owner

binSaed commented Jun 20, 2020

Hi @savandev17
u need to make a file named=> proguard-rules.pro
and put on it this line => -keep class com.shockwave.**
path for the file urFlutterApp/android/app/proguard-rules.pro

and this the link for the file in the example
https://github.com/AbdOoSaed/flutter_cached_pdfview/blob/master/example/android/app/proguard-rules.pro

and also u need to add this configuration in ur
urFlutterApp/android/app/build.gradle
https://github.com/AbdOoSaed/flutter_cached_pdfview/blob/master/example/android/app/build.gradle#L49

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

@savandev17
Copy link
Author

Thank you so much for your best support sir, it's working fine now.

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