1 apply plugin: 'com.android.application'
7 applicationId "org.strongswan.android"
15 jni.srcDirs = [] // disables the default ndk-build call (with on-the-fly Android.mk files)
16 jniLibs.srcDir 'src/main/libs'
19 task buildNative(type: Exec) {
20 workingDir 'src/main/jni'
21 commandLine "${android.ndkDirectory}/ndk-build", '-j', Runtime.runtime.availableProcessors()
24 task cleanNative(type: Exec) {
25 workingDir 'src/main/jni'
26 commandLine "${android.ndkDirectory}/ndk-build", 'clean'
29 tasks.withType(JavaCompile) {
30 compileTask -> compileTask.dependsOn buildNative
31 options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
34 clean.dependsOn 'cleanNative'
39 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
43 targetCompatibility 1.8
44 sourceCompatibility 1.8
49 implementation 'com.android.support:appcompat-v7:26.0.2'
50 implementation 'com.android.support:design:26.0.2'
51 implementation 'com.android.support:preference-v7:26.0.2'
52 implementation 'com.android.support:support-v4:26.0.2'
53 testImplementation 'junit:junit:4.12'