update checker: finds new releases, downloads and installs them

Checks GitHub's latest release once a day when the app opens and after a
drive. A new version shows as a card on Home, a notification after the
drive, and a card on the car screen at plug-in while parked. Downloads are
checked against GitHub's SHA-256 and never install while the car is
connected. Update notifications can be turned off in Settings.
This commit is contained in:
Seb3thehacker committed 2026-10-06 00:06:06 -07:00
1 parent 9620dab758
commit 17534d5784
10 files changed
+535 -3

No files matched your search

+2 -1
View File
@@ -33,7 +33,8 @@ android {
minSdk = 31
targetSdk = 37
versionCode = 8
versionName = "0.2.00-alpha"
// -PgearslipVersionName=0.1.99-test makes a build that thinks it's older, to try the updater.
versionName = project.findProperty("gearslipVersionName")?.toString() ?: "0.2.00-alpha"
manifestPlaceholders["appLabel"] = "Gearslip"
// Where opted-in phones send their daily usage note: the stats-worker/ Worker's address,
// set as gearslipStatsUrl in gradle.properties. Left empty, nothing is ever sent.