question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android versionCode

See original GitHub issue

The current versioning strategies successfully set the android versionName but do not seem to impact the android versionCode which is the more important number when publishing apks.

I’ve looked through https://docs.unity3d.com/Manual/CommandLineArguments.html but did not see any way to specify it. Although the -version argument also isn’t documented so maybe there’s a way. Do you know how to specify the android versionCode from the cli?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
webbertakkencommented, Jun 12, 2020

Yes, they are in fact not really undocumented CLI arguments, but custom arguments that are parsed using the build script provided by this action. See line 17 of the first reference. That is where the arguments are parsed into a Dictionary.

This is custom functionality of this actions build script that has no longer anything to do with Unity itself. The build script can be extended and so can the javascript bootstrapper.

0reactions
benoitdioncommented, Jul 2, 2020

thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Version your app - Android Developers
Define values for both of the version settings available: versionCode and versionName . ... A positive integer used as an internal version number....
Read more >
versionCode vs versionName in Android Manifest
android :versionCode — An integer value that represents the version of the application code, relative to other versions.
Read more >
Manage your Android app's versionCode & versionName with ...
As you know, every Android app must declare an app's versionCode (a monotonically increasing integer for each version of the app), and versionName...
Read more >
Android Version Code Tricks - ProAndroidDev
Version code is a special integer value which works as an internal version number. It is not visible to end users. Android system...
Read more >
Versioning Android Apps - Semantic Versioning - Dipien
Version code & version name · version code ( android:versionCode on your AndroidManifest.xml ) . The version code is an incremental integer value...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found