mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-04 00:14:29 +02:00

* build: update libraries * ci: remove android workflow --------- Co-authored-by: auth <64337177+authorisation@users.noreply.github.com> Co-authored-by: rhunk <101876869+rhunk@users.noreply.github.com>
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
plugins {
|
|
alias(libs.plugins.androidLibrary)
|
|
alias(libs.plugins.kotlinAndroid)
|
|
}
|
|
|
|
val nativeName = rootProject.ext.get("buildHash")
|
|
|
|
android {
|
|
namespace = rootProject.ext["applicationId"].toString() + ".nativelib"
|
|
compileSdk = 34
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
|
|
defaultConfig {
|
|
buildConfigField("String", "NATIVE_NAME", "\"$nativeName\"")
|
|
packaging {
|
|
jniLibs {
|
|
excludes += "**/libdobby.so"
|
|
}
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
arguments += listOf(
|
|
"-DOBFUSCATED_NAME=$nativeName",
|
|
"-DBUILD_NAMESPACE=${namespace!!.replace(".", "/")}"
|
|
)
|
|
}
|
|
ndk {
|
|
//noinspection ChromeOsAbiSupport
|
|
abiFilters += properties["debug_abi_filters"]?.toString()?.split(",")
|
|
?: listOf("arm64-v8a", "armeabi-v7a")
|
|
}
|
|
}
|
|
}
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
path("jni/CMakeLists.txt")
|
|
version = "3.22.1"
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
} |