mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 01:38:18 +00:00
57 lines
1.6 KiB
Groovy
Executable File
57 lines
1.6 KiB
Groovy
Executable File
def safeExtGet(prop, fallback) {
|
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
google()
|
|
maven {
|
|
url 'https://maven.google.com'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.0.0'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion safeExtGet('compileSdkVersion', 26)
|
|
buildToolsVersion safeExtGet('buildToolsVersion', '26.0.2')
|
|
|
|
defaultConfig {
|
|
minSdkVersion safeExtGet('minSdkVersion', 16)
|
|
targetSdkVersion safeExtGet('targetSdkVersion', 26)
|
|
}
|
|
lintOptions {
|
|
abortOnError false
|
|
warning 'InvalidPackage'
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
url 'https://maven.google.com'
|
|
}
|
|
maven { url "https://jitpack.io" }
|
|
maven {
|
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
url "$rootDir/../node_modules/react-native/android"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly 'com.facebook.react:react-native:+'
|
|
compileOnly 'com.facebook.infer.annotation:infer-annotation:+'
|
|
implementation "com.google.zxing:core:3.3.0"
|
|
implementation "com.drewnoakes:metadata-extractor:2.9.1"
|
|
implementation "com.google.android.gms:play-services-vision:${safeExtGet('googlePlayServicesVersion', '15.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')}"
|
|
}
|