80aeb406af
Service code cleanup. Kivy dependency eliminated. File and stdout logging working properly.
59 lines
No EOL
1.7 KiB
Groovy
59 lines
No EOL
1.7 KiB
Groovy
apply plugin: 'com.android.model.application'
|
|
|
|
model {
|
|
android {
|
|
compileSdkVersion {{ args.sdk_version }}
|
|
buildToolsVersion "23.0.3"
|
|
|
|
defaultConfig {
|
|
applicationId "{{ args.package }}"
|
|
minSdkVersion.apiLevel {{ args.min_sdk_version }}
|
|
targetSdkVersion.apiLevel {{ args.sdk_version }}
|
|
versionCode {{ args.numeric_version }}
|
|
versionName "{{ args.version }}"
|
|
|
|
buildConfigFields {
|
|
create() {
|
|
type "int"
|
|
name "VALUE"
|
|
value "1"
|
|
}
|
|
}
|
|
}
|
|
ndk {
|
|
abiFilters.add("armeabi-v7a")
|
|
moduleName = "main"
|
|
toolchain = "gcc"
|
|
toolchainVersion = "4.9"
|
|
platformVersion = 16
|
|
stl = "gnustl_shared"
|
|
renderscriptNdkMode = false
|
|
CFlags.add("-I" + file("src/main/jni/include/python2.7"))
|
|
ldFlags.add("-L" + file("src/main/jni/lib"))
|
|
ldLibs.addAll(["log", "python2.7"])
|
|
}
|
|
// Configures source set directory.
|
|
sources {
|
|
main {
|
|
jniLibs {
|
|
dependencies {
|
|
library "gnustl_shared"
|
|
// add pre-built libraries here and locate them below:
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
repositories {
|
|
libs(PrebuiltLibraries) {
|
|
gnustl_shared {
|
|
binaries.withType(SharedLibraryBinary) {
|
|
sharedLibraryFile = file("src/main/jniLibs/${targetPlatform.getName()}/libgnustl_shared.so")
|
|
}
|
|
}
|
|
// more here
|
|
}
|
|
}
|
|
}
|
|
|
|
// normal project dependencies here |