Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Landscape and Expansion files
Started by mr.coxall Jun 18 2018 05:17 PM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

mr.coxall

[GLOBAL: userInfoPane.html]
mr.coxall
  • Observer

  • 10 posts
  • Corona SDK

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?

 



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,118 posts
  • Corona Staff

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




[topic_controls]
[/topic_controls]