Build Settings

Afternoon (to those in a appropriate time zone),

I was wondering if we can have both iOS and Android settings inside the build.settings file.

Cheers

Yes.  In fact here is a build.settings from one of my person apps that I’ve been updating to use the new plugin version of Inneractive ads:

settings = {    iphone =    {         plist=         {             UIInterfaceOrientation = "UIInterfaceOrientationLandscapeLeft",             UISupportedInterfaceOrientations =             {                 "UIInterfaceOrientationLandscapeLeft",                 "UIInterfaceOrientationLandscapeRight"             },             CoronaUseIOS6LandscapeOnlyWorkaround = true,             UIApplicationExitsOnSuspend = false,             UIPrerenderedIcon=true,             UIStatusBarHidden=true,             CFBundleIconFile = "Icon.png",             CFBundleIconFiles = {                 "Icon.png" ,                 "Icon@2x.png" ,                 "Icon-72.png" ,                 "Icon-Small-50.png" ,                 "Icon-Small.png" ,                 "Icon-Small@2x.png"             },             UIAppFonts =             {                 "actionj.ttf",                 "SAF.ttf",             },         },         components = {},     },     orientation =     {         default = "landscapeRight",         supported =         {             "landscapeRight", "landscapeLeft"         },     },     android =     {         usesPermissions =         {             "android.permission.INTERNET",             "com.android.vending.BILLING",             "android.permission.ACCESS\_NETWORK\_STATE",             "android.permission.READ\_PHONE\_STATE",         },     },     plugins =     {         -- key is the name passed to Lua's 'require()'         ["CoronaProvider.ads.inneractive"] =         {             -- required             publisherId = "com.inner-active",         },     }, }

You can see that there are both an iphone and android blocks in the file.  iphone works for the iPhone, iPad and iPod devices. 

Ah excellent,

Thanks for the speedy reply Rob

Good day Rob,

 i have this build.settings, but after i finished my build settings the default launch icon of corona is being used, what is the proper code for launch icons for andriod ?

settings = {     orientation =      {         default = "portrait",         supported =          {             "portrait"         },     },     iphone =     {         plist =         {             CFBundleIconFile = "Icon.png",             CFBundleIconFiles = {                     "Icon.png" ,                      "Icon@2x.png" ,                      "Icon-72.png" ,              },         },     },          android =     {         usesPermissions =         {             "android.permission.INTERNET",             "com.android.vending.BILLING",             "android.permission.ACCESS\_NETWORK\_STATE",             "android.permission.READ\_PHONE\_STATE",         },     },     plugins =     {         -- key is the name passed to Lua's 'require()'         ["CoronaProvider.ads.inneractive"] =         {             -- required             publisherId = "com.inner-active",         },     }, }  

The icons are not affected by build.settings afaik.

Perhaps you do not have the correct Android icon files in your project?

(Numbers in brackets are the image size in pixels)

Icon-ldpi.png (36*36)

Icon-mdpi.png (48*48)

Icon-hdpi.png (72*72)

Icon-xhdpi.png (96*96)

Icon-xxhdpi.png (144*144)

Although I’m sure you’re already aware, the iOS ones are:

Icon.png (57*57)

Icon@2x.png (114*114)

Icon-72.png (72*72)

Icon-72@2x.png (144*144)

@sunichi01

in build.settings, you do not have to explicitly add icon images to a table for Android, unlike iOS.

just ad them where your main.lua is, and follow the naming and size convention as per AlanPlantPot’s post

Apple actually specifies a few more that are used in their spotlight searches:

Icon-small.png   29x29

Icon-small@2x.png   58x58

Icon-small-50.png   50x50

Icon-small-50@2x.png  100x100

They needed added to the CFBundleIconFiles = {} table with the others.   But for android, just drop them in the root folder and the names are case sensitive.  The first letter is a Capital I, the rest all lower case including the .png.

Yes.  In fact here is a build.settings from one of my person apps that I’ve been updating to use the new plugin version of Inneractive ads:

settings = {    iphone =    {         plist=         {             UIInterfaceOrientation = "UIInterfaceOrientationLandscapeLeft",             UISupportedInterfaceOrientations =             {                 "UIInterfaceOrientationLandscapeLeft",                 "UIInterfaceOrientationLandscapeRight"             },             CoronaUseIOS6LandscapeOnlyWorkaround = true,             UIApplicationExitsOnSuspend = false,             UIPrerenderedIcon=true,             UIStatusBarHidden=true,             CFBundleIconFile = "Icon.png",             CFBundleIconFiles = {                 "Icon.png" ,                 "Icon@2x.png" ,                 "Icon-72.png" ,                 "Icon-Small-50.png" ,                 "Icon-Small.png" ,                 "Icon-Small@2x.png"             },             UIAppFonts =             {                 "actionj.ttf",                 "SAF.ttf",             },         },         components = {},     },     orientation =     {         default = "landscapeRight",         supported =         {             "landscapeRight", "landscapeLeft"         },     },     android =     {         usesPermissions =         {             "android.permission.INTERNET",             "com.android.vending.BILLING",             "android.permission.ACCESS\_NETWORK\_STATE",             "android.permission.READ\_PHONE\_STATE",         },     },     plugins =     {         -- key is the name passed to Lua's 'require()'         ["CoronaProvider.ads.inneractive"] =         {             -- required             publisherId = "com.inner-active",         },     }, }

You can see that there are both an iphone and android blocks in the file.  iphone works for the iPhone, iPad and iPod devices. 

Ah excellent,

Thanks for the speedy reply Rob

Good day Rob,

 i have this build.settings, but after i finished my build settings the default launch icon of corona is being used, what is the proper code for launch icons for andriod ?

settings = {     orientation =      {         default = "portrait",         supported =          {             "portrait"         },     },     iphone =     {         plist =         {             CFBundleIconFile = "Icon.png",             CFBundleIconFiles = {                     "Icon.png" ,                      "Icon@2x.png" ,                      "Icon-72.png" ,              },         },     },          android =     {         usesPermissions =         {             "android.permission.INTERNET",             "com.android.vending.BILLING",             "android.permission.ACCESS\_NETWORK\_STATE",             "android.permission.READ\_PHONE\_STATE",         },     },     plugins =     {         -- key is the name passed to Lua's 'require()'         ["CoronaProvider.ads.inneractive"] =         {             -- required             publisherId = "com.inner-active",         },     }, }  

The icons are not affected by build.settings afaik.

Perhaps you do not have the correct Android icon files in your project?

(Numbers in brackets are the image size in pixels)

Icon-ldpi.png (36*36)

Icon-mdpi.png (48*48)

Icon-hdpi.png (72*72)

Icon-xhdpi.png (96*96)

Icon-xxhdpi.png (144*144)

Although I’m sure you’re already aware, the iOS ones are:

Icon.png (57*57)

Icon@2x.png (114*114)

Icon-72.png (72*72)

Icon-72@2x.png (144*144)

@sunichi01

in build.settings, you do not have to explicitly add icon images to a table for Android, unlike iOS.

just ad them where your main.lua is, and follow the naming and size convention as per AlanPlantPot’s post

Apple actually specifies a few more that are used in their spotlight searches:

Icon-small.png   29x29

Icon-small@2x.png   58x58

Icon-small-50.png   50x50

Icon-small-50@2x.png  100x100

They needed added to the CFBundleIconFiles = {} table with the others.   But for android, just drop them in the root folder and the names are case sensitive.  The first letter is a Capital I, the rest all lower case including the .png.