Нет описания

build.gradle 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. apply plugin: 'com.android.library'
  2. def safeExtGet(prop, fallback) {
  3. rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
  4. }
  5. repositories {
  6. mavenCentral()
  7. }
  8. buildscript {
  9. repositories {
  10. jcenter()
  11. }
  12. dependencies {
  13. classpath 'com.android.tools.build:gradle:2.2.3'
  14. }
  15. }
  16. android {
  17. compileSdkVersion safeExtGet('compileSdkVersion', 26)
  18. buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3')
  19. defaultConfig {
  20. minSdkVersion safeExtGet('minSdkVersion', 16)
  21. targetSdkVersion safeExtGet('targetSdkVersion', 26)
  22. versionCode 1
  23. versionName "1.0"
  24. }
  25. buildTypes {
  26. release {
  27. minifyEnabled false
  28. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  29. }
  30. }
  31. productFlavors {
  32. }
  33. }
  34. dependencies {
  35. compile "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
  36. //compile 'com.squareup.okhttp3:okhttp:+'
  37. //{RNFetchBlob_PRE_0.28_DEPDENDENCY}
  38. }