Landscape and Expansion files

My app has become too big that I now need to use Expansion files for Android.

Here is a piece of my build.settings file:

settings = {

– Use the “orientation” table to set the default and supported device orientations

– Acceptable values are “portrait”, “portraitUpsideDown”, “landscapeRight”, or “landscapeLeft”

orientation = {

default = “landscapeRight”,

supported = { “landscapeRight” }

},

android =

{

–<strong>usesExpansionFile = true</strong>,

usesPermissions =

{

“android.permission.INTERNET”,

“com.android.vending.CHECK_LICENSE”,

“android.permission.WRITE_EXTERNAL_STORAGE”,

},

},

If I remove the comment to use Expansion files, the app is no longer in landscape.

Any ideas?

Do you have the <strong> and </strong> in your actual build.settings? 

settings = { -- Use the "orientation" table to set the default and supported device orientations -- Acceptable values are "portrait", "portraitUpsideDown", "landscapeRight", or "landscapeLeft" orientation = { default = "landscapeRight", supported = { "landscapeRight" } }, android = { usesExpansionFile = true, usesPermissions = { "android.permission.INTERNET", "com.android.vending.CHECK\_LICENSE", "android.permission.WRITE\_EXTERNAL\_STORAGE", }, }, }

If that’s your whole build.settings, you’re also missing a closing brace. Code formatting is important to help you understand how your braces line up correctly.

Rob

Do you have the <strong> and </strong> in your actual build.settings? 

settings = { -- Use the "orientation" table to set the default and supported device orientations -- Acceptable values are "portrait", "portraitUpsideDown", "landscapeRight", or "landscapeLeft" orientation = { default = "landscapeRight", supported = { "landscapeRight" } }, android = { usesExpansionFile = true, usesPermissions = { "android.permission.INTERNET", "com.android.vending.CHECK\_LICENSE", "android.permission.WRITE\_EXTERNAL\_STORAGE", }, }, }

If that’s your whole build.settings, you’re also missing a closing brace. Code formatting is important to help you understand how your braces line up correctly.

Rob