Appendix A: Example build.grade
1
apply plugin: 'com.android.application'
2
3
repositories {
4
maven {
5
url 'https://leiainc.jfrog.io/leiainc/gradle-release-local'
6
}
7
}
8
9
android {
10
compileSdkVersion 23
11
defaultConfig {
12
applicationId 'com.sample.teapot'
13
minSdkVersion 23
14
targetSdkVersion 23
15
ndk {
16
abiFilters 'armeabi-v7a', 'arm64-v8a'
17
}
18
externalNativeBuild {
19
cmake {
20
cppFlags "-std=c++11 -stdlib=libc++ -O2"
21
arguments '-DANDROID_PLATFORM=android-21',
22
'-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_static'
23
}
24
}
25
}
26
buildTypes {
27
release {
28
minifyEnabled = false
29
proguardFiles getDefaultProguardFile('proguard-android.txt'),
30
'proguard-rules.pro'
31
}
32
}
33
externalNativeBuild {
34
cmake {
35
path 'src/main/cpp/CMakeLists.txt'
36
}
37
}
38
sourceSets {
39
main {
40
jniLibs.srcDirs = ['./../distribution/leia_sdk/lib']
41
}
42
}
43
}
44
dependencies {
45
compile 'com.android.support:appcompat-v7:23.4.0'
46
compile 'com.android.support.constraint:constraint-layout:1.0.2'
47
48
compile 'com.leia:display:6.1.1'
49
}
Copied!
Last modified 1yr ago
Copy link