mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
20 lines
632 B
Groovy
20 lines
632 B
Groovy
// RN75+_BLOCK_START
|
|
pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
|
|
plugins { id("com.facebook.react.settings") }
|
|
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
|
|
// RN75+_BLOCK_END
|
|
|
|
|
|
apply from: '../android/rninfo.gradle'
|
|
include ':detox'
|
|
|
|
println("RNInfo: rootDir=$rootDir")
|
|
println "[settings] RNInfo: detected React Native version: (major=${ext.rnInfo.version})"
|
|
|
|
|
|
if (ext.rnInfo.isRN72OrHigher) {
|
|
includeBuild('../node_modules/@react-native/gradle-plugin')
|
|
} else {
|
|
includeBuild('../node_modules/react-native-gradle-plugin')
|
|
}
|