Closed vitulgoyani closed 2 years ago
if release APK not working in all android version look to this secation https://github.com/AbdOoSaed/flutter_cached_pdfview#for-production-usage
Not solved, the same issue even I add this progaurd and make release build according to your link
please try to run the example app and let me know download the whole project not only dart files only
https://github.com/AbdOoSaed/flutter_cached_pdfview/tree/master/example
same issue
same comment
please try to run the example app and let me know download the whole project not only dart files only
https://github.com/AbdOoSaed/flutter_cached_pdfview/tree/master/example
yes your code is working but at release mode, I can't test and I use another plugin there is also the same issue so maybe it is PDF related issue it is work in older version but in android 11 it is show white screen
same issue
Does anyone have a solution or alternative?
I test it with android 11 and it worked perfectly please download this app and try view pdf and let me know
https://play.google.com/store/apps/details?id=com.Suhaib_Digital_Base
your app is working fine
@vitulgoyani try this solution, it's working: https://github.com/arnaudelub/flutter_fullpdfview/issues/21#issuecomment-826481409
your link is not working @AbdOoSaed
@vitulgoyani did you add this line yet? i was faced your problem and solved
-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. { *; } -keep class com.shockwave.* { ; }
and in build.gradle:
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so flutter run --release
works.
signingConfig signingConfigs.debug
minifyEnabled true
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
I've got the same problem in both debug and release build. I wasn't using ProGuard in the first place but @saelco sadly your suggestions did not help fix the problem even after enabling it. @AbdOoSaed I looked at the sample code of your app and I cannot find any significant differences regarding this behavior. @saelco @AbdOoSaed Which version of flutter are you using?
I have same issue, also not using proguard at all. Release apk does not work (white screen) but debug apk no issues.
I have same issue, but in my case neither debug nor release doesn't work.
This is work for me
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled true
shrinkResources true
useProguard true
proguardFiles getDefaultProguardFile(
'proguard-android-optimize.txt'),
'proguard-rules.pro'
}
}
and this is my proguard file, put this file in android/app/
Thanks @vitulgoyani
it is the same as Example project https://github.com/AbdOoSaed/flutter_cached_pdfview/blob/804ee6adbabecb6602391339c5c46f4abdcb3a58/example/android/app/build.gradle#L48
Thanks @vitulgoyani
it is the same as Example project
this is different -keep class com.shockwave.* { ; }
-keep class com.shockwave.* { ; }
Thanks, This is work for me!
remove 'useProguard true' if got error
when i run release apk it is show white screen and in debug mode is work well