-
Notifications
You must be signed in to change notification settings - Fork 270
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
Flutter build api --release issue #99
Comments
We suspect this is related to the use of Proguard and we'll investigate |
Thank for your response. I found problem myself but forgot update issue, it's really problem when release with Proguard, sorry for wasting your time. |
@thanhhuan1990 can you elaborate more on what the issue is/way - if would help others if we can document what the issue was |
I had a similar issue due to Proguard. I fixed it by adding the following line to my Proguard file. |
Might be worth adding it to the readme. |
Thanks @britannio, we planned to do so |
As an aside, turns out everyone is a proguard user now... This fixed my issue, even though I'm using a standard autogen flutter project with the latest release, etc. Finding it was a lucky stroke. Can how to create a proper proguard file be documented? I added the line from this issue to the file documented here https://flutter.dev/docs/deployment/android#step-1---configure-proguard . |
This solution worked for me for the Android build, what about the iOS? Because this bug is happening to my app on iOS as well. |
Where is this line supposed to go exactly? I know it says on the proguard file but, according to the docs it says it should be there in the project auto-generated, but in my case is not, do I suppose to create it? |
then in I also use Finally under |
Now I can retrieve calendars in release mode by adding proguard. But for release mode deletion of event is not working.Can anyone help me in this case.I have an important feature to release. |
@britannio android/app/proguard-rules.pro - this would be inside the flutter app's android/app or inside the plugin's? |
Inside your Flutter app. |
I did not have the pro guard files before and I am creating the apk as follows in the gradle.properties located in android/gradle.properties add this line android.enableR8=true in android/app/build.gradle file add and add the file #Flutter Wrapper You might not be using firebase-keep class com.google.firebase.** { ; } |
As someone who just spent a full day on this thinking the problem came from somewhere else, you can follow the steps from @jurgenramirez but do use the proguard file of @britannio, with the endings in .** { *; }. |
Works! |
I have been gotten issue with retrieveCalendars when build release.
If I build project by code, device_calendar work well. But if I build release apk and then install by generated apk. this method cannot retrieveCalendars on device.
Please help me about this.
Thanks
The text was updated successfully, but these errors were encountered: