1 apply plugin: 'com.android.application'
5 buildToolsVersion '27.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'
44 targetCompatibility 1.8
45 sourceCompatibility 1.8
50 implementation 'com.android.support:appcompat-v7:26.0.2'
51 implementation 'com.android.support:design:26.0.2'
52 implementation 'com.android.support:preference-v7:26.0.2'
53 implementation 'com.android.support:support-v4:26.0.2'
54 testImplementation 'junit:junit:4.12'