1.5.0
1.5.0 (2022-07-22)
Features
Note that this change requires some adjustments to your build.gradle:
diff --git a/example/android/build.gradle b/example/android/build.gradle
index 0c6c69d..2ed70f1 100644
--- a/example/android/build.gradle
+++ b/example/android/build.gradle
@@ -1,6 +1,7 @@
buildscript {
def androidTestAppDir = "../node_modules/react-native-test-app/android"
apply(from: "${androidTestAppDir}/dependencies.gradle")
+ apply(from: "${androidTestAppDir}/test-app-util.gradle")
repositories {
mavenCentral()
@@ -8,8 +9,12 @@ buildscript {
}
dependencies {
- classpath "com.android.tools.build:gradle:$androidPluginVersion"
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
+ classpath("com.android.tools.build:gradle:${androidPluginVersion}")
+
+ if (isNewArchitectureEnabled(project)) {
+ classpath("com.facebook.react:react-native-gradle-plugin")
+ classpath("de.undercouch:gradle-download-task:5.1.0")
+ }
}
}For instructions on how to enable Fabric/TurboModule, please see the wiki:
- Android: https://github.com/microsoft/react-native-test-app/wiki/Android-Specifics#fabric-and-turbomodule
- iOS: https://github.com/microsoft/react-native-test-app/wiki/iOS-and-macOS-Specifics#fabric-and-turbomodule
If you're seeing build issues with newArchEnabled=true, please see https://github.com/microsoft/react-native-test-app/wiki/Troubleshooting.