]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/frontends/android/app/build.gradle
android: New release after fixing cancelling connecting on older systems
[thirdparty/strongswan.git] / src / frontends / android / app / build.gradle
1 apply plugin: 'com.android.application'
2
3 android {
4 compileSdkVersion 26
5 buildToolsVersion '27.0.3'
6
7 defaultConfig {
8 applicationId "org.strongswan.android"
9 minSdkVersion 15
10 targetSdkVersion 26
11 versionCode 56
12 versionName "2.0.0"
13 }
14
15 sourceSets.main {
16 jni.srcDirs = [] // disables the default ndk-build call (with on-the-fly Android.mk files)
17 jniLibs.srcDir 'src/main/libs'
18 }
19
20 task buildNative(type: Exec) {
21 workingDir 'src/main/jni'
22 commandLine "${android.ndkDirectory}/ndk-build", '-j', Runtime.runtime.availableProcessors()
23 }
24
25 task cleanNative(type: Exec) {
26 workingDir 'src/main/jni'
27 commandLine "${android.ndkDirectory}/ndk-build", 'clean'
28 }
29
30 tasks.withType(JavaCompile) {
31 compileTask -> compileTask.dependsOn buildNative
32 options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
33 }
34
35 clean.dependsOn 'cleanNative'
36
37 buildTypes {
38 release {
39 minifyEnabled false
40 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
41 }
42 }
43 compileOptions {
44 targetCompatibility 1.8
45 sourceCompatibility 1.8
46 }
47 }
48
49 dependencies {
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'
55 }