Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

build.gradle 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. buildscript {
  2. repositories {
  3. jcenter { url "https://jcenter.bintray.com/" }
  4. maven {url "https://repo.spring.io/plugins-release/"}
  5. mavenCentral()
  6. maven {
  7. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  8. url "$rootDir/../node_modules/react-native/android"
  9. }
  10. maven {
  11. url 'https://maven.google.com'
  12. }
  13. }
  14. dependencies {
  15. classpath 'com.android.tools.build:gradle:3.1.4'
  16. }
  17. }
  18. apply plugin: 'com.android.library'
  19. android {
  20. compileSdkVersion 27
  21. buildToolsVersion "27.0.3"
  22. defaultConfig {
  23. minSdkVersion 16
  24. targetSdkVersion 24
  25. versionCode 1
  26. versionName "1.0"
  27. }
  28. lintOptions {
  29. abortOnError false
  30. }
  31. sourceSets {
  32. main {
  33. aidl.srcDirs = ['src/main/java']
  34. }
  35. }
  36. }
  37. repositories {
  38. jcenter { url "https://jcenter.bintray.com/" }
  39. maven {url "https://repo.spring.io/plugins-release/"}
  40. mavenCentral()
  41. maven {
  42. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  43. url "$rootDir/../node_modules/react-native/android"
  44. }
  45. maven {
  46. url 'https://maven.google.com'
  47. }
  48. }
  49. dependencies {
  50. compile fileTree(dir: 'libs', include: ['*.jar'])
  51. implementation 'com.facebook.react:react-native:+' // From node_modules
  52. implementation group: 'com.android.support', name: 'support-v4', version: '27.0.0'
  53. implementation "com.google.zxing:core:3.3.0"
  54. }