summaryrefslogtreecommitdiff
path: root/android/settings.gradle
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-07-16 14:54:44 +0700
committerpolwex <polwex@sortug.com>2025-07-16 14:54:44 +0700
commitaadfe206f3233032d8742a17c1f21d4750946a41 (patch)
treea63a95381ff99af1226ef096ce94cc32d8153ca5 /android/settings.gradle
parent1c81a70b0349a7f7577d0124b4b67ab5ea01e68d (diff)
aaaarggh!!!
Diffstat (limited to 'android/settings.gradle')
-rw-r--r--android/settings.gradle39
1 files changed, 39 insertions, 0 deletions
diff --git a/android/settings.gradle b/android/settings.gradle
new file mode 100644
index 0000000..a51cf05
--- /dev/null
+++ b/android/settings.gradle
@@ -0,0 +1,39 @@
+pluginManagement {
+ def reactNativeGradlePlugin = new File(
+ providers.exec {
+ workingDir(rootDir)
+ commandLine("node", "--print", "require.resolve('@react-native/gradle-plugin/package.json', { paths: [require.resolve('react-native/package.json')] })")
+ }.standardOutput.asText.get().trim()
+ ).getParentFile().absolutePath
+ includeBuild(reactNativeGradlePlugin)
+
+ def expoPluginsPath = new File(
+ providers.exec {
+ workingDir(rootDir)
+ commandLine("node", "--print", "require.resolve('expo-modules-autolinking/package.json', { paths: [require.resolve('expo/package.json')] })")
+ }.standardOutput.asText.get().trim(),
+ "../android/expo-gradle-plugin"
+ ).absolutePath
+ includeBuild(expoPluginsPath)
+}
+
+plugins {
+ id("com.facebook.react.settings")
+ id("expo-autolinking-settings")
+}
+
+extensions.configure(com.facebook.react.ReactSettingsExtension) { ex ->
+ if (System.getenv('EXPO_USE_COMMUNITY_AUTOLINKING') == '1') {
+ ex.autolinkLibrariesFromCommand()
+ } else {
+ ex.autolinkLibrariesFromCommand(expoAutolinking.rnConfigCommand)
+ }
+}
+expoAutolinking.useExpoModules()
+
+rootProject.name = 'client'
+
+expoAutolinking.useExpoVersionCatalog()
+
+include ':app'
+includeBuild(expoAutolinking.reactNativeGradlePlugin)