2015-10-22 15:18:14 +00:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2019-08-13 12:16:11 +00:00
|
|
|
compileSdkVersion 28
|
2015-10-22 15:18:14 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.strongswan.android"
|
|
|
|
minSdkVersion 15
|
2019-08-13 12:16:11 +00:00
|
|
|
targetSdkVersion 28
|
2019-04-16 13:58:31 +00:00
|
|
|
versionCode 64
|
|
|
|
versionName "2.1.1"
|
2015-10-22 15:18:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets.main {
|
|
|
|
jni.srcDirs = [] // disables the default ndk-build call (with on-the-fly Android.mk files)
|
|
|
|
jniLibs.srcDir 'src/main/libs'
|
|
|
|
}
|
|
|
|
|
|
|
|
task buildNative(type: Exec) {
|
|
|
|
workingDir 'src/main/jni'
|
|
|
|
commandLine "${android.ndkDirectory}/ndk-build", '-j', Runtime.runtime.availableProcessors()
|
|
|
|
}
|
|
|
|
|
|
|
|
task cleanNative(type: Exec) {
|
|
|
|
workingDir 'src/main/jni'
|
|
|
|
commandLine "${android.ndkDirectory}/ndk-build", 'clean'
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
compileTask -> compileTask.dependsOn buildNative
|
2016-04-12 15:43:39 +00:00
|
|
|
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
2015-10-22 15:18:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
clean.dependsOn 'cleanNative'
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
|
|
|
}
|
|
|
|
}
|
2018-06-14 16:13:44 +00:00
|
|
|
compileOptions {
|
|
|
|
targetCompatibility 1.8
|
|
|
|
sourceCompatibility 1.8
|
|
|
|
}
|
2015-10-22 15:18:14 +00:00
|
|
|
}
|
2015-11-11 18:35:33 +00:00
|
|
|
|
|
|
|
dependencies {
|
2019-08-13 13:01:31 +00:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.0.0'
|
|
|
|
implementation 'androidx.preference:preference:1.0.0'
|
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
|
|
implementation 'com.google.android.material:material:1.0.0'
|
2018-06-04 10:09:32 +00:00
|
|
|
testImplementation 'junit:junit:4.12'
|
2015-11-11 18:35:33 +00:00
|
|
|
}
|