Files
EasyLauncher/app/proguard-rules.pro
jonas 44d7e81801
Some checks failed
Android Main Branch CI / Build, Sign & Upload (push) Has been cancelled
Update CHANGELOG.md / changelog (push) Has been cancelled
Validate Gradle Wrapper / Validation (push) Has been cancelled
Android Release CI / Build, Sign & Release (push) Has been cancelled
Nightly Release / release (push) Has been cancelled
Nightly Release / Build, Sign & Release (push) Has been cancelled
Delete Unused Caches / delete (push) Has been cancelled
Close Inactive Issues & Pull Requests / close-issues (push) Has been cancelled
GitHub Actions Version Updater / build (push) Has been cancelled
fix(weather): keep met-weather DTOs from R8 so Gson works; add +4h reading (v0.3.8)
- ProGuard keep rule for dk.haugesenspil.metweather.** (R8 was obfuscating the
  Gson DTOs -> ClassCastException, weather glyph vanished).
- Home current-weather now shows 'current  ->  ~4h' (nearest MET hourly point),
  cached in met_weather_prefs.
release build v0.3.8
2026-08-20 13:19:21 +02:00

34 lines
1.4 KiB
Prolog

# Keep Gson specific annotations
-keepattributes Signature
-keepattributes *Annotation*
# Keep the default constructor of the data classes
-keepclassmembers class com.github.droidworksstudio.launcher.helper.weather.** {
public <init>(...);
}
# Preserve generic type information used in Gson TypeToken
-keep class com.google.gson.reflect.TypeToken {*;}
-keepattributes Signature
# Preserve classes used by Gson
-keep class com.google.gson.** { *; }
# Preserve your package classes, replace 'my.package.name' with your actual package name
-keep class com.github.droidworksstudio.** { *; }
# Keep PreferenceHelper class if it uses Gson serialization/deserialization
-keep class com.github.droidworksstudio.launcher.helper.PreferenceHelper { *; }
# Keep the WeatherResponse and its nested classes
-keep class com.github.droidworksstudio.launcher.helper.weather.WeatherResponse { *; }
-keep class com.github.droidworksstudio.launcher.helper.weather.Wind { *; }
-keep class com.github.droidworksstudio.launcher.helper.weather.Main { *; }
-keep class com.github.droidworksstudio.launcher.helper.weather.Weather { *; }
# Keep the shared met-weather library classes (Gson DTOs must keep field names)
-keep class dk.haugesenspil.metweather.** { *; }
# Keep all model classes and their fields that Gson might use for serialization/deserialization
-keep class com.github.droidworksstudio.launcher.helper.weather.** { *; }