fix: fdroid device hardware fallback using bundled JSON for incomplete cache entries (#3844)

This commit is contained in:
Mac DeCourcy 2025-11-28 12:45:22 -08:00 committed by GitHub
parent d1e7bd1ad5
commit 5a413d07e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 61 additions and 13 deletions

View file

@ -30,10 +30,14 @@ import javax.inject.Inject
*/
class FdroidPlatformAnalytics @Inject constructor() : PlatformAnalytics {
init {
// For F-Droid builds we don't initialize external analytics services.
// In debug builds we attach a DebugTree for convenient local logging.
if (BuildConfig.DEBUG) {
Timber.plant(Timber.DebugTree())
Timber.i("F-Droid platform no-op analytics initialized (DebugTree planted).")
} else {
Timber.i("F-Droid platform no-op analytics initialized.")
}
Timber.i("F-Droid platform no-op analytics initialized.")
}
override fun setDeviceAttributes(firmwareVersion: String, model: String) {