]>
Commit | Line | Data |
---|---|---|
a50f3037 TB |
1 | apply plugin: 'com.android.application' |
2 | ||
3 | android { | |
ef57913d | 4 | compileSdkVersion 28 |
a50f3037 TB |
5 | |
6 | defaultConfig { | |
7 | applicationId "org.strongswan.android" | |
8 | minSdkVersion 15 | |
ef57913d | 9 | targetSdkVersion 28 |
a5e43223 TB |
10 | versionCode 72 |
11 | versionName "2.3.0" | |
a50f3037 TB |
12 | } |
13 | ||
14 | sourceSets.main { | |
15 | jni.srcDirs = [] // disables the default ndk-build call (with on-the-fly Android.mk files) | |
16 | jniLibs.srcDir 'src/main/libs' | |
17 | } | |
18 | ||
19 | task buildNative(type: Exec) { | |
20 | workingDir 'src/main/jni' | |
21 | commandLine "${android.ndkDirectory}/ndk-build", '-j', Runtime.runtime.availableProcessors() | |
22 | } | |
23 | ||
24 | task cleanNative(type: Exec) { | |
25 | workingDir 'src/main/jni' | |
26 | commandLine "${android.ndkDirectory}/ndk-build", 'clean' | |
27 | } | |
28 | ||
29 | tasks.withType(JavaCompile) { | |
30 | compileTask -> compileTask.dependsOn buildNative | |
8e71dd9e | 31 | options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" |
a50f3037 TB |
32 | } |
33 | ||
34 | clean.dependsOn 'cleanNative' | |
35 | ||
36 | buildTypes { | |
37 | release { | |
38 | minifyEnabled false | |
39 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' | |
40 | } | |
41 | } | |
a5f56564 TB |
42 | compileOptions { |
43 | targetCompatibility 1.8 | |
44 | sourceCompatibility 1.8 | |
45 | } | |
a50f3037 | 46 | } |
3af7e092 TB |
47 | |
48 | dependencies { | |
2ee1c6b1 TB |
49 | implementation 'androidx.appcompat:appcompat:1.1.0' |
50 | implementation 'androidx.preference:preference:1.1.0' | |
3b9696fc TB |
51 | implementation 'androidx.legacy:legacy-support-v4:1.0.0' |
52 | implementation 'com.google.android.material:material:1.0.0' | |
4bb0a589 | 53 | testImplementation 'junit:junit:4.12' |
84924249 TB |
54 | testImplementation 'org.mockito:mockito-core:2.28.2' |
55 | testImplementation 'org.powermock:powermock-core:2.0.2' | |
56 | testImplementation 'org.powermock:powermock-module-junit4:2.0.2' | |
57 | testImplementation 'org.powermock:powermock-api-mockito2:2.0.2' | |
3af7e092 | 58 | } |