2018-07-13 23:49:25 +04:30
|
|
|
def safeExtGet(prop, fallback) {
|
|
|
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
|
|
}
|
|
|
|
|
2016-01-05 12:36:05 -08:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
2018-04-15 22:06:18 -03:00
|
|
|
google()
|
2017-12-31 13:49:39 -02:00
|
|
|
maven {
|
|
|
|
url 'https://maven.google.com'
|
|
|
|
}
|
2016-01-05 12:36:05 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2017-12-31 13:49:39 -02:00
|
|
|
classpath 'com.android.tools.build:gradle:3.0.0'
|
2016-01-05 12:36:05 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
|
|
|
android {
|
2018-07-13 23:49:25 +04:30
|
|
|
compileSdkVersion safeExtGet('compileSdkVersion', 26)
|
|
|
|
buildToolsVersion safeExtGet('buildToolsVersion', '26.0.2')
|
2016-01-05 12:36:05 -08:00
|
|
|
|
|
|
|
defaultConfig {
|
2018-07-13 23:49:25 +04:30
|
|
|
minSdkVersion safeExtGet('minSdkVersion', 16)
|
|
|
|
targetSdkVersion safeExtGet('targetSdkVersion', 26)
|
2016-01-05 12:36:05 -08:00
|
|
|
}
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
2016-02-02 13:13:57 +02:00
|
|
|
warning 'InvalidPackage'
|
2016-01-05 12:36:05 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2017-12-31 13:49:39 -02:00
|
|
|
maven {
|
|
|
|
url 'https://maven.google.com'
|
|
|
|
}
|
|
|
|
maven { url "https://jitpack.io" }
|
2018-04-15 08:02:49 -03:00
|
|
|
maven {
|
|
|
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
|
|
url "$rootDir/../node_modules/react-native/android"
|
|
|
|
}
|
2016-01-05 12:36:05 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-04-15 08:02:49 -03:00
|
|
|
compileOnly 'com.facebook.react:react-native:+'
|
2018-05-21 17:47:32 -03:00
|
|
|
compileOnly 'com.facebook.infer.annotation:infer-annotation:+'
|
2018-06-13 09:07:45 +08:00
|
|
|
implementation "com.google.zxing:core:3.3.0"
|
2018-04-15 08:02:49 -03:00
|
|
|
implementation "com.drewnoakes:metadata-extractor:2.9.1"
|
2018-07-13 23:49:25 +04:30
|
|
|
implementation "com.google.android.gms:play-services-vision:${safeExtGet('googlePlayServicesVersion', '12.0.1')}"
|
|
|
|
implementation "com.android.support:exifinterface:${safeExtGet('supportLibVersion', '27.1.0')}"
|
|
|
|
implementation "com.android.support:support-annotations:${safeExtGet('supportLibVersion', '27.1.0')}"
|
|
|
|
implementation "com.android.support:support-v4:${safeExtGet('supportLibVersion', '27.1.0')}"
|
2016-01-05 12:36:05 -08:00
|
|
|
}
|