Nessuna descrizione

build.gradle 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. google()
  12. }
  13. dependencies {
  14. classpath 'com.android.tools.build:gradle:3.1.4'
  15. }
  16. }
  17. android {
  18. compileSdkVersion safeExtGet('compileSdkVersion', 26)
  19. buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3')
  20. defaultConfig {
  21. minSdkVersion safeExtGet('minSdkVersion', 16)
  22. targetSdkVersion safeExtGet('targetSdkVersion', 26)
  23. versionCode 1
  24. versionName "1.0"
  25. }
  26. buildTypes {
  27. release {
  28. minifyEnabled false
  29. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  30. }
  31. }
  32. productFlavors {
  33. }
  34. }
  35. dependencies {
  36. implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
  37. //compile 'com.squareup.okhttp3:okhttp:+'
  38. //{RNFetchBlob_PRE_0.28_DEPDENDENCY}
  39. }