Files
EasyLauncher/app/proguard-rules.pro
HeCodes2Much 414101d184 Fix: Fixed the porguard rules
Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
2024-07-17 13:50:36 +01:00

31 lines
1.3 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 all model classes and their fields that Gson might use for serialization/deserialization
-keep class com.github.droidworksstudio.launcher.helper.weather.** { *; }