Skip to content
This repository was archived by the owner on Mar 1, 2022. It is now read-only.

Commit e4a4ded

Browse files
author
João Pedro Evangelista
committed
Proguard, fixed searchview obfuscation problem generating NPE since it a string reference on the xml
1 parent f21be8c commit e4a4ded

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

mobile/proguard-rules.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,6 @@
107107
-keepclasseswithmembers class * {
108108
@retrofit2.http.* <methods>;
109109
}
110+
111+
# SearchView v7
112+
-keep class android.support.v7.widget.SearchView { *; }

mobile/src/main/java/com/wakatime/android/dashboard/model/Wrapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@
99
public class Wrapper<T> {
1010

1111
private T data;
12+
13+
private String message;
1214
}

mobile/src/main/res/raw/keep.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources xmlns:tools="http://schemas.android.com/tools"
3+
tools:keep="@menu/menu_search"
4+
/>

0 commit comments

Comments
 (0)