Nenhuma Descrição

settings.gradle 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. pluginManagement {
  2. def reactNativeGradlePlugin = new File(
  3. providers.exec {
  4. workingDir(rootDir)
  5. commandLine("node", "--print", "require.resolve('@react-native/gradle-plugin/package.json', { paths: [require.resolve('react-native/package.json')] })")
  6. }.standardOutput.asText.get().trim()
  7. ).getParentFile().absolutePath
  8. includeBuild(reactNativeGradlePlugin)
  9. def expoPluginsPath = new File(
  10. providers.exec {
  11. workingDir(rootDir)
  12. commandLine("node", "--print", "require.resolve('expo-modules-autolinking/package.json', { paths: [require.resolve('expo/package.json')] })")
  13. }.standardOutput.asText.get().trim(),
  14. "../android/expo-gradle-plugin"
  15. ).absolutePath
  16. includeBuild(expoPluginsPath)
  17. }
  18. plugins {
  19. id("com.facebook.react.settings")
  20. id("expo-autolinking-settings")
  21. }
  22. extensions.configure(com.facebook.react.ReactSettingsExtension) { ex ->
  23. if (System.getenv('EXPO_USE_COMMUNITY_AUTOLINKING') == '1') {
  24. ex.autolinkLibrariesFromCommand()
  25. } else {
  26. ex.autolinkLibrariesFromCommand(expoAutolinking.rnConfigCommand)
  27. }
  28. }
  29. expoAutolinking.useExpoModules()
  30. rootProject.name = 'SmartFarmLite'
  31. expoAutolinking.useExpoVersionCatalog()
  32. include ':app'
  33. includeBuild(expoAutolinking.reactNativeGradlePlugin)