Signal Station for Android: source archive

Version: 0.9.8 (30)
Source revision: recorded in SOURCE_REVISION.txt.
Android package: com.lukesteuber.signalstation

Licenses
The app is built from three Gradle projects: signalApp, signal and localmodels. That code is under the
MIT License (LICENSE-MIT; each of the three directories carries a copy). The app contains no Core Devices
code. NOTICE.md lists the third-party libraries and the speech model the app bundles, with their terms.

This archive is the whole repository, so it also holds the Core Devices mobile app source the repository
grew from. That source is under GPLv3 (LICENSE) and is not part of the Signal Station app. LICENSING.md
explains which builds are which.

The archive contains no signing key and no provider key.

Build
Use Android SDK 37, build-tools 36.0.0 or later, and JDK 17. Set ANDROID_HOME and JAVA_HOME. Gradle
resolves dependencies from the repositories in settings.gradle.kts. The build downloads the Vosk English
model and checks it against a pinned SHA-256.

The parent build reads a version from Git, so make a local snapshot first:

  git init
  git add --all
  git -c user.name='Local builder' -c user.email='builder@localhost' commit -m 'Source snapshot'
  git tag 1.12.0.1
  ./gradlew :signalApp:assembleDebug --no-configuration-cache

Output: signalApp/build/outputs/apk/debug/signalApp-debug.apk, signed with your local debug key.

The published APK is the release variant, signed with a key that is not in this archive. To build that
variant with a key of your own, set SIGNAL_STATION_RELEASE_STORE_FILE, SIGNAL_STATION_RELEASE_STORE_PASSWORD,
SIGNAL_STATION_RELEASE_KEY_ALIAS and SIGNAL_STATION_RELEASE_KEY_PASSWORD and run:

  ./gradlew :signalApp:assembleRelease --no-configuration-cache

Add -PsignalPlay=true for the Google Play variant, which leaves out Health Connect and the links to the
download page.

Android installs a build signed with a different key only after the installed one is removed, and removing
it deletes the app's saved data. Builds before 0.9.6 (28) were signed with the Android debug key and must
be uninstalled once before a later build installs.

To regenerate the in-app third-party notices after changing dependencies:

  ./gradlew :signalApp:dependencies --configuration releaseRuntimeClasspath --console=plain > deps.txt
  python3 scripts/signal_notices.py deps.txt

Watch app
The separate watch source archive contains package.json, wscript, C source, resources and notices. Build
it with Pebble SDK 4.33.1 using `pebble build`. It names com.lukesteuber.signalstation as its companion.
The watch app is still in testing.

Read SIGNAL_STATION_GUIDE.md for recording sessions, local memory and Health Connect.
