Skip to content

Commit a6cb406

Browse files
committed
fix(ci): use root node_modules paths for Android gradle
Dependencies are hoisted to root in yarn workspaces
1 parent b5d37f0 commit a6cb406

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/example/android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ react {
1111
// The root of your project, i.e. where "package.json" lives. Default is '../..'
1212
root = file("../../")
1313
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
14-
reactNativeDir = file("../../node_modules/react-native")
14+
reactNativeDir = file("../../../../node_modules/react-native")
1515
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
16-
codegenDir = file("../../node_modules/@react-native/codegen")
16+
codegenDir = file("../../../../node_modules/@react-native/codegen")
1717
// The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
18-
cliFile = file("../../node_modules/react-native/cli.js")
18+
cliFile = file("../../../../node_modules/react-native/cli.js")
1919

2020
/* Variants */
2121
// The list of variants to that are debuggable. For those we're going to
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
1+
pluginManagement { includeBuild("../../../node_modules/@react-native/gradle-plugin") }
22
plugins { id("com.facebook.react.settings") }
33
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
44
rootProject.name = 'rnpackages.nativedate.example'
55
include ':app'
6-
includeBuild('../node_modules/@react-native/gradle-plugin')
6+
includeBuild('../../../node_modules/@react-native/gradle-plugin')

0 commit comments

Comments
 (0)