forked from cossacklabs/themis
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
47 lines (38 loc) · 1.01 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
apply plugin: 'com.android.library'
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
dependencies {
implementation project(":boringssl")
}
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
minSdkVersion 16
targetSdkVersion 16
}
sourceSets {
main {
java.srcDirs = ['src/wrappers/themis/java']
manifest.srcFile 'src/wrappers/themis/android/AndroidManifest.xml'
jniLibs.srcDirs = ['libs']
}
androidTest.setRoot('tests/themis/wrappers/android')
androidTest.java.srcDirs = ['tests/themis/wrappers/android']
androidTest.manifest.srcFile 'tests/themis/wrappers/android/AndroidManifest.xml'
}
// ensure we execute boringssl tasks first
tasks.whenTaskAdded({Task task -> task.dependsOn('boringssl:' + task.name)})
externalNativeBuild {
ndkBuild {
path "jni/Android.mk"
}
}
}