So I have a feeling that this is not rigth: For each platform i need to change set of plagins(Amazon, GPGS) - to turn off all that i dont need for next build.
But on other hand - it is obvious - Plugin for GP should be ignored for iOS build.
Its not super-bug, but that something that bothers me.
I’ve noticed that too. If I use iAds in my iOS version, I have to remove the plugin code from build.settings before building for Android, or the build will fail.
It would be nice if Corona simply ignored plugins listed in build.settings if the plugin doesn’t exist for the platform the build is targeting.
If you’re using an older build, you might still able to use iAds not as a plugin, but when it was built into the Corona core. But now, it’s only accessible as a plugin.
You can add the following in build.setting to control which platforms include the plugin. You still need to add conditional code in you main.lua so you only require the proper plugin for the current platform:
but if I attempt to build for a device I get an error message popup “There is an error in your build.settings.” and the console says "Syntax error:…/build.settings:5: ‘}’ expected near ‘=’ " but I don’t see the syntax error. Is supportedPlatforms supposed to work for all plugins?
I tried building without the supportedPlatforms on the Amazon plugin and there was no syntax error. I still had it enabled for the google gameNetwork and Vungle plugins so I guess it doesn’t work for Amazon plugin, which is still in beta test.
But I hope it will eventually work for the Amazon plugin as well since that is one of the ones I have to manually comment out of build settings if I’m not building specifically for Kindle.
(I know in the sample above I had the “true” in …android-kindle = true… surrounded by quotes, but that wasn’t the issue. That was just me trying various things to get it to work and I cut and paste that version here. Both ways produced the syntax error with the Amazon plugin)
I’ve noticed that too. If I use iAds in my iOS version, I have to remove the plugin code from build.settings before building for Android, or the build will fail.
It would be nice if Corona simply ignored plugins listed in build.settings if the plugin doesn’t exist for the platform the build is targeting.
If you’re using an older build, you might still able to use iAds not as a plugin, but when it was built into the Corona core. But now, it’s only accessible as a plugin.
You can add the following in build.setting to control which platforms include the plugin. You still need to add conditional code in you main.lua so you only require the proper plugin for the current platform: