@@ -42,8 +42,8 @@ describe("gatherConfig()", () => {
4242 it ( "returns configuration for all platforms" , ( ) => {
4343 deepEqual ( gatherConfig ( mockParams ( ) ) , {
4444 dependencies : {
45- "react-native-macos" : "^0.73 .0" ,
46- "react-native-windows" : "^0.73 .0" ,
45+ "react-native-macos" : "^0.76 .0" ,
46+ "react-native-windows" : "^0.76 .0" ,
4747 } ,
4848 files : {
4949 ".gitignore" : {
@@ -98,9 +98,61 @@ describe("gatherConfig()", () => {
9898 "}" ,
9999 ""
100100 ) ,
101- "android/gradle.properties" : {
102- source : "example/android/gradle.properties" ,
103- } ,
101+ "android/gradle.properties" : join (
102+ "# Project-wide Gradle settings." ,
103+ "" ,
104+ "# IDE (e.g. Android Studio) users:" ,
105+ "# Gradle settings configured through the IDE *will override*" ,
106+ "# any settings specified in this file." ,
107+ "" ,
108+ "# For more details on how to configure your build environment visit" ,
109+ "# http://www.gradle.org/docs/current/userguide/build_environment.html" ,
110+ "" ,
111+ "# Specifies the JVM arguments used for the Gradle Daemon. The setting is" ,
112+ "# particularly useful for configuring JVM memory settings for build performance." ,
113+ "# This does not affect the JVM settings for the Gradle client VM." ,
114+ "# The default is `-Xmx512m -XX:MaxMetaspaceSize=256m`." ,
115+ "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" ,
116+ "" ,
117+ "# When configured, Gradle will fork up to org.gradle.workers.max JVMs to execute" ,
118+ "# projects in parallel. To learn more about parallel task execution, see the" ,
119+ "# section on Gradle build performance:" ,
120+ "# https://docs.gradle.org/current/userguide/performance.html#parallel_execution." ,
121+ "# Default is `false`." ,
122+ "#org.gradle.parallel=true" ,
123+ "" ,
124+ "# AndroidX package structure to make it clearer which packages are bundled with the" ,
125+ "# Android operating system, and which are packaged with your app's APK" ,
126+ "# https://developer.android.com/topic/libraries/support-library/androidx-rn" ,
127+ "android.useAndroidX=true" ,
128+ "# Automatically convert third-party libraries to use AndroidX" ,
129+ "#android.enableJetifier=true" ,
130+ "# Jetifier randomly fails on these libraries" ,
131+ "#android.jetifier.ignorelist=hermes-android,react-android" ,
132+ "" ,
133+ "# Use this property to specify which architecture you want to build." ,
134+ "# You can also override it from the CLI using" ,
135+ "# ./gradlew <task> -PreactNativeArchitectures=x86_64" ,
136+ "reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64" ,
137+ "" ,
138+ "# Use this property to enable support to the new architecture." ,
139+ "# This will allow you to use TurboModules and the Fabric render in" ,
140+ "# your application. You should enable this flag either if you want" ,
141+ "# to write custom TurboModules/Fabric components OR use libraries that" ,
142+ "# are providing them." ,
143+ "# Note that this is incompatible with web debugging." ,
144+ "newArchEnabled=true" ,
145+ "#bridgelessEnabled=true" ,
146+ "" ,
147+ "# Uncomment the line below to build React Native from source." ,
148+ "#react.buildFromSource=true" ,
149+ "" ,
150+ "# Version of Android NDK to build against." ,
151+ "#ANDROID_NDK_VERSION=26.1.10909125" ,
152+ "" ,
153+ "# Version of Kotlin to build against." ,
154+ "#KOTLIN_VERSION=1.8.22"
155+ ) ,
104156 "android/gradle/wrapper/gradle-wrapper.jar" : {
105157 source : "example/android/gradle/wrapper/gradle-wrapper.jar" ,
106158 } ,
@@ -147,7 +199,7 @@ describe("gatherConfig()", () => {
147199 "" ,
148200 "workspace 'Test.xcworkspace'" ,
149201 "" ,
150- "use_test_app! :hermes_enabled => true" ,
202+ "use_test_app! :hermes_enabled => true, :fabric_enabled => true " ,
151203 ""
152204 ) ,
153205 "macos/Podfile" : join (
@@ -159,7 +211,7 @@ describe("gatherConfig()", () => {
159211 "" ,
160212 "workspace 'Test.xcworkspace'" ,
161213 "" ,
162- "use_test_app! :hermes_enabled => true" ,
214+ "use_test_app! :hermes_enabled => true, :fabric_enabled => false " ,
163215 ""
164216 ) ,
165217 "metro.config.js" : {
@@ -340,7 +392,7 @@ describe("gatherConfig()", () => {
340392 "" ,
341393 "workspace 'Test.xcworkspace'" ,
342394 "" ,
343- "use_test_app! :hermes_enabled => true" ,
395+ "use_test_app! :hermes_enabled => true, :fabric_enabled => true " ,
344396 ""
345397 ) ,
346398 "metro.config.js" : {
@@ -446,9 +498,61 @@ describe("gatherConfig()", () => {
446498 "}" ,
447499 ""
448500 ) ,
449- "android/gradle.properties" : {
450- source : "example/android/gradle.properties" ,
451- } ,
501+ "android/gradle.properties" : join (
502+ "# Project-wide Gradle settings." ,
503+ "" ,
504+ "# IDE (e.g. Android Studio) users:" ,
505+ "# Gradle settings configured through the IDE *will override*" ,
506+ "# any settings specified in this file." ,
507+ "" ,
508+ "# For more details on how to configure your build environment visit" ,
509+ "# http://www.gradle.org/docs/current/userguide/build_environment.html" ,
510+ "" ,
511+ "# Specifies the JVM arguments used for the Gradle Daemon. The setting is" ,
512+ "# particularly useful for configuring JVM memory settings for build performance." ,
513+ "# This does not affect the JVM settings for the Gradle client VM." ,
514+ "# The default is `-Xmx512m -XX:MaxMetaspaceSize=256m`." ,
515+ "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" ,
516+ "" ,
517+ "# When configured, Gradle will fork up to org.gradle.workers.max JVMs to execute" ,
518+ "# projects in parallel. To learn more about parallel task execution, see the" ,
519+ "# section on Gradle build performance:" ,
520+ "# https://docs.gradle.org/current/userguide/performance.html#parallel_execution." ,
521+ "# Default is `false`." ,
522+ "#org.gradle.parallel=true" ,
523+ "" ,
524+ "# AndroidX package structure to make it clearer which packages are bundled with the" ,
525+ "# Android operating system, and which are packaged with your app's APK" ,
526+ "# https://developer.android.com/topic/libraries/support-library/androidx-rn" ,
527+ "android.useAndroidX=true" ,
528+ "# Automatically convert third-party libraries to use AndroidX" ,
529+ "#android.enableJetifier=true" ,
530+ "# Jetifier randomly fails on these libraries" ,
531+ "#android.jetifier.ignorelist=hermes-android,react-android" ,
532+ "" ,
533+ "# Use this property to specify which architecture you want to build." ,
534+ "# You can also override it from the CLI using" ,
535+ "# ./gradlew <task> -PreactNativeArchitectures=x86_64" ,
536+ "reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64" ,
537+ "" ,
538+ "# Use this property to enable support to the new architecture." ,
539+ "# This will allow you to use TurboModules and the Fabric render in" ,
540+ "# your application. You should enable this flag either if you want" ,
541+ "# to write custom TurboModules/Fabric components OR use libraries that" ,
542+ "# are providing them." ,
543+ "# Note that this is incompatible with web debugging." ,
544+ "newArchEnabled=true" ,
545+ "#bridgelessEnabled=true" ,
546+ "" ,
547+ "# Uncomment the line below to build React Native from source." ,
548+ "#react.buildFromSource=true" ,
549+ "" ,
550+ "# Version of Android NDK to build against." ,
551+ "#ANDROID_NDK_VERSION=26.1.10909125" ,
552+ "" ,
553+ "# Version of Kotlin to build against." ,
554+ "#KOTLIN_VERSION=1.8.22"
555+ ) ,
452556 "android/gradle/wrapper/gradle-wrapper.jar" : {
453557 source : "example/android/gradle/wrapper/gradle-wrapper.jar" ,
454558 } ,
@@ -495,7 +599,7 @@ describe("gatherConfig()", () => {
495599 "" ,
496600 "workspace 'Test.xcworkspace'" ,
497601 "" ,
498- "use_test_app! :hermes_enabled => true" ,
602+ "use_test_app! :hermes_enabled => true, :fabric_enabled => true " ,
499603 ""
500604 ) ,
501605 "metro.config.js" : {
0 commit comments