Hi,
Is there a way to separate Gideros' test environment (Gideros Player) from native builds at runtime?
As I understand it there is no way to test functionality such as the Gamekit with a quick Gideros Player export, so it would be helpful to be able to test the logic easily.
I could set a "testing = true" flag, but I'm likely to forget to set it to false when I come to export the game to the app store...
Cheers,
Niclas
Comments
Check this: http://members.giderosmobile.com/knowledgebase.php?action=displayarticle&id=77
device=application:getDeviceInfo()
if device=="Windows" or device=="Mac OS" then
pc=true
elseif device=="Android" then
android=true
elseif device=="iOS" then
ios=true
end
Then I just do 'if pc then ....'
https://deluxepixel.com
if( iOS_GiderosPlayer ) then
elseif( iOS_XCode ) then
end
I suppose the phone is unaware of who or what is showing the darn game, so may not be possible!
Niclas
if android then
....
elseif ios then
....
else
.... <-- assumed to be pc
end
https://deluxepixel.com
if pcall(require, 'gamekit')
then
realDevice=true
end
Untested but should set realDevice to true if loading gamekit doesn't fail.
Likes: totebo
https://deluxepixel.com
Likes: SinisterSoft