1 apply plugin: 'com.android.application'
5 buildToolsVersion "23.0.3"
8 applicationId "org.strongswan.android"
16 jni.srcDirs = [] // disables the default ndk-build call (with on-the-fly Android.mk files)
17 jniLibs.srcDir 'src/main/libs'
20 task buildNative(type: Exec) {
21 workingDir 'src/main/jni'
22 commandLine "${android.ndkDirectory}/ndk-build", '-j', Runtime.runtime.availableProcessors()
25 task cleanNative(type: Exec) {
26 workingDir 'src/main/jni'
27 commandLine "${android.ndkDirectory}/ndk-build", 'clean'
30 tasks.withType(JavaCompile) {
31 compileTask -> compileTask.dependsOn buildNative
32 options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
35 clean.dependsOn 'cleanNative'
40 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
46 compile 'com.android.support:appcompat-v7:23.3.0'
47 compile 'com.android.support:design:23.3.0'
48 testCompile 'junit:junit:4.12'