From 4758454383ba9d1610aacf75fc5ca37010986784 Mon Sep 17 00:00:00 2001 From: Hur Ali Date: Tue, 19 May 2026 17:16:30 +0500 Subject: [PATCH 1/5] docs: update troubleshooting to include transitive dependency section --- docs/docs/docs/guides/troubleshooting.mdx | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/docs/docs/guides/troubleshooting.mdx b/docs/docs/docs/guides/troubleshooting.mdx index df493a10..74797de5 100644 --- a/docs/docs/docs/guides/troubleshooting.mdx +++ b/docs/docs/docs/guides/troubleshooting.mdx @@ -10,6 +10,30 @@ This is because RN 0.82.0 changed the path to which the JS bundle is written to The brownfield Gradle plugin adds both directories to the source sets, potentially causing a conflict of artifacts. To fix this, just once clean your build directory (precisely, the `app/build/` directory) and rebuild the project. All subsequent builds should work fine. +## [Android] Transitive dependencies not being auto resolved + +Installed third party packages like `react-native-screens` or others, may rely on transitive dependencies in their `build.gradle` file. These dependencies are not auto resolved by `brownfield-gradle-plugin`. This is an intended behavior in bare React Native apps. + +For Expo apps, this should work out of the box. + +To make it work with bare React Native Apps, you have two options: + +#### Option 1: + +Add those dependencies from `react-native-screens/build.gradle` to `yourbrownfieldmodule/build.gradle`: + +```kts +api("com.google.android.material:material:1.13.0") +``` + +#### Option 2: + +Add those dependencies from `react-native-screens/build.gradle` to `nativeapp/build.gradle`: + +```kts +implementation 'com.google.android.material:material:1.13.0' +``` + ## [iOS] `No script URL provided` in Release configuration If you encounter this error, most likely you have missed a setup step and are missing `ReactNativeBrownfield.shared.bundle = ReactNativeBundle` before your call to `startReactNative`. From 956acb57e82a3701568230b6c306f4f676bad19c Mon Sep 17 00:00:00 2001 From: Hur Ali Date: Wed, 20 May 2026 10:24:11 +0500 Subject: [PATCH 2/5] Update docs/docs/docs/guides/troubleshooting.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kacper Rożniata <56474758+krozniata@users.noreply.github.com> --- docs/docs/docs/guides/troubleshooting.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/docs/guides/troubleshooting.mdx b/docs/docs/docs/guides/troubleshooting.mdx index 74797de5..6fc5b9d0 100644 --- a/docs/docs/docs/guides/troubleshooting.mdx +++ b/docs/docs/docs/guides/troubleshooting.mdx @@ -20,7 +20,7 @@ To make it work with bare React Native Apps, you have two options: #### Option 1: -Add those dependencies from `react-native-screens/build.gradle` to `yourbrownfieldmodule/build.gradle`: +Add those dependencies from `react-native-screens/build.gradle` to `/build.gradle`: ```kts api("com.google.android.material:material:1.13.0") From bb8184a13777f1c01561fed8628cc4206bcb8af3 Mon Sep 17 00:00:00 2001 From: Hur Ali Date: Wed, 20 May 2026 10:24:22 +0500 Subject: [PATCH 3/5] Update docs/docs/docs/guides/troubleshooting.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kacper Rożniata <56474758+krozniata@users.noreply.github.com> --- docs/docs/docs/guides/troubleshooting.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/docs/guides/troubleshooting.mdx b/docs/docs/docs/guides/troubleshooting.mdx index 6fc5b9d0..66a80def 100644 --- a/docs/docs/docs/guides/troubleshooting.mdx +++ b/docs/docs/docs/guides/troubleshooting.mdx @@ -28,7 +28,7 @@ api("com.google.android.material:material:1.13.0") #### Option 2: -Add those dependencies from `react-native-screens/build.gradle` to `nativeapp/build.gradle`: +Add those dependencies from `react-native-screens/build.gradle` to `/build.gradle`: ```kts implementation 'com.google.android.material:material:1.13.0' From 5a25cb4228c8ee66f197714b68695226788d899a Mon Sep 17 00:00:00 2001 From: Hur Ali Date: Wed, 20 May 2026 10:24:58 +0500 Subject: [PATCH 4/5] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- docs/docs/docs/guides/troubleshooting.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/docs/guides/troubleshooting.mdx b/docs/docs/docs/guides/troubleshooting.mdx index 66a80def..7bb6c17e 100644 --- a/docs/docs/docs/guides/troubleshooting.mdx +++ b/docs/docs/docs/guides/troubleshooting.mdx @@ -12,7 +12,7 @@ The brownfield Gradle plugin adds both directories to the source sets, potential ## [Android] Transitive dependencies not being auto resolved -Installed third party packages like `react-native-screens` or others, may rely on transitive dependencies in their `build.gradle` file. These dependencies are not auto resolved by `brownfield-gradle-plugin`. This is an intended behavior in bare React Native apps. +Installed third-party packages like `react-native-screens` or others may rely on transitive dependencies in their `build.gradle` file. These dependencies are not auto resolved by `brownfield-gradle-plugin`. This is an intended behavior in bare React Native apps. For Expo apps, this should work out of the box. From 978e02c73d9a73203542590c6713d0ea1089ece9 Mon Sep 17 00:00:00 2001 From: Hur Ali Date: Wed, 20 May 2026 10:25:06 +0500 Subject: [PATCH 5/5] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- docs/docs/docs/guides/troubleshooting.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/docs/guides/troubleshooting.mdx b/docs/docs/docs/guides/troubleshooting.mdx index 7bb6c17e..5305eb21 100644 --- a/docs/docs/docs/guides/troubleshooting.mdx +++ b/docs/docs/docs/guides/troubleshooting.mdx @@ -31,7 +31,7 @@ api("com.google.android.material:material:1.13.0") Add those dependencies from `react-native-screens/build.gradle` to `/build.gradle`: ```kts -implementation 'com.google.android.material:material:1.13.0' +implementation("com.google.android.material:material:1.13.0") ``` ## [iOS] `No script URL provided` in Release configuration