mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
Brings in libnativedecoderjni.so for arm64-v8a (from Iu-yang1/Look4Sat-FT4, the Morse Expert 1.15 official Play arm64 split) and lifts the ABI pin from armeabi-v7a-only to armeabi-v7a + arm64-v8a in both feature/cw and app. 64-bit devices now load the native decoder natively instead of falling back to ARM32 (or crashing when the arm64 lib was missing).
41 lines
1.4 KiB
Kotlin
41 lines
1.4 KiB
Kotlin
import java.io.FileInputStream
|
|
import java.util.Properties
|
|
|
|
plugins {
|
|
alias(libs.plugins.convention.applicationPlugin)
|
|
}
|
|
|
|
// Release signing credentials live in local.properties (gitignored) or
|
|
// environment variables — never hardcode passwords in VCS.
|
|
val releaseProps = Properties().apply {
|
|
val propsFile = rootProject.file("local.properties")
|
|
if (propsFile.exists()) FileInputStream(propsFile).use { load(it) }
|
|
}
|
|
fun releaseCred(name: String): String =
|
|
releaseProps.getProperty(name) ?: System.getenv(name) ?: ""
|
|
|
|
android {
|
|
namespace = libs.versions.packageName.get()
|
|
defaultConfig {
|
|
applicationId = "cn.ba7opf.look4sat"
|
|
// CW decoder ships for both ABIs (see feature/cw jniLibs); the APK must
|
|
// not be pinned to 32-bit only or 64-bit devices fall back to ARM32.
|
|
ndk {
|
|
abiFilters.add("armeabi-v7a")
|
|
abiFilters.add("arm64-v8a")
|
|
}
|
|
}
|
|
signingConfigs {
|
|
create("release") {
|
|
storeFile = file(System.getProperty("user.home") + "/my-release-key.jks")
|
|
storePassword = releaseCred("RELEASE_STORE_PASSWORD")
|
|
keyAlias = releaseCred("RELEASE_KEY_ALIAS").ifEmpty { "look4sat" }
|
|
keyPassword = releaseCred("RELEASE_KEY_PASSWORD")
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
signingConfig = signingConfigs.getByName("release")
|
|
}
|
|
}
|
|
} |