Skip to content

1.5.0

Choose a tag to compare

@github-actions github-actions released this 22 Jul 18:38
· 1642 commits to trunk since this release
76eddc0

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:

If you're seeing build issues with newArchEnabled=true, please see https://github.com/microsoft/react-native-test-app/wiki/Troubleshooting.