暂无描述

build.gradle 1015B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. buildscript {
  2. /* In case of submodule usage, do not try to apply own repositories and plugins,
  3. root project is responsible for that. */
  4. if (rootProject.buildDir == project.buildDir) {
  5. repositories {
  6. google()
  7. jcenter()
  8. }
  9. dependencies {
  10. classpath 'com.android.tools.build:gradle:2.3.0'
  11. }
  12. }
  13. }
  14. apply plugin: 'com.android.library'
  15. android {
  16. compileSdkVersion 27
  17. buildToolsVersion "28.0.3"
  18. defaultConfig {
  19. minSdkVersion 16
  20. targetSdkVersion 27
  21. versionCode 1
  22. versionName "1.0"
  23. }
  24. lintOptions {
  25. abortOnError false
  26. }
  27. }
  28. repositories {
  29. google()
  30. jcenter()
  31. mavenLocal()
  32. maven {
  33. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  34. url "$rootDir/../node_modules/react-native/android"
  35. }
  36. }
  37. dependencies {
  38. implementation 'com.android.support:support-v4:27.+'
  39. api 'com.facebook.react:react-native:+'
  40. }