ibm mobilefirst - dojo/_base/*js missing from worklight apk in wl 6.1 -
i have hybrid app created wl 6.1 uses included dojolib. in production iphone , adding android flavor of it. when running code mobile simulator on console, both android , iphone work fine. ipa file works fine. when run hybrid on android device (samsung s4), application throws errors in log on app startup. have "provide dojo libraries" turned off. in ddms log see statements following:
09-09 12:47:12.092: e/androidprotocolhandler(20324): unable open asset url: file:///android_asset/www/default/dojo/_base/declare.js 09-09 12:47:12.263: e/androidprotocolhandler(20324): unable open asset url: file:///android_asset/www/default/dojo/_base/connect.js 09-09 12:47:12.303: e/androidprotocolhandler(20324): unable open asset url: file:///android_asset/www/default/dojo/_base/event.js
looking out in android project in eclipse, see files in "assets/www/default/dojo/_base" directory. issue when in apk file, "_base" directory not there. understanding why missing?
your application should using compiled version of dojo files, seem not. check
- these files : core-web-layer.js , mobile-ui-layer in www folder
that wlcommoninit function includes below:
function wlcommoninit() { require([ "layers/core-web-layer", "layers/mobile-ui-layer" ], dojoinit); }
Comments
Post a Comment