11# Project-wide Gradle settings.
22
3- # IDE (e.g. Android Studio) users:
4- # Gradle settings configured through the IDE *will override*
5- # any settings specified in this file.
3+ # Specifies the JVM arguments used for the daemon process.
4+ org.gradle.jvmargs =-Xmx4096m -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
65
7- # For more details on how to configure your build environment visit
8- # http://www.gradle.org/docs/current/userguide/build_environment.html
6+ # Gradle optimizations
7+ org.gradle.parallel =true
8+ org.gradle.configureondemand =true
9+ org.gradle.daemon =true
10+ org.gradle.caching =true
911
10- # Specifies the JVM arguments used for the daemon process.
11- # The setting is particularly useful for tweaking memory settings.
12- # Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
13- org.gradle.jvmargs =-Xmx2048m -XX:MaxMetaspaceSize=512m
14-
15- # When configured, Gradle will run in incubating parallel mode.
16- # This option should only be used with decoupled projects. More details, visit
17- # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18- # org.gradle.parallel=true
19-
20- # AndroidX package structure to make it clearer which packages are bundled with the
21- # Android operating system, and which are packaged with your app's APK
22- # https://developer.android.com/topic/libraries/support-library/androidx-rn
12+ # AndroidX package structure
2313android.useAndroidX =true
14+ android.enableJetifier =true
2415
25- # Use this property to specify which architecture you want to build.
26- # You can also override it from the CLI using
27- # ./gradlew <task> -PreactNativeArchitectures=x86_64
28- reactNativeArchitectures =armeabi-v7a,arm64-v8a,x86,x86_64
16+ # React Native architectures
17+ reactNativeArchitectures =arm64-v8a,x86,x86_64
2918
30- # Use this property to enable support to the new architecture.
31- # This will allow you to use TurboModules and the Fabric render in
32- # your application. You should enable this flag either if you want
33- # to write custom TurboModules/Fabric components OR use libraries that
34- # are providing them.
19+ # New Architecture (required for RN 0.82)
3520newArchEnabled =true
3621
37- # Use this property to enable or disable the Hermes JS engine.
38- # If set to false, you will be using JSC instead.
22+ # Hermes JS engine
3923hermesEnabled =true
4024
41- # Use this property to enable edge-to-edge display support.
42- # This allows your app to draw behind system bars for an immersive UI.
43- # Note: Only works with ReactActivity and should not be used with custom Activity.
25+ # Edge-to-edge display
4426edgeToEdgeEnabled =false
27+
28+ # Additional Android settings
29+ android.defaults.buildfeatures.buildconfig =true
30+ android.nonTransitiveRClass =false
31+ android.nonFinalResIds =false
0 commit comments