Zip Plugin Availability

I just tried using the plugin zip in my Android app and while it worked fine in the simulator the build pops an error on my device.

Runtime Error

/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/composer/composer.lua1451: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:835: module ‘plugin.zip’ not found:resource (plugin.zip.lu) does not exist in archive

no field package.preload[‘plugin.zip’]

no file ‘(null)/plugin/zip.lua’

no file ‘(null)/plugin/zip.lua’

no file 'data/app-lib/…

I made sure to include:

[lua] plugins =
{
[“plugin.zip”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, android=true, osx=true, win32=true }
}
}[/lua]

in my build.settings and:

[lua]local zip = require( “plugin.zip” )[/lua]

in my scene.

I did some Googling and found this on StackOverflow. Is this true that only Enterprise users can use this plugin? If so why doesn’t it state this in the docs?

Overview:

 

The Zip plugin enables basic zip archive support. ** Only available for Enterprise users. **

That might save folks some time.

Thanks!

I would suggest taking out the “supportedPlatforms” line, reload your sim, and then try to build and test on device. See below:

Thanks! That did the trick and answered my question about the zip plugin availability.

I would suggest taking out the “supportedPlatforms” line, reload your sim, and then try to build and test on device. See below:

Thanks! That did the trick and answered my question about the zip plugin availability.