Skip to content

Commit

Permalink
Fixed support for rn75
Browse files Browse the repository at this point in the history
  • Loading branch information
gosha212 committed Dec 2, 2024
1 parent cd0d6bb commit 375ab8f
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions detox/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
plugins { id("com.facebook.react.settings") }
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }

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.isRN75OrHigher) {
pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
plugins { id("com.facebook.react.settings") }
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }

if (ext.rnInfo.isRN72OrHigher) {
includeBuild('../node_modules/@react-native/gradle-plugin')
} else {
if (ext.rnInfo.isRN72OrHigher) {
includeBuild('../node_modules/@react-native/gradle-plugin')
} else {
includeBuild('../node_modules/react-native-gradle-plugin')
}
includeBuild('../node_modules/react-native-gradle-plugin')
}

0 comments on commit 375ab8f

Please sign in to comment.