20 lines
1.2 KiB
Groovy
20 lines
1.2 KiB
Groovy
rootProject.name = 'example'
|
|
|
|
apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle");
|
|
useExpoModules()
|
|
|
|
apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle");
|
|
applyNativeModulesSettingsGradle(settings)
|
|
|
|
include ':app'
|
|
includeBuild(new File(["node", "--print", "require.resolve('react-native-gradle-plugin/package.json')"].execute(null, rootDir).text.trim()).getParentFile())
|
|
|
|
if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") {
|
|
include(":ReactAndroid")
|
|
project(":ReactAndroid").projectDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../ReactAndroid");
|
|
include(":ReactAndroid:hermes-engine")
|
|
project(":ReactAndroid:hermes-engine").projectDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../ReactAndroid/hermes-engine");
|
|
}
|
|
|
|
include ':gowaku'
|
|
project(':gowaku').projectDir = new File(rootProject.projectDir, './../node_modules/@waku/react-native/android/gowaku') |