react-native-camera-kit icon indicating copy to clipboard operation
react-native-camera-kit copied to clipboard

I noted after Add Kotlin to project APK file have increase double size ? why ?

Open ponleukea opened this issue 3 years ago • 3 comments

Describe the bug I follow this : https://github.com/teslamotors/react-native-camera-kit/blob/master/docs/kotlin.md ** OS** ANDROID

ponleukea avatar Jun 13 '22 08:06 ponleukea

Look like this libs make the build apk file become larger. My previous apk has 30mb and after integrate this libs this one has more than 100mb.

vietnguyenhoangw avatar Nov 17 '22 05:11 vietnguyenhoangw

In my case, The issues happened when I increased minSdkVersion from 21 to 23. I'm able to reduce APK size a little by adding android:extractNativeLibs="true" to AndroidManifest.xml but there is a warning about it.

bdtren avatar Dec 23 '22 11:12 bdtren

maybe can use below method directly

packagingOptions {
        jniLibs {
            useLegacyPackaging true
        }
    }

nolife08021 avatar Sep 22 '23 06:09 nolife08021