and i have a problem when i build for iOS
I have this in my main.lua
[lua]local licensing = require( “licensing” )
licensing.init( “google” )
local function licensingListener( event )
local verified = event.isVerified
if event.isVerified then
–THE APP HAS BEEN VERIFIED BY GOOGLE.
–DO STUFF, LIKE GO TO ANOTHER SCENE.
print (“hi”)
else
native.showAlert( “Licensing Failed!”, “There was a problem verifying the application, please try again.”, { “OK” } )
end
end
licensing.verify( licensingListener )[/lua]
and this in config.lua
[lua]if ( string.sub( system.getInfo(“model”), 1, 4 ) == “iPad” ) then
application =
{
content =
{
width = 360,
height = 480,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
license =
{
google =
{
key = “the very long key”,
policy = “serverManaged”,
},
},
}
elseif ( string.sub( system.getInfo(“model”), 1, 2 ) == “iP” and display.pixelHeight > 960 ) then
application =
{
content =
{
width = 320,
height = 568,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
license =
{
google =
{
key = “the very long key”,
policy = “serverManaged”,
},
},
}
elseif ( string.sub( system.getInfo(“model”), 1, 2 ) == “iP” ) then
application =
{
content =
{
width = 320,
height = 480,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
license =
{
google =
{
key = “the very long key”,
policy = “serverManaged”,
},
},
}
elseif ( display.pixelHeight / display.pixelWidth > 1.72 ) then
application =
{
content =
{
width = 320,
height = 570,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
license =
{
google =
{
key = “the very long key”,
policy = “serverManaged”,
},
},
}
else
application =
{
content =
{
width = 320,
height = 512,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
license =
{
google =
{
key = “the very long key”,
policy = “serverManaged”,
},
},
}
end[/lua]
and this in build.setting
[lua] android =
{
usesPermissions =
{
“android.permission.INTERNET”,
“com.android.vending.CHECK_LICENSE”,
“com.android.vending.BILLING”,
},
},[/lua]
and when i build for iOS, i has runtime error when i install it to my iPhone through Xcode device
and nothing happen in simulator
Error: could not load provider (google) due to the following reason:module ;CoronaProvider.licensing.google’ not found:resource
and a lot of words… What actually happened??
do i need to separate the file for iOS build and android build??