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 version code is different from version code in google play console #49544
Comments
Related to #39817 |
This is the intended behavior of split APKs, for more information see: https://developer.android.com/studio/build/configure-apk-splits#configure-APK-versions |
Hi, I am also facing the same issue. For some security reason i am checking the app version and send it to backend. In my backend i have the version code like 5. But when i am reading the version code using package_info i am getting the version code like 1005, 2005 and 4005. How can i get the exact version code? Any idea? Note: i cant use bundle. we don't have access for certificate file. |
Hi.. Any update regarding this? |
Hi, --split-per-abi doesnt work with the suggestions from https://developer.android.com/studio/build/configure-apk-splits#configure-APK-versions. When you add |
Hey, running into this too. Seems like the "intended behaviour" is for split apks to use the version code generated by flutter.gradle check line 631. This seems to override any changes I make to the version code in my app/gradle, is it possible to make this optional? @jonahwilliams |
but the problem with split apk is the build number gets huge as pointed here #49544 (comment) nextime I upload a build the build number has to be more than 4003 |
I made a workaround by overriding the split logic in
|
The question right now is if a user wishes to deploy split apks to the playstore, How should the app versioning be handled? Since the version number is huge when uploaded to playstore. |
Here is a working version for android/app/build.gradle
|
Hey, I'm facing the same issues from version code. The app store within our countries can only support APK. And we need to provide both of arm and arm64 version of our app with the same version code. |
here is the solution : |
When uploading app to playstore I understand that we need our app to have a unique version code for each build and in flutter the version code is said to be what follows + in pubspec.yaml.
e.g
version: 1.0.0+3
has a version code of 3 but when I upload my split apk's built usingflutter build apk --split-per-abi
to google play console has version code as 4003,2003&1003The problem is the version codes get huge when using split apks and it doesn't seem to respect the version number specified in
pubspec.yaml
.fastlane/fastlane#15936 (comment)
The text was updated successfully, but these errors were encountered: