Corona DOCS mention the versionCode in the build.settings file:
android = { versionCode = "10" }
Do I need it there? Is it the same versionCode that is defined in the simulator build dialog? Which one I should use or both?
Corona DOCS mention the versionCode in the build.settings file:
android = { versionCode = "10" }
Do I need it there? Is it the same versionCode that is defined in the simulator build dialog? Which one I should use or both?
Hi @polygonblog,
As the docs state, you should increase this value for each new version you submit to the store. It’s not necessary the first time, but on the next update you should increase it by +1 from the previous value.
Tanks Brent. Let me rephrase. Why is versionCode defined in both the build.settings file and the build dialog? Do I need to define it in both places?
Any thing like VersionCode, BuindleID, Version, AppName that’s hard coded into build.settings overrides whatever is in the Corona SDK build screen. This is by design.
However, we highly recommend that you do not hard code any of these values in your build.settings and use the build dialog instead. When you want to change them, you will naturally want to do it from the build screen and it will fail and create frustration for you.
Rob
Perfectly clear now. Thank you Rob!
Docs confused me. I think what you said should be here:
http://docs.coronalabs.com/guide/distribution/buildSettings/index.html
Hi @polygonblog,
As the docs state, you should increase this value for each new version you submit to the store. It’s not necessary the first time, but on the next update you should increase it by +1 from the previous value.
Tanks Brent. Let me rephrase. Why is versionCode defined in both the build.settings file and the build dialog? Do I need to define it in both places?
Any thing like VersionCode, BuindleID, Version, AppName that’s hard coded into build.settings overrides whatever is in the Corona SDK build screen. This is by design.
However, we highly recommend that you do not hard code any of these values in your build.settings and use the build dialog instead. When you want to change them, you will naturally want to do it from the build screen and it will fail and create frustration for you.
Rob
Perfectly clear now. Thank you Rob!
Docs confused me. I think what you said should be here:
http://docs.coronalabs.com/guide/distribution/buildSettings/index.html