Open emanuelb opened 3 years ago
The kotlin directory in the APK is probably not needed (unless reflection is used with kotlin-reflect), see for more info at: https://youtrack.jetbrains.com/issue/KT-9770
kotlin
/hamagen-v2.2.14/kotlin$ ls ArithmeticException.kotlin_metadata IllegalStateException.kotlin_metadata NumbersKt.kotlin_metadata UByteArrayKt.kotlin_metadata UShortArrayKt.kotlin_metadata internal AssertionError.kotlin_metadata IndexOutOfBoundsException.kotlin_metadata OptionalExpectation.kotlin_metadata UByteKt.kotlin_metadata UShortKt.kotlin_metadata io BuilderInference.kotlin_metadata InitializedLazyImpl.kotlin_metadata Pair.kotlin_metadata UInt.kotlin_metadata UninitializedPropertyAccessException.kotlin_metadata js ClassCastException.kotlin_metadata KotlinHKt.kotlin_metadata PreconditionsKt.kotlin_metadata UIntArray.kotlin_metadata UnsafeLazyImpl.kotlin_metadata jvm Comparator.kotlin_metadata KotlinVersion.kotlin_metadata Result.kotlin_metadata UIntArrayKt.kotlin_metadata UnsignedUtilsKt.kotlin_metadata kotlin.kotlin_builtins ConcurrentModificationException.kotlin_metadata LateinitKt.kotlin_metadata ResultKt.kotlin_metadata UIntKt.kotlin_metadata UnsupportedOperationException.kotlin_metadata math Error.kotlin_metadata Lazy.kotlin_metadata RuntimeException.kotlin_metadata ULong.kotlin_metadata UseExperimental.kotlin_metadata native Exception.kotlin_metadata LazyKt.kotlin_metadata StandardKt.kotlin_metadata ULongArray.kotlin_metadata WasExperimental.kotlin_metadata properties Experimental.kotlin_metadata LazyThreadSafetyMode.kotlin_metadata SuccessOrFailureKt.kotlin_metadata ULongArrayKt.kotlin_metadata annotation random ExperimentalMultiplatform.kotlin_metadata NoSuchElementException.kotlin_metadata SuspendKt.kotlin_metadata ULongKt.kotlin_metadata collections ranges ExperimentalStdlibApi.kotlin_metadata NoWhenBranchMatchedException.kotlin_metadata Triple.kotlin_metadata UNINITIALIZED_VALUE.kotlin_metadata comparisons reflect ExperimentalUnsignedTypes.kotlin_metadata NotImplementedError.kotlin_metadata TuplesKt.kotlin_metadata UNumbersKt.kotlin_metadata contracts sequences HashCodeKt.kotlin_metadata NullPointerException.kotlin_metadata UByte.kotlin_metadata UShort.kotlin_metadata coroutines text IllegalArgumentException.kotlin_metadata NumberFormatException.kotlin_metadata UByteArray.kotlin_metadata UShortArray.kotlin_metadata experimental time
it can be removed by using exclude of kotlin directory under packagingOptions in build.gradle at: https://github.com/MohGovIL/hamagen-react-native/blob/ec58c77cf60aa5cfd366a6e5680bcee61497dbec/android/app/build.gradle#L215
exclude
packagingOptions
The
kotlin
directory in the APK is probably not needed (unless reflection is used with kotlin-reflect), see for more info at: https://youtrack.jetbrains.com/issue/KT-9770it can be removed by using
exclude
ofkotlin
directory underpackagingOptions
in build.gradle at: https://github.com/MohGovIL/hamagen-react-native/blob/ec58c77cf60aa5cfd366a6e5680bcee61497dbec/android/app/build.gradle#L215