From d77a951cfcfd41f847323b8b92b7553bb89ec14c Mon Sep 17 00:00:00 2001 From: skullquake Date: Tue, 4 Jul 2023 14:40:08 +0200 Subject: [PATCH] . --- 7.0.1_0.4.0/prj/android/app/build.gradle | 11 +++++++++++ README.md | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/7.0.1_0.4.0/prj/android/app/build.gradle b/7.0.1_0.4.0/prj/android/app/build.gradle index a6849aa14..05fc2b0b4 100644 --- a/7.0.1_0.4.0/prj/android/app/build.gradle +++ b/7.0.1_0.4.0/prj/android/app/build.gradle @@ -92,7 +92,17 @@ android { release { minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + ndk { + abiFilters "armeabi-v7a", "arm64-v8a" + } + } + debug { + ndk { + abiFilters "armeabi-v7a", "arm64-v8a" + } } + + } // applicationVariants are e.g. debug, release applicationVariants.all { variant -> @@ -184,3 +194,4 @@ task copyDownloadableDepsToLibs(type: Copy) { apply from: file("../../node_modules/@mendix/native/android/mendix.gradle"); applyMendixGradle(project) apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" + diff --git a/README.md b/README.md index ecec18472..ce1ea3305 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ dependencies { } ``` -Edit `android/app/build.gradle` and add abiFilters as follows [reference](https://developer.android.com/ndk/guides/abis) +For smaller APK sizes, limit the buildTypes by editing `android/app/build.gradle` and add abiFilters as follows [reference](https://developer.android.com/ndk/guides/abis) ``` ...