-
Notifications
You must be signed in to change notification settings - Fork 25
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
android_set_version_name does not work with Flutter #10
Comments
You need to use something like this: lane :staging do
android_set_version_name(
version_name: '"1.6.3"'
)
android_set_version_code(
version_code: 18
)
...
..
. |
Thanks, @pablopantaleon, this works! I think we need to update the documentation. |
@dsgriffin @pablopantaleon Please have a look at this PR if you think it's useful or needs additions/updates: |
@TheFabbiusCorp PR #17 merged – is that the whole solution to this issue so that it can be closed? Thank you! |
Well, that PR provides a description to a possible solution. It actually solves the issue, although supporting the use case in the code itself would be the best. |
But it doesn't work, if you're trying to use variable instead of just string.
In build.gradle it looks like it
|
Solution
|
this works for one time. When i run it again it throughs then the same error and the version looks like this in build.gradle ""2.0.0"" Solution for me was that i just put single quotes for version number like this |
Using
android_set_version_name
without options setsversionName
to an empty string. If you run it twice it then completely removes the property from gradle.If you instead try setting a specific version (e.g.
android_set_version_name(version_name: '1.0.0')
) it sets an invalid raw numeric instead of a stringThe text was updated successfully, but these errors were encountered: