Mac builds - window size, signing

Win32 build working perfectly. That is awesome.

Now trying Mac builds - and my app window size is wrong - sqare instead of what I set in build.settings

What do o to fix it?

Another thing - “supportedPlatforms”(build.settings/plugins) is not recognized by Mac builds. Can you fix it? For now I have to manualy comment them out.

Regarding plugins, the best way to exclude them from other platforms is to flag which platforms they are supported on.  For example…

settings = { plugins = { ["CoronaProvider.ads.admob"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone = true, android = true }, }, }, }

So, any platforms not in the “supportedPlatforms” table will be automatically excluded.  This is the most future proof way to handle it.  Plus, you flag the platforms the plugin documentation states to support.

And regarding your default window size, are you setting them in the “build.settings” file as follows?

settings { window = { defaultViewWidth = 640, defaultViewHeight = 960, }, }

The above settings will work the same for both Windows and OS X.  Also note that if your “build.settings” file provides any orientation settings, like landscape only, then this width and height will be relative to portrait like how it works in the “config.lua” file.  This way your app will be portable on mobile devices, where they’re always relative to portrait.

Yes, that is how i have it:

plugins = { ["CoronaProvider.analytics.flurry"] = {publisherId = "com.coronalabs"}, ["CoronaProvider.gameNetwork.google"] = {publisherId = "com.coronalabs", supportedPlatforms = { android = true }}, ["plugin.amazon.iap"] = {publisherId = "com.amazon", supportedPlatforms = { ["android-kindle"] = true }}, --["CoronaProvider.ads.iads"] = { publisherId = "com.coronalabs" , supportedPlatforms = { iphone = true }}, ["CoronaProvider.gameNetwork.apple"] = {publisherId = "com.coronalabs",supportedPlatforms = { iphone=true, ["iphone-sim"]=true }}, ["plugin.ouya"] = {publisherId = "tv.ouya"}, ["plugin.ouya.xiaomi"] = {publisherId = "tv.ouya"}, --["plugin.photon"] = {publisherId = "com.exitgames"}, }, -- This table configures the desktop app window for Win32 and OS X. window = { -- Sets up how the window should be launched on startup. (Default is "normal".) -- Supports: "normal", "minimized", "maximized", "fullscreen" defaultMode = "normal", -- Sets the default launch width and height of the view/client area of the window. -- This is the region within the borders of the window that Corona renders to. -- Ideally, this should match your "config.lua" content width and height, or larger. defaultViewWidth = 720, defaultViewHeight = 1280,

both are not working for my mac builds.

None of these plugins are available on OS-X. You need to put the supportedPlatforms on all plugins.

Rob

yes, i did. and it still was req when i trying to do mac build.

but it is a minor thing - i just commented them out.

Major problem is a app resolution - defaultViewWidth and defaultViewHeight - does that works for everywhere? does settings file is nessesary to work right?

The defaultViewWidth and defaultViewHeight build settings definitely work for both OS X and Windows.  Have a look at new sample project “Interface/DesktopWindow” that is included with the Corona Simulator.  Notice that it’s “build.settings” includes these new width/height settings, amongst other new desktop features as well.  This is to double check that the settings in your “build.settings” file are correct.

I’m also having this issue with supported platforms. I specifically state that I want them to only be on iOS/Android but it still gives me errors when I try to build for OS X (it tries to compile the plugins for the OS X build). Using the latest daily build 2692.

Can you just comment them out for the time being?

Yes, I already did that.

But app resolution(defaultViewWidth and defaultViewHeight) is still not working.

Any progress with that? Orthey already fixed? or I`m alone with this one? =)

Can you post your build.settings?

Sure, where we go: https://www.dropbox.com/s/xzcdggcfe778gnh/build.settings?dl=0

settings = { orientation = { default = "landscapeLeft", supported = {"landscapeLeft"} --OUYA --default = "landscapeRight",supported = {"landscapeLeft", "landscapeRight"} --All }, iphone = { plist = { CFBundleDisplayName = "Royal Heroes", CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon-60.png", "Icon-72.png", "Icon-76.png", "Icon-120.png", "Icon@2x.png", "Icon-72@2x.png", "Icon-76@2x.png", "Icon@3x.png", "Icon-Small@3x.png" }, UIStatusBarHidden=true, UIPrerenderedIcon=true, UIAppFonts = { "ShowcardGothic.ttf", "cartonsix.ttf" } }, }, android = { googlePlayGamesAppId="572279524189", usesPermissions = { "android.permission.INTERNET", "com.android.vending.BILLING", "com.xiaomi.sdk.permission.PAYMENT", "android.permission.GET\_TASKS", "android.permission.READ\_PHONE\_STATE", }, mainIntentFilter = { categories = { "tv.ouya.intent.category.GAME" }, } }, plugins = { --["CoronaProvider.analytics.flurry"] = {publisherId = "com.coronalabs"}, --["CoronaProvider.gameNetwork.google"] = {publisherId = "com.coronalabs", supportedPlatforms = { android = true }}, --["plugin.amazon.iap"] = {publisherId = "com.amazon", supportedPlatforms = { ["android-kindle"] = true }}, --["CoronaProvider.ads.iads"] = { publisherId = "com.coronalabs" , supportedPlatforms = { iphone = true }}, --["CoronaProvider.gameNetwork.apple"] = {publisherId = "com.coronalabs",supportedPlatforms = { iphone=true, ["iphone-sim"]=true }}, --["plugin.ouya"] = {publisherId = "tv.ouya"}, --["plugin.ouya.xiaomi"] = {publisherId = "tv.ouya"}, --["plugin.photon"] = {publisherId = "com.exitgames"}, }, -- This table configures the desktop app window for Win32 and OS X. window = { -- Sets up how the window should be launched on startup. (Default is "normal".) -- Supports: "normal", "minimized", "maximized", "fullscreen" defaultMode = "normal", -- Sets the default launch width and height of the view/client area of the window. -- This is the region within the borders of the window that Corona renders to. -- Ideally, this should match your "config.lua" content width and height, or larger. defaultViewWidth = 720, defaultViewHeight = 1280, -- Set to true to allow the end-user to resize the window. -- If true, then you may need to handle Corona's "resize" event to relayout your content. -- The window is not resizable by default. You must opt-in by setting this to true. resizable = true, -- These settings only apply if "resizable" is set to true up above. -- Prevents the user from resizing the window to a size smaller than these values. -- This width and height is the region within the borders of the window. -- The width and height should be set to your "config.lua" file's content width and height. -- If settings not specified, then the window can be sized down to whatever the OS allows. minViewWidth = 320, minViewHeight = 480, -- Enables/disables the window's close button. Enabled by default. -- If disabled, then you must close the window yourself in Lua via native.requestExit(). -- Note: Corona does not currently provide an event when the close button is clicked on. enableCloseButton = true, -- Enables/disables the window's minimize button. Enabled by default. enableMinimizeButton = true, -- Enables/disables the window's maximize button. Disabled by default. -- Note that the window will be resized when maximized and restored. -- If enabled, you may need to handle Corona's "resize" event to relayout your content. enableMaximizeButton = true, -- Sets the window's title bar text to a localized string. (No title bar text by default.) -- Supports 2 letter ISO 639-1 language codes. (Not case sensitive.) -- Supports optional 2 letter ISO 3166-1 country codes. (Not case sensitive.) -- Language and country codes must be separated by a '-' dash. titleText = { -- The "default" text will be used if the system is using a language and/or -- country code not defined below. This serves as a fallback mechanism. default = "Royal Heroes", }, }, }

Regarding plugins, the best way to exclude them from other platforms is to flag which platforms they are supported on.  For example…

settings = { plugins = { ["CoronaProvider.ads.admob"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone = true, android = true }, }, }, }

So, any platforms not in the “supportedPlatforms” table will be automatically excluded.  This is the most future proof way to handle it.  Plus, you flag the platforms the plugin documentation states to support.

And regarding your default window size, are you setting them in the “build.settings” file as follows?

settings { window = { defaultViewWidth = 640, defaultViewHeight = 960, }, }

The above settings will work the same for both Windows and OS X.  Also note that if your “build.settings” file provides any orientation settings, like landscape only, then this width and height will be relative to portrait like how it works in the “config.lua” file.  This way your app will be portable on mobile devices, where they’re always relative to portrait.

Yes, that is how i have it:

plugins = { ["CoronaProvider.analytics.flurry"] = {publisherId = "com.coronalabs"}, ["CoronaProvider.gameNetwork.google"] = {publisherId = "com.coronalabs", supportedPlatforms = { android = true }}, ["plugin.amazon.iap"] = {publisherId = "com.amazon", supportedPlatforms = { ["android-kindle"] = true }}, --["CoronaProvider.ads.iads"] = { publisherId = "com.coronalabs" , supportedPlatforms = { iphone = true }}, ["CoronaProvider.gameNetwork.apple"] = {publisherId = "com.coronalabs",supportedPlatforms = { iphone=true, ["iphone-sim"]=true }}, ["plugin.ouya"] = {publisherId = "tv.ouya"}, ["plugin.ouya.xiaomi"] = {publisherId = "tv.ouya"}, --["plugin.photon"] = {publisherId = "com.exitgames"}, }, -- This table configures the desktop app window for Win32 and OS X. window = { -- Sets up how the window should be launched on startup. (Default is "normal".) -- Supports: "normal", "minimized", "maximized", "fullscreen" defaultMode = "normal", -- Sets the default launch width and height of the view/client area of the window. -- This is the region within the borders of the window that Corona renders to. -- Ideally, this should match your "config.lua" content width and height, or larger. defaultViewWidth = 720, defaultViewHeight = 1280,

both are not working for my mac builds.

None of these plugins are available on OS-X. You need to put the supportedPlatforms on all plugins.

Rob

yes, i did. and it still was req when i trying to do mac build.

but it is a minor thing - i just commented them out.

Major problem is a app resolution - defaultViewWidth and defaultViewHeight - does that works for everywhere? does settings file is nessesary to work right?

The defaultViewWidth and defaultViewHeight build settings definitely work for both OS X and Windows.  Have a look at new sample project “Interface/DesktopWindow” that is included with the Corona Simulator.  Notice that it’s “build.settings” includes these new width/height settings, amongst other new desktop features as well.  This is to double check that the settings in your “build.settings” file are correct.

I’m also having this issue with supported platforms. I specifically state that I want them to only be on iOS/Android but it still gives me errors when I try to build for OS X (it tries to compile the plugins for the OS X build). Using the latest daily build 2692.

Can you just comment them out for the time being?

Yes, I already did that.

But app resolution(defaultViewWidth and defaultViewHeight) is still not working.

Any progress with that? Orthey already fixed? or I`m alone with this one? =)

Can you post your build.settings?