Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ react {
/**
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
*/
def enableProguardInReleaseBuilds = false
def enableProguardInReleaseBuilds = true

/**
* The preferred build flavor of JavaScriptCore (JSC)
Expand Down Expand Up @@ -114,6 +114,7 @@ android {
def hasReleaseKeystore = System.getenv('RELEASE_STORE_FILE') || project.findProperty('RELEASE_STORE_FILE')
signingConfig hasReleaseKeystore ? signingConfigs.release : signingConfigs.debug
minifyEnabled enableProguardInReleaseBuilds
shrinkResources enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
Expand Down
7 changes: 6 additions & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ android.useAndroidX=true
# Use this property to specify which architecture you want to build.
# You can also override it from the CLI using
# ./gradlew <task> -PreactNativeArchitectures=x86_64
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# Ship arm64-v8a only. Every real target device (GrapheneOS/Pixels and modern
# stock Android) is 64-bit ARM; x86/x86_64 are emulator-only and armeabi-v7a is
# pre-2017 32-bit. This controls both which ABIs are compiled and which ship, so
# it also cuts build time ~4x. To run a debug build on an x86_64 emulator,
# override per-invocation: ./gradlew ... -PreactNativeArchitectures=x86_64
reactNativeArchitectures=arm64-v8a

# Use this property to enable support to the new architecture.
# This will allow you to use TurboModules and the Fabric render in
Expand Down
4 changes: 4 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
module.exports = {
presets: ['module:@react-native/babel-preset'],
// graphql v17 ships .mjs using `export * as Kind from ...` (export-namespace-from).
// The RN preset doesn't transform this, so release bundling fails without it.
// Debug builds serve JS from Metro and skip bundling, so CI never hit this.
plugins: ['@babel/plugin-transform-export-namespace-from'],
};
Loading