1 Reply Latest reply on Apr 20, 2017 10:20 AM by ryanskihead

    apk is to light that it should be

    wedgemaster

      Hello,

       

      I'm trying to build my first app.

      On my first try, the apk generted was like 22mo.

      Now when i rebuild it's just 850ko.

       

      And maybe that why it crash when I try to launch it on my android phone.

       

      There is no error after build. So I don't understand the problem

       

      Here is my config.xml if someone see an explanation :

       

      regards

       

      <?xml version='1.0' encoding='utf-8'?>
      <widget id="com.xxxx.xxxx" version="1.0.0" xmlns="http://www.w3.org/ns/widgets"  xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:gap="http://phonegap.com/ns/1.0">
           
          <preference name="loglevel" value="DEBUG" />
          <feature name="Whitelist">
              <param name="android-package" value="org.apache.cordova.whitelist.WhitelistPlugin" />
              <param name="onload" value="true" />
          </feature>
          <feature name="InAppBrowser">
              <param name="android-package" value="org.apache.cordova.inappbrowser.InAppBrowser" />
          </feature>
          <feature name="LocalNotification">
              <param name="android-package" value="de.appplant.cordova.plugin.localnotification.LocalNotification" />
          </feature>
          <feature name="Vibration">
              <param name="android-package" value="org.apache.cordova.vibration.Vibration" />
          </feature>
          <preference name="webView" value="org.crosswalk.engine.XWalkWebViewEngine" />
          <preference default="17+" name="xwalkVersion" />
          <preference default="--disable-pull-to-refresh-effect" name="xwalkCommandLine" />
          <preference default="embedded" name="xwalkMode" />
          <preference default="true" name="xwalkMultipleApk" />
          <feature name="Device">
              <param name="android-package" value="org.apache.cordova.device.Device" />
          </feature>
          <feature name="SplashScreen">
              <param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen" />
              <param name="onload" value="true" />
          </feature>
          <allow-intent href="market:*" />
          <preference name="SplashScreen" value="icon_splash" />
          <preference name="ShowSplashScreenSpinner" value="false" />
          <preference name="SplashScreenDelay" value="60000" />
          <preference name="AutoHideSplashScreen" value="false" />
          <preference name="auto-hide-splash-screen" value="false" />
          <preference name="SplashMaintainAspectRatio" value="true" />
          <preference name="FadeSplashScreen" value="false" />
          <name>xxxx</name>
          <description> Mobile Application</description>
          <author email="info@xxx.com" href="http://www.xxxx.com/"> xxxx</author>
          <content src="index.html" />
          <access browserOnly="true" origin="*" />
          <allow-navigation href="https://*/*" />
          <allow-navigation href="http://*/*" />
          <access origin="content:///*" />
          <allow-intent href="http://*/*" />
          <allow-intent href="https://*/*" />
          <allow-intent href="tel:*" />
          <allow-intent href="sms:*" />
          <allow-intent href="mailto:*" />
          <allow-intent href="geo:*" />
          <allow-intent href="file:*" />
          <preference name="stay-in-webview" value="true" />
          <gap:plugin name="de.appplant.cordova.plugin.local-notification" source="npm" />
          <gap:plugin name="cordova-plugin-inappbrowser" source="npm" />
          <preference name="xwalkVersion" value="17+" />
          <preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect" />
          <preference name="xwalkMode" value="embedded" />
          <preference name="xwalkMultipleApk" value="true" />
          <preference name="AppendUserAgent" value="AppWebview" />
          <preference name="BackgroundColor" value="0xFF1E2028" />
          <preference name="backgroundColor" value="0xFF1E2028" />
      </widget>