Skip to content

Commit

Permalink
Update settings.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
huhuanming committed Sep 27, 2024
1 parent dde62ea commit 9ad5814
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/mobile/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ applyNativeModulesSettingsGradle(settings)

include ':app'
includeBuild(new File(["node", "--print", "require.resolve('@react-native/gradle-plugin/package.json')"].execute(null, rootDir).text.trim()).getParentFile())
includeBuild('../../../node_modules/react-native') {
dependencySubstitution {
substitute(module("com.facebook.react:react-android")).using(project(":packages:react-native:ReactAndroid"))
substitute(module("com.facebook.react:react-native")).using(project(":packages:react-native:ReactAndroid"))
substitute(module("com.facebook.react:hermes-android")).using(project(":packages:react-native:ReactAndroid:hermes-engine"))
substitute(module("com.facebook.react:hermes-engine")).using(project(":packages:react-native:ReactAndroid:hermes-engine"))
}
}

0 comments on commit 9ad5814

Please sign in to comment.