Bez popisu

build.gradle 1.1KB

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