Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

How can I do hardware specific builds?
Started by troylyndon Feb 01 2015 07:40 PM

No replies to this topic
This topic has been archived. This means that you cannot reply to this topic.
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Contributor

  • 627 posts
  • Corona SDK

I want to use the exact same code base for both my iOS and Android builds.


Is there a way to enter a plug-in for use only during an iOS build? In my case, I am trying to use the  openUdid for the iOS version. But when this code is seen during an Android build, I receive an error. Will I have to comment this out every time I want to build for Android, or is there a way to do a conditional-build based upon the build type?


In other words, how can I insert a plug-in for one platform without having to comment it out when building for another platform?


                plugins = {
                        ["plugin.openudid"] = {

                                                              publisherId = "com.coronalabs"



Thanks to anyone for a good, solid answer.