File tree Expand file tree Collapse file tree 6 files changed +46
-0
lines changed
src/main/java/dev/utils/app Expand file tree Collapse file tree 6 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1919# If you keep the line number information, uncomment this to
2020# hide the original source file name.
2121#-renamesourcefileattribute SourceFile
22+
23+ -dontwarn android.support.**
24+
25+ # Understand the @Keep support annotation.
26+ -keep class android.support.annotation.Keep
27+
28+ -keep @android.support.annotation.Keep class * {*;}
29+
30+ -keepclasseswithmembers class * {
31+ @android.support.annotation.Keep <methods>;
32+ }
33+
34+ -keepclasseswithmembers class * {
35+ @android.support.annotation.Keep <fields>;
36+ }
37+
38+ -keepclasseswithmembers class * {
39+ @android.support.annotation.Keep <init>(...);
40+ }
Original file line number Diff line number Diff line change 55import android .content .pm .PackageInfo ;
66import android .content .pm .PackageManager ;
77import android .content .pm .Signature ;
8+ import android .support .annotation .Keep ;
89import android .text .TextUtils ;
910import android .text .format .Formatter ;
1011
@@ -32,10 +33,13 @@ public final class ApkInfoItem {
3233 // 日志Tag
3334 private static final String TAG = ApkInfoItem .class .getSimpleName ();
3435 // Apk 文件地址
36+ @ Keep
3537 private String apkUri ;
3638 // App 信息实体类
39+ @ Keep
3740 private AppInfoBean appInfoBean ;
3841 // App 参数集
42+ @ Keep
3943 private List <KeyValueBean > listKeyValues = new ArrayList <>();
4044
4145 private ApkInfoItem (){
Original file line number Diff line number Diff line change 44import android .content .pm .PackageInfo ;
55import android .content .pm .PackageManager ;
66import android .graphics .drawable .Drawable ;
7+ import android .support .annotation .Keep ;
78
89import dev .DevUtils ;
910import dev .utils .LogPrintUtils ;
@@ -20,26 +21,37 @@ public class AppInfoBean {
2021 // 日志Tag
2122 private static final String TAG = AppInfoBean .class .getSimpleName ();
2223 // App 包名
24+ @ Keep
2325 private String appPackName ;
2426 // App 名
27+ @ Keep
2528 private String appName ;
2629 // App 图标
30+ @ Keep
2731 private transient Drawable appIcon ;
2832 // App 类型
33+ @ Keep
2934 private AppType appType ;
3035 // 获取版本号
36+ @ Keep
3137 private int versionCode ;
3238 // 获取版本名
39+ @ Keep
3340 private String versionName ;
3441 // App 首次安装时间
42+ @ Keep
3543 private long firstInstallTime ;
3644 // 获取最后一次更新时间
45+ @ Keep
3746 private long lastUpdateTime ;
3847 // 获取 App 地址
48+ @ Keep
3949 private String sourceDir ;
4050 // Apk 大小
51+ @ Keep
4152 private long apkSize ;
4253 // 申请的权限
54+ @ Keep
4355 private String [] apkPermissionsArys ;
4456
4557 /**
Original file line number Diff line number Diff line change 33import android .content .Context ;
44import android .content .pm .PackageInfo ;
55import android .content .pm .PackageManager ;
6+ import android .support .annotation .Keep ;
67import android .text .TextUtils ;
78import android .text .format .Formatter ;
89
2627public final class AppInfoItem {
2728
2829 // App 信息实体类
30+ @ Keep
2931 private AppInfoBean appInfoBean ;
3032 // App 参数集
33+ @ Keep
3134 private List <KeyValueBean > listKeyValues = new ArrayList <>();
3235
3336 private AppInfoItem (){
Original file line number Diff line number Diff line change 11package dev .utils .app .info ;
22
3+ import android .support .annotation .Keep ;
34import android .support .annotation .StringRes ;
45
56import dev .DevUtils ;
1112public class KeyValueBean {
1213
1314 // 键 - 提示
15+ @ Keep
1416 protected String key = "" ;
1517 // 值 - 参数值
18+ @ Keep
1619 protected String value = "" ;
1720
1821 /**
Original file line number Diff line number Diff line change 33import android .net .wifi .ScanResult ;
44import android .os .Parcel ;
55import android .os .Parcelable ;
6+ import android .support .annotation .Keep ;
67
78import java .util .ArrayList ;
89import java .util .List ;
@@ -18,12 +19,16 @@ public class WifiVo implements Parcelable {
1819 // 日志TAG
1920 private static final String TAG = WifiVo .class .getSimpleName ();
2021 /** wifi SSID */
22+ @ Keep
2123 public String wSSID = null ;
2224 /** wifi 密码 */
25+ @ Keep
2326 public String wPwd = null ;
2427 /** wifi 加密类型 */
28+ @ Keep
2529 public int wType = WifiUtils .NOPWD ;
2630 /** wifi 信号等级 */
31+ @ Keep
2732 public int wLevel = 0 ;
2833
2934 // --
You can’t perform that action at this time.
0 commit comments