system.getInfo - platformBuild

Hello,
Does it possible to add pamar like ‘platformBuild’, with will return “ios”/“android”/“amazon”/“nook”? (one that i set in CoronaSDK->Build For->)

I need it to know inside game for showing right links: If User playing on iOS - then i whould like to show him my games on iTunes, for Android - GooglePlay, for Amazon - AmazonApps.

And for adding special tweaks - like handling status bar Kindle.

For now i have to change it every-time before building new version =( [import]uid: 90911 topic_id: 30651 reply_id: 330651[/import]

I use something like this:

\_G.isAndroid = false  
\_G.isNook = false  
\_G.isKindleFire = false  
if system.getInfo("platformName") == "Android" then  
 \_G.isAndroid = true  
 local model = system.getInfo("model")  
 if model == "Kindle Fire" then  
 \_G.isKindleFire = true  
 end  
 if string.find(model, "Nook") or string.find(model,"BNRV") then  
 \_G.isNook = true  
 end  
end  

Then when I need to do something like change fonts, handle initial splash videos (since Android can’t deal with it well) etc. I just check to see if the flag is true or not and put in conditional code for that device.
[import]uid: 19626 topic_id: 30651 reply_id: 122844[/import]

Looks nice! ty [import]uid: 90911 topic_id: 30651 reply_id: 122847[/import]

I use something like this:

\_G.isAndroid = false  
\_G.isNook = false  
\_G.isKindleFire = false  
if system.getInfo("platformName") == "Android" then  
 \_G.isAndroid = true  
 local model = system.getInfo("model")  
 if model == "Kindle Fire" then  
 \_G.isKindleFire = true  
 end  
 if string.find(model, "Nook") or string.find(model,"BNRV") then  
 \_G.isNook = true  
 end  
end  

Then when I need to do something like change fonts, handle initial splash videos (since Android can’t deal with it well) etc. I just check to see if the flag is true or not and put in conditional code for that device.
[import]uid: 19626 topic_id: 30651 reply_id: 122844[/import]

Looks nice! ty [import]uid: 90911 topic_id: 30651 reply_id: 122847[/import]

Thanks for sharing Rob.

If you don’t mind, I shared your code in the Kindle tutorial: http://developer.coronalabs.com/forum/2012/04/15/kindle-fire-walkthru-deploying-test-device-and-getting-ready-store-deployment#comment-145037
Best,

Renato
Red Beach Games
Try our new game Cut My Puzzle for free here!
[import]uid: 181011 topic_id: 30651 reply_id: 145038[/import]

Thanks for sharing Rob.

If you don’t mind, I shared your code in the Kindle tutorial: http://developer.coronalabs.com/forum/2012/04/15/kindle-fire-walkthru-deploying-test-device-and-getting-ready-store-deployment#comment-145037
Best,

Renato
Red Beach Games
Try our new game Cut My Puzzle for free here!
[import]uid: 181011 topic_id: 30651 reply_id: 145038[/import]

Thanks for sharing Rob.

If you don’t mind, I shared your code in the Kindle tutorial: http://developer.coronalabs.com/forum/2012/04/15/kindle-fire-walkthru-deploying-test-device-and-getting-ready-store-deployment#comment-145037
Best,

Renato
Red Beach Games
Try our new game Cut My Puzzle for free here!
[import]uid: 181011 topic_id: 30651 reply_id: 145038[/import]

Thanks for sharing Rob.

If you don’t mind, I shared your code in the Kindle tutorial: http://developer.coronalabs.com/forum/2012/04/15/kindle-fire-walkthru-deploying-test-device-and-getting-ready-store-deployment#comment-145037
Best,

Renato
Red Beach Games
Try our new game Cut My Puzzle for free here!
[import]uid: 181011 topic_id: 30651 reply_id: 145038[/import]