apply plugin: 'com.android.application'
android {
- compileSdkVersion 33
-
namespace 'org.strongswan.android'
defaultConfig {
applicationId "org.strongswan.android"
+ compileSdk 34
minSdkVersion 21
targetSdkVersion 33
versionCode 80
versionName "2.4.2"
- }
- sourceSets.main {
- jniLibs.srcDir 'src/main/libs'
+ externalNativeBuild {
+ ndkBuild {
+ arguments '-j' + Runtime.runtime.availableProcessors()
+ }
+ }
}
- task buildNative(type: Exec) {
- workingDir 'src/main/jni'
- commandLine "${android.ndkDirectory}/ndk-build", '-j', Runtime.runtime.availableProcessors()
- }
+ ndkVersion "26.1.10909125"
- task cleanNative(type: Exec) {
- workingDir 'src/main/jni'
- commandLine "${android.ndkDirectory}/ndk-build", 'clean'
+ externalNativeBuild {
+ ndkBuild {
+ path 'src/main/jni/Android.mk'
+ }
}
- tasks.withType(JavaCompile) {
- compileTask -> compileTask.dependsOn buildNative
- options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
+ tasks.withType(JavaCompile).configureEach {
+ compileTask ->
+ options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
- clean.dependsOn 'cleanNative'
-
buildTypes {
release {
minifyEnabled false
}
dependencies {
- implementation 'androidx.appcompat:appcompat:1.4.2'
- implementation 'androidx.preference:preference:1.2.0'
+ implementation 'androidx.appcompat:appcompat:1.6.1'
+ implementation 'androidx.preference:preference:1.2.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
- implementation 'com.google.android.material:material:1.6.1'
+ implementation 'com.google.android.material:material:1.10.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:3.11.2'
testImplementation 'org.powermock:powermock-core:2.0.9'
-android.enableJetifier=true
-android.useAndroidX=true
\ No newline at end of file
+android.enableJetifier=false
+android.nonFinalResIds=false
+android.nonTransitiveRClass=false
+android.useAndroidX=true