razorRun/react-native-vlc-media-player

Expo-generated apk gets heavy with this library

MatteoBuffo opened this issue · 3 comments

Hello. I'm currently working on an Expo app (bare workflow) and whenever I generate a development build (development profile) the resulting apk size is around 75 MB (that's ok).

After the installation of react-native-vlc-media-player, the apk size is over 160 MB.

Is there a way to prevent this? Thanks in advance.

Solved by following this.

Do you know if this can be achieved using an expo managed workflow?

add build config
android/app/build.gradle

defaultConfig {
    applicationId 'com.xxx.app'
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode 1
    versionName "1.0.0"

    buildConfigField("boolean", "REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS", (findProperty("reactNative.unstable_useRuntimeSchedulerAlways") ?: true).toString())

    ndk {
        abiFilters 'armeabi-v7a'
    }
}