File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,12 @@ ext.applyTestAppSettings = { DefaultSettings settings ->
6767 settings. project(" :support" )
6868 .projectDir = file(" ${ testAppDir} /android/support" )
6969
70+ def reactNativeVersion = getPackageVersionNumber(" react-native" , rootDir)
71+
7072 def reactNativeGradlePlugin =
71- findNodeModulesPath(" @react-native/gradle-plugin" , reactNativeDir) // >= 0.72
72- ?: findNodeModulesPath(" react-native-gradle-plugin" , reactNativeDir) // < 0.72
73+ reactNativeVersion >= v(0 , 72 , 0 )
74+ ? findNodeModulesPath(" @react-native/gradle-plugin" , reactNativeDir)
75+ : findNodeModulesPath(" react-native-gradle-plugin" , reactNativeDir)
7376 if (reactNativeGradlePlugin != null ) {
7477 settings. includeBuild(reactNativeGradlePlugin)
7578 }
You can’t perform that action at this time.
0 commit comments