google play licensing plugin?

Hi, is it possible to get the Google Play licensing plugin for Enterprise? Thanks!

Ben

Google Play licensing is built into the core.  You need to make sure to get all the right permissions in your AndroidManifest.xml file. The other settings are just API calls in Corona’s core and some settings added to config.lua.

Rob

Hmm, that’s odd, I’m getting the following errors upon running on Android (I don’t get these for other built-in libraries like “json”):

V/Corona ( 1813): \> Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona ( 1813): WARNING: Could not load 'CoronaProvider.licensing.google.LuaLoader' W/System.err( 1813): java.lang.ClassNotFoundException: CoronaProvider.licensing.google.LuaLoader W/System.err( 1813): at java.lang.Class.classForName(Native Method) W/System.err( 1813): at java.lang.Class.forName(Class.java:217) W/System.err( 1813): at java.lang.Class.forName(Class.java:172) W/System.err( 1813): at com.ansca.corona.NativeToJavaBridge.callLoadClass(NativeToJavaBridge.java:311) W/System.err( 1813): at com.ansca.corona.JavaToNativeShim.nativeResize(Native Method) W/System.err( 1813): at com.ansca.corona.JavaToNativeShim.resize(JavaToNativeShim.java:372) W/System.err( 1813): at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onSurfaceChanged(CoronaGLSurfaceView.java:374) W/System.err( 1813): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1612) W/System.err( 1813): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1378) W/System.err( 1813): Caused by: java.lang.NoClassDefFoundError: CoronaProvider/licensing/google/LuaLoader W/System.err( 1813): ... 9 more

Does anyone have an idea of why it’s not loading? Are other people able to use google play licensing on Enterprise?

Hi apps638,

For Enterprise builds, the Google Licensing plugin isn’t included by default. The source code for it is included in your Corona Enterprise package, so you can add a library reference to it in your Enterprise project.

To do this, in your Enterprise project, open the project.properties file and add the following to the bottom of it (replacing “[X]” with the appropriate library reference number).

android.library.reference.[X]=${CoronaEnterpriseDir}/Plugins/licensing-google/android

Hope that helps.

This should be resolved in the next daily build for Corona Enterprise (2871 or later).

Rob

Google Play licensing is built into the core.  You need to make sure to get all the right permissions in your AndroidManifest.xml file. The other settings are just API calls in Corona’s core and some settings added to config.lua.

Rob

Hmm, that’s odd, I’m getting the following errors upon running on Android (I don’t get these for other built-in libraries like “json”):

V/Corona ( 1813): \> Class.forName: CoronaProvider.licensing.google.LuaLoader V/Corona ( 1813): WARNING: Could not load 'CoronaProvider.licensing.google.LuaLoader' W/System.err( 1813): java.lang.ClassNotFoundException: CoronaProvider.licensing.google.LuaLoader W/System.err( 1813): at java.lang.Class.classForName(Native Method) W/System.err( 1813): at java.lang.Class.forName(Class.java:217) W/System.err( 1813): at java.lang.Class.forName(Class.java:172) W/System.err( 1813): at com.ansca.corona.NativeToJavaBridge.callLoadClass(NativeToJavaBridge.java:311) W/System.err( 1813): at com.ansca.corona.JavaToNativeShim.nativeResize(Native Method) W/System.err( 1813): at com.ansca.corona.JavaToNativeShim.resize(JavaToNativeShim.java:372) W/System.err( 1813): at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onSurfaceChanged(CoronaGLSurfaceView.java:374) W/System.err( 1813): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1612) W/System.err( 1813): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1378) W/System.err( 1813): Caused by: java.lang.NoClassDefFoundError: CoronaProvider/licensing/google/LuaLoader W/System.err( 1813): ... 9 more

Does anyone have an idea of why it’s not loading? Are other people able to use google play licensing on Enterprise?

Hi apps638,

For Enterprise builds, the Google Licensing plugin isn’t included by default. The source code for it is included in your Corona Enterprise package, so you can add a library reference to it in your Enterprise project.

To do this, in your Enterprise project, open the project.properties file and add the following to the bottom of it (replacing “[X]” with the appropriate library reference number).

android.library.reference.[X]=${CoronaEnterpriseDir}/Plugins/licensing-google/android

Hope that helps.

This should be resolved in the next daily build for Corona Enterprise (2871 or later).

Rob