I am working on a Meteor cordova app.
Today I tried to add polymer to my app using:
meteor add boxxa:polymer
meteor add boxxa:polymer-paper
For build the APK file I use the following script:
#!/bin/sh
rm -rf .meteor/local/cordova-build/
meteor reset
BUILD_NAME=../build_tester
rm -rf $BUILD_NAME
VULCANIZE=true
meteor build $BUILD_NAME --server 192.168.178.53:3000
cd $BUILD_NAME/android
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 unaligned.apk MwsTester
~/.meteor/android_bundle/android-sdk/build-tools/20.0.0/zipalign 4 unaligned.apk MwsTester.apk
This worked fine before I added poylmer. Now I get after a long time building the project:
.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:245
throw(ex);
^
Error: The APK file for the Android build was not found.
at findApkPath (/Users/doedel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/commands.js:970:11)
at /Users/doedel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/commands.js:950:21
at Array.forEach (native)
at Function._.each._.forEach (/Users/doedel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
at buildCommand (/Users/doedel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/commands.js:933:29)
at Command.main.registerCommand._.extend.name [as func] (/Users/doedel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/commands.js:746:12)
at /Users/doedel/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/main.js:1363:23
Enter Passphrase for keystore: Unable to open 'unaligned.apk' as zip archive
The server tar.gz file was created. Around 30 MB.
I also use
https://atmospherejs.com/differential/vulcanize
I think the app becomes to BIG with polymer.