From 54ca15688d244abfd8ed7fc90c3fececf57b01d6 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Wed, 29 Jan 2025 08:33:20 +0100 Subject: [PATCH] fix: disable x86 on Android to try to stay below size limits --- android/build.gradle | 2 +- example/android/gradle.properties | 3 ++- ubrn.yaml | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 5dc73d6..2d6bdee 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -78,7 +78,7 @@ android { } } ndk { - abiFilters "arm64-v8a", "armeabi-v7a", "x86", "x86_64" + abiFilters "arm64-v8a", "armeabi-v7a", "x86_64" } } diff --git a/example/android/gradle.properties b/example/android/gradle.properties index 3902665..81c3f24 100644 --- a/example/android/gradle.properties +++ b/example/android/gradle.properties @@ -25,7 +25,8 @@ android.useAndroidX=true # Use this property to specify which architecture you want to build. # You can also override it from the CLI using # ./gradlew -PreactNativeArchitectures=x86_64 -reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 +# TODO: Include x86 +reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86_64 # Use this property to enable support to the new architecture. # This will allow you to use TurboModules and the Fabric render in diff --git a/ubrn.yaml b/ubrn.yaml index 13119ec..84aa7be 100644 --- a/ubrn.yaml +++ b/ubrn.yaml @@ -10,7 +10,8 @@ android: targets: - arm64-v8a - armeabi-v7a - - x86 + # x86 should only be needed for ancient devices and excluding this helps us stay below npmjs size limits + # - x86 - x86_64 ios: cargoExtras: []