Version Change in build.settings

Is there a way to change the version in the build.setting file?

Also, is there a tutorial or API somewhere that lists all options that are available under build.settings for Android/iOS?

Hi,

Yes there is a way :)

Here is a copy of one of my build.settings files...the versionCode section is most relevant to your question :)

settings =
{

android =
{
versionCode = "29"
},

androidPermissions =
{
"android.permission.READ_PHONE_STATE",
"android.permission.INTERNET"
},

orientation =
{
default = "landscape",
supported =
{
"landscape",
},

}

}

This is exactly what I need. I tried using '1.1' or '1.5' and it seems that the versionCode only works with integers, not decimals.

Is there a list of androidPermissions options that are available in the build.settings file? For example, what does READ_PHONE_STATE mean?

Sure,

Here's the list...
http://developer.android.com/reference/android/Manifest.permission.html

Not all of them are available in Corona, btw. So even if you ask for the permission, you may not be able to use it...because Corona does not have APIs to access them yet.

As for READ_PHONE_STATE...I'm not sure about everything it offers. I do know that you need it if you want to grab the deviceid of the phone.

If you try to get the device info without this permission, you'll get a black screen.

I think you may also need that permission if you want to write to the sqlite database, etc. Although, I'm not sure about this.

Take care :)

Thank you indiegamepod.

views:1539 update:2011/10/9 9:57:41
corona forums © 2003-2011