Library folder setting + title-time restore + notification heads-up/lockscreen + version stamp

- Settings: editable Library folder (blank = default Music/Recordings);
  bad/unusable paths keep previous folder, Current path shown, toast on update/reset
- Repository: refreshRoot never resets behind user; migrateRestoreTimes()
  restores HH-mm from createdAt for date-only titles, handles (2) collisions, once
- Notification: fresh v2 channel IMPORTANCE_HIGH (banner on record start),
  PRIVATE + publicVersion for secure lockscreen (single mic row, no pills)
- Build: versionCode = git commit count, versionName 0.1.<count>
- README: library folder note
- Tests: LibraryRootTest, TitleRestoreTest, updated layout + settings tests
This commit is contained in:
avi 2026-09-15 10:41:17 -05:00
commit 5235707de5
12 changed files with 359 additions and 29 deletions

View file

@ -14,8 +14,14 @@ android {
applicationId = "com.shonar"
minSdk = 26
targetSdk = 35
versionCode = 1
versionName = "0.1.0"
// Every iteration stamps its version: code = commit count (monotonic),
// name carries it. Falls back to 1 when git is unavailable.
val gitCount = runCatching {
providers.exec { commandLine("git", "rev-list", "--count", "HEAD") }
.standardOutput.asText.get().trim().toInt()
}.getOrDefault(1)
versionCode = gitCount
versionName = "0.1.$gitCount"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}