-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (73 loc) · 1.75 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
}
}
apply plugin: 'com.android.library'
allprojects {
sourceCompatibility = 1.7
targetCompatibility = 1.7
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile 'com.google.protobuf:protobuf-java:3.4.0'
compile 'com.google.guava:guava:23.3-android'
testCompile 'junit:junit:4.12'
androidTestCompile 'com.android.support:support-annotations:24.0.0'
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'
}
task pythonBuild(type:Exec) {
commandLine "python/build.py"
}
task protobufBuild(type:Exec) {
commandLine "./build_proto.sh"
}
project.afterEvaluate {
preBuild.dependsOn pythonBuild
}
/*task pythonTests(type:Test) {
environment "FAST_MODE", "true"
commandLine "python/test/runall.py"
}*/
android {
compileSdkVersion 21
buildToolsVersion '25.0.0'
defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
lintOptions {
abortOnError false
}
dexOptions {
jumboMode = true
}
defaultConfig {
minSdkVersion 15
targetSdkVersion 21
versionCode 39
versionName "0.10.1"
externalNativeBuild {
cmake {
arguments "-DANDROID_PLATFORM=android-15", "-DANDROID_TOOLCHAIN=gcc"
}
}
ndk {
abiFilters 'x86', 'armeabi', 'mips'
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
sourceSets.main {
jniLibs.srcDirs 'src/main/libs'
}
}