Skip to content

After ionic cli v4 update, apk and ipa gained more than 1mb! #3430

Description

@peterpeterparker

Description:
I built a new version of my app and before submitting it to the store I had a look to the ipa and apk size and both gained more than 1mb size!

On my side I didn't changed or fetched any libs and just changed one or two lines of code. The only library update I did was upgrading the CLI to v4

My current app in store:

Android -> 5.9 Mb
iOS ipa -> 9.7 Mb

Build with the CLI v4:

Android -> 7.2 Mb
iOS ipa -> 10.9 Mb

My ionic info:

Ionic:

ionic (Ionic CLI) : 4.0.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.11

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.1.1, ios 4.5.4, pwa

System:

Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
ios-sim : 5.0.13
NodeJS : v10.4.0 (/usr/local/bin/node)
npm : 6.1.0
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000

Environment:

ANDROID_HOME : /Users/me/Library/Android/sdk

Workaround

Downgrading to Ionic CLI 3.20.0 solves the issue, my app size was back to its previous weight

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions