Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Exclude plugins based on build type?
Started by Develephant Apr 15 2018 04:37 PM

- - - - -
5 replies to this topic
plugins excluse build settings html5

Best Answer Alan PlantPot , 16 April 2018 - 12:25 AM

You should be able to just specify the platforms that you do want to support:

["plugin.somePlugin"] = { publisherId = "corona.labs", supportedPlatforms ={ iphone=true, android=true,} },

Edit: in the past I've had problems if I set platformIDontWant=false (e.g. iphone=false). Instead I just omit that platform entirely, and only list the ones that I do want to include.

[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Develephant

[GLOBAL: userInfoPane.html]
Develephant
  • Corona Geek

  • 1,440 posts
  • Corona SDK

Hi,

 

I was curious if there is a way to exclude plugins based on the build, in this case HTML5 builds.

 

-dev



[TOPIC: post.html]
#2

Alan PlantPot

[GLOBAL: userInfoPane.html]
Alan PlantPot
  • Contributor

  • 874 posts
  • Corona SDK

  Best Answer

You should be able to just specify the platforms that you do want to support:

["plugin.somePlugin"] = { publisherId = "corona.labs", supportedPlatforms ={ iphone=true, android=true,} },

Edit: in the past I've had problems if I set platformIDontWant=false (e.g. iphone=false). Instead I just omit that platform entirely, and only list the ones that I do want to include.



[TOPIC: post.html]
#3

Develephant

[GLOBAL: userInfoPane.html]
Develephant
  • Corona Geek

  • 1,440 posts
  • Corona SDK

Hi,

 

Very cool. Thank you for sharing this info.

 

-dev



[TOPIC: post.html]
#4

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Contributor

  • 816 posts
  • Corona SDK

@alan that is what I do also. But is there a tag for hml5 builds? Also does the platform call inside of lua return html5 as the platform so that you don't initiate the library that is not available?

 

Adrian



[TOPIC: post.html]
#5

Alan PlantPot

[GLOBAL: userInfoPane.html]
Alan PlantPot
  • Contributor

  • 874 posts
  • Corona SDK

Yes, the platform call returns "html5":

isHTML5 = system.getInfo("platform") == "html5"

I don't know if you can include any plugins on html5 yet, but the settings in my earlier post will let you exclude html5 by only specifying iphone/android.



[TOPIC: post.html]
#6

Develephant

[GLOBAL: userInfoPane.html]
Develephant
  • Corona Geek

  • 1,440 posts
  • Corona SDK

Yes, the platform call returns "html5":

isHTML5 = system.getInfo("platform") == "html5"

I don't know if you can include any plugins on html5 yet, but the settings in my earlier post will let you exclude html5 by only specifying iphone/android.

 

Exactly what I need it for. Thanks.

 

-dev




[topic_controls]
[/topic_controls]