Adopt the cc.tiredsysadmin namespace and a Makefile entrypoint (v0.22.0)

Brings the project in line with CLAUDE.md:

- Application id / namespace is now cc.tiredsysadmin.android.sizzle
  (cc.tiredsysadmin.<os>.<application>), including the two JNI symbols in
  native_audio.cpp — JNI resolves by mangled package path, so renaming the
  package alone would fail at runtime, not at build time.
- Versions move to versions.properties at the repo root, read by both Gradle
  and the Makefile, with slots for the other platforms. The release APK name
  now derives from applicationId instead of being spelled out.
- Makefile becomes the build/publish entrypoint: atomic targets with real
  dependencies (deps, check, staging, release, install, dist, bump-*), and a
  manual-only publish split into publish-apk / publish-metadata, which also
  regenerates the F-Droid metadata from versions.properties.
- Annotate the two lint errors in MainActivity that this surfaced
  (ComponentActivity.dispatchKeyEvent's LIBRARY_GROUP_PREFIX restriction,
  media3's UnstableApi) so `make check` is green rather than advisory.
- Document identity, versioning, build types and publishing in the handover
  doc; point the README at make.

NOTE: the id change makes this a different app to Android and to F-Droid.
Installs of space.rcmd.android.sizzle will not be upgraded by it and will sit
side by side with the new one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Reactorcoremeltdown
2026-11-03 16:54:48 +01:00
co-authored by Claude Opus 5
parent 924b84a4d5
commit fdee7853e5
85 changed files with 734 additions and 385 deletions
+16 -6
View File
@@ -1,14 +1,24 @@
// Build configuration for the single application module. This is where we turn
// on Compose, set the min/target Android versions, and list dependencies.
import java.util.Properties
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.compose)
}
// Versions live in //versions.properties so the Makefile and Gradle can never
// disagree about what is being built or what the published APK is called.
val appVersions = Properties().apply {
rootProject.file("versions.properties").inputStream().use { load(it) }
}
val appVersionName: String = appVersions.getProperty("android.versionName").trim()
val appVersionCode: Int = appVersions.getProperty("android.versionCode").trim().toInt()
android {
namespace = "space.rcmd.android.sizzle"
namespace = "cc.tiredsysadmin.android.sizzle"
compileSdk = 34
// Native (Oboe) low-latency output backend; see src/main/cpp.
@@ -17,13 +27,13 @@ android {
ndkVersion = "27.2.12479018"
defaultConfig {
applicationId = "space.rcmd.android.sizzle"
applicationId = "cc.tiredsysadmin.android.sizzle"
// minSdk 26 (Android 8.0) is the floor for the native MIDI API
// (android.media.midi) and AAudio low-latency audio we rely on.
minSdk = 26
targetSdk = 34
versionCode = 48
versionName = "0.21.1"
versionCode = appVersionCode
versionName = appVersionName
// We provide our own instrumentation runner if/when tests are added.
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
@@ -87,7 +97,7 @@ android {
}
// Give the release APK a predictable, versionCode-stamped name so it drops straight
// into the private F-Droid repo: space.rcmd.android.sizzle_<versionCode>.apk. Uses
// into the private F-Droid repo: cc.tiredsysadmin.android.sizzle_<versionCode>.apk. Uses
// the legacy variant API (the Kotlin-DSL `android {}` receiver doesn't expose it).
(extensions.getByName("android") as com.android.build.gradle.AbstractAppExtension)
.applicationVariants.all {
@@ -95,7 +105,7 @@ android {
val vc = versionCode
outputs.all {
(this as com.android.build.gradle.internal.api.BaseVariantOutputImpl)
.outputFileName = "space.rcmd.android.sizzle_$vc.apk"
.outputFileName = "${applicationId}_$vc.apk"
}
}
}