Hello
In one of the build version, how to divide corona in app purchase build in ios / android?
Way possible?
If so. create a separate version of the iOS and Android?
Hello
In one of the build version, how to divide corona in app purchase build in ios / android?
Way possible?
If so. create a separate version of the iOS and Android?
I use single code base to generate iOS, Android/GooglePlay, Kindle and Nook versions, and how I do it is by adding flags in the code that switches certain code blocks to accommodate for specific target device:
[lua]
– For iOS build:
_G.isApple = true
_G.isGoogle = false
_G.isKindle = false
_G.isNook = false
if _G.iApple = true then
– add a code block that does Apple specific things (such as In-App Purchase)
elseif _G.isGoogle = true then
– add a code block that does Google Play specific things (such as In-App Billing)
end
[/lua]
Naomi
I use single code base to generate iOS, Android/GooglePlay, Kindle and Nook versions, and how I do it is by adding flags in the code that switches certain code blocks to accommodate for specific target device:
[lua]
– For iOS build:
_G.isApple = true
_G.isGoogle = false
_G.isKindle = false
_G.isNook = false
if _G.iApple = true then
– add a code block that does Apple specific things (such as In-App Purchase)
elseif _G.isGoogle = true then
– add a code block that does Google Play specific things (such as In-App Billing)
end
[/lua]
Naomi