forked from shifeng1993/react-native-qr-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (42 loc) · 992 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import groovy.json.JsonSlurper
def computeVersionName() {
// dynamically retrieve version from package.json
def slurper = new JsonSlurper()
def json = slurper.parse(file('../package.json'), "utf-8")
return json.version
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.+'
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 26
buildToolsVersion "26.0.3"
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName computeVersionName()
}
lintOptions {
abortOnError false
}
}
repositories {
mavenCentral()
maven {
url "$projectDir/../Example/node_modules/react-native/android"
}
maven {
url "$projectDir/../../react-native/android"
}
}
dependencies {
compile 'com.facebook.react:react-native:+'
compile 'com.google.zxing:core:3.3.2'
}