Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reduce APK size in HERE Maps Android SDK

I have used Premium Android SDK of HERE Maps API and implemented demo app. But my application size is 65 MB.

Also I have enabled shrinkResources in app build.gradle file as follows, but this didn't work for me.

 android {
    // Other settings

    buildTypes {
        release {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

So, my question is how can we reduce APK size used in Android SDK on HERE Maps API.

like image 974
Nitin Karande Avatar asked Nov 08 '22 03:11

Nitin Karande


1 Answers

Summary: There are some fonts you can try deleting (developer.here.com/documentation/android-premium/dev_guide/…) however the Premium SDK is about 50-60 Mb in the end and you might not be able to bring it down further. If a light weight application is required you might consider using the HERE SDK Lite (with limited features of course)

like image 178
HERE Developer Support Avatar answered Nov 14 '22 23:11

HERE Developer Support