Skip to content

Commit

Permalink
Resolved proguard-related serializable instance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
choiman1559 committed Jul 14, 2024
1 parent 7f34187 commit 284cfff
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable # Keep file names and line numbers.
-keep public class * extends java.lang.Exception # Optional: Keep custom exceptions.
-keep class com.noti.** implements java.io.Serializable { *; }
-keep class com.noti.** implements android.os.Parcelable { *; }

-keep public class com.google.firebase.** { *; }
-keep class com.google.auth.** { *; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.noti.main.service.backend;

import java.io.IOException;
import java.io.Serializable;
import java.util.Objects;

import me.pushy.sdk.lib.jackson.annotation.JsonProperty;
import me.pushy.sdk.lib.jackson.databind.ObjectMapper;

@SuppressWarnings("unused")
public class ResultPacket {
public class ResultPacket implements Serializable {
@JsonProperty
private String status;
@JsonProperty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
import com.noti.main.utils.network.CompressStringUtil;

import java.io.IOException;
import java.io.Serializable;

import me.pushy.sdk.lib.jackson.annotation.JsonProperty;
import me.pushy.sdk.lib.jackson.core.JsonProcessingException;
import me.pushy.sdk.lib.jackson.databind.ObjectMapper;

public class LiveNotificationData {
public class LiveNotificationData implements Serializable {
@JsonProperty
public long postTime;
@JsonProperty
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/other_preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
android:summary="Communication may fail depending on the server's configuration" />
<Preference
android:icon="@drawable/ic_info_outline_black_24dp"
android:key="EncryptionInfo"
android:key="backendOptionWarning"
android:summary="Changing options on these backend servers does not guarantee availability or reliability." />
<Preference
android:key="PingTestBackend"
Expand Down

0 comments on commit 284cfff

Please sign in to comment.