build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext {
  4. buildToolsVersion = "31.0.0"
  5. minSdkVersion = 21
  6. compileSdkVersion = 31
  7. targetSdkVersion = 31
  8. playServicesVersion = "17.0.0"
  9. firebaseMessagingVersion = "21.1.0"
  10. ndkVersion = "20.1.5948944"
  11. }
  12. repositories {
  13. google()
  14. jcenter()
  15. }
  16. dependencies {
  17. classpath("com.android.tools.build:gradle:4.1.1")
  18. classpath('com.google.gms:google-services:4.3.8')
  19. // NOTE: Do not place your application dependencies here; they belong
  20. // in the individual module build.gradle files
  21. }
  22. }
  23. allprojects {
  24. repositories {
  25. mavenLocal()
  26. maven {
  27. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  28. url("$rootDir/../node_modules/react-native/android")
  29. }
  30. maven {
  31. // Android JSC is installed from npm
  32. url("$rootDir/../node_modules/jsc-android/dist")
  33. }
  34. google()
  35. jcenter()
  36. maven { url 'https://www.jitpack.io' }
  37. }
  38. }
  39. project.ext.react = [
  40. nodeExecutableAndArgs: ["node", "--max_old_space_size=8192"]
  41. ]