mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-28 11:58:23 +01:00
Fix proguard for gson. Fix multireddit's info cannot be updated in minifiedRelease. Version 4.0.7.
This commit is contained in:
parent
ff49660cf7
commit
7911f4f381
@ -6,8 +6,8 @@ android {
|
||||
applicationId "ml.docilealligator.infinityforreddit"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
versionCode 42
|
||||
versionName "4.0.6"
|
||||
versionCode 43
|
||||
versionName "4.0.7"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
javaCompileOptions {
|
||||
annotationProcessorOptions {
|
||||
|
2
app/proguard-rules.pro
vendored
2
app/proguard-rules.pro
vendored
@ -63,6 +63,8 @@
|
||||
|
||||
# Application classes that will be serialized/deserialized over Gson
|
||||
-keep class ml.docilealligator.infinityforreddit.CustomTheme.CustomTheme { <fields>; }
|
||||
-keep class ml.docilealligator.infinityforreddit.MultiReddit.MultiRedditJSONModel { <fields>; }
|
||||
-keep class ml.docilealligator.infinityforreddit.MultiReddit.SubredditInMultiReddit { <fields>; }
|
||||
|
||||
# Prevent proguard from stripping interface information from TypeAdapter, TypeAdapterFactory,
|
||||
# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
|
||||
|
@ -35,14 +35,4 @@ public class MultiRedditJSONModel {
|
||||
Gson gson = new Gson();
|
||||
return gson.toJson(this);
|
||||
}
|
||||
|
||||
class SubredditInMultiReddit {
|
||||
String name;
|
||||
|
||||
SubredditInMultiReddit() {}
|
||||
|
||||
SubredditInMultiReddit(String subredditName) {
|
||||
name = subredditName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,11 @@
|
||||
package ml.docilealligator.infinityforreddit.MultiReddit;
|
||||
|
||||
public class SubredditInMultiReddit {
|
||||
String name;
|
||||
|
||||
SubredditInMultiReddit() {}
|
||||
|
||||
SubredditInMultiReddit(String subredditName) {
|
||||
name = subredditName;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user