Android zip plugin integration

Hi,

I have a problem integrating native CoronaSDK zip plugin. What I need to do in order to use it on Android? I’m attaching the libplugin.zip.so file correctly to the APK but I don’t know what to do to have its API available in the Corona code. [compress(), uncompress(), list()]

Any help would be highly appreciated!

Fragment of the LOG file:

V/Corona (29085): \> Class.forName: plugin.zip.LuaLoader V/Corona (29085): WARNING: Could not load 'plugin.zip.LuaLoader' W/System.err(29085): java.lang.ClassNotFoundException: plugin.zip.LuaLoader W/System.err(29085): at java.lang.Class.classForName(Native Method) W/System.err(29085): at java.lang.Class.forName(Class.java:251) W/System.err(29085): at java.lang.Class.forName(Class.java:216) W/System.err(29085): at com.ansca.corona.NativeToJavaBridge.callLoadClass(NativeToJavaBridge.java:311) W/System.err(29085): at com.ansca.corona.JavaToNativeShim.nativeResize(Native Method) W/System.err(29085): at com.ansca.corona.JavaToNativeShim.resize(JavaToNativeShim.java:372) W/System.err(29085): at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onSurfaceChanged(CoronaGLSurfaceView.java:374) W/System.err(29085): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1611) W/System.err(29085): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377) W/System.err(29085): Caused by: java.lang.NoClassDefFoundError: plugin/zip/LuaLoader W/System.err(29085): ... 9 more W/System.err(29085): Caused by: java.lang.ClassNotFoundException: Didn't find class "plugin.zip.LuaLoader" on path: DexPathList[[zip file "/data/app/com.mycompany.app-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.mycompany.app-1, /vendor/lib, /system/lib]] W/System.err(29085): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:67) W/System.err(29085): at java.lang.ClassLoader.loadClass(ClassLoader.java:497) W/System.err(29085): at java.lang.ClassLoader.loadClass(ClassLoader.java:457) W/System.err(29085): ... 9 more I/Corona (29085): Runtime error I/Corona (29085): /Users/jenkins/slaveroot/workspace/Enterprise/OS/xcode-6.1.1/release/release/platform/resources/init.lua:831: module 'plugin.zip' not found:resource (plugin.zip.lu) does not exist in archive I/Corona (29085): no field package.preload['plugin.zip'] I/Corona (29085): no file '(null)/plugin/zip.lua' I/Corona (29085): no file '(null)/plugin/zip.lua' I/Corona (29085): no file '/data/app-lib/com.mycompany.app-1/libplugin/zip.so' I/Corona (29085): no file './plugin/zip.so' I/Corona (29085): no file '(null)/plugin/zip.so' I/Corona (29085): no file '/data/app-lib/com.mycompany.app-1/libplugin.so' I/Corona (29085): no file './plugin.so' I/Corona (29085): no file '(null)/plugin.so' I/Corona (29085): stack traceback: I/Corona (29085): [C]: in function 'require' I/Corona (29085): /Users/jenkins/slaveroot/workspace/Enterprise/OS/xcode-6.1.1/release/release/platform/resources/init.lua:831: in function 'require' I/Corona (29085): ?: in main chunk I/Corona (29085): [C]: in function 'require' I/Corona (29085): /Users/jenkins/slaveroot/workspace/Enterprise/OS/xcode-6.1.1/release/release/platform/resources/init.lua:831: in function 'require' I/Corona (29085): ?: in main chunk I/LuaLoader(29085): LuaLoader::onStarted - saved runtime

After many hours and numerous build configurations I have solved the issue!

It turned out to be CoronaEnterprise plugins bug which was fixed in the daily builds.

Good deal!   Do you recall what builds it was:

  • broken in
  • fixed in

?

Broken in: 2015.2613

Fixed in: 2015.2644

After many hours and numerous build configurations I have solved the issue!

It turned out to be CoronaEnterprise plugins bug which was fixed in the daily builds.

Good deal!   Do you recall what builds it was:

  • broken in
  • fixed in

?

Broken in: 2015.2613

Fixed in: 2015.2644