add progurd rule.
authorTrillGates <williamtrillgates@gmail.com>
Wed, 7 Jul 2021 08:44:21 +0000 (16:44 +0800)
committerTrillGates <williamtrillgates@gmail.com>
Wed, 7 Jul 2021 08:44:21 +0000 (16:44 +0800)
app/proguard-rules.pro
app/src/main/java/com/ic/sport/fragment/pedometer/PedSetupFragment.java
app/src/main/java/com/ic/sport/presenter/PedometerPresenter.java

index 1863a40..81b9101 100644 (file)
@@ -138,4 +138,42 @@ public protected <methods>;
 
 -keep public class com.android.support.a
 -keep public class com.android.support.b
--keep public class rx.internal.util
\ No newline at end of file
+-keep public class rx.internal.util
+
+
+-keep class com.ic.iclooger.CrashHandler
+-keep class com.ic.iclooger.ICLogger
+
+-keepclassmembers class com.ic.iclooger.StorageUtils {
+    public static <fields>;
+    public static <methods>;
+    public <methods>;
+}
+
+-keepclassmembers class com.ic.iclooger.SystemUtils {
+    public static <fields>;
+    public static <methods>;
+    public <methods>;
+}
+
+-keep class com.facebook.** { *; }
+-keep class com.mediatek.** { *; }
+-keep class org.apache.** { *; }
+-keep class okio.Okio.** { *; }
+-keep class java.nio.** { *; }
+-keep class com.android.** { *; }
+-keep class android.** { *; }
+-keep class android.ddm.** { *; }
+-keep class com.alibaba.fastjson.** { *; }
+-keep class com.eqc.watch.launcher.WatchApplication { *; }
+#-keep class com.enqualcomm.support.EqcAlgorithmNative { *; }
+
+-dontwarn com.facebook.**
+-dontwarn com.mediatek.**
+-dontwarn java.nio.**
+-dontwarn com.alibaba.fastjson.**
+-dontwarn android.**
+-dontwarn com.android.**
+-dontwarn rx.internal.**
+
+-keep class com.ic.** { *; }
\ No newline at end of file
index e9f6a45..fda808f 100644 (file)
@@ -66,7 +66,8 @@ public class PedSetupFragment extends Fragment {
         mSetupRv.setLayoutManager(mLayoutManager);
         mSetupRv.addItemDecoration(new RecyclerView.ItemDecoration() {
             @Override
-            public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, @NonNull RecyclerView parent, @NonNull RecyclerView.State state) {
+            public void getItemOffsets(@NonNull Rect outRect, @NonNull View view,
+                                       @NonNull RecyclerView parent, @NonNull RecyclerView.State state) {
                 outRect.bottom = 5;
             }
         });
index 73e604f..d4f93f7 100644 (file)
@@ -85,7 +85,9 @@ public class PedometerPresenter {
     }
 
     public void queryPedRecord() {
+        ICLogger.d("queryPedRecord...");
         if (mService != null) {
+            ICLogger.d("mService...is ok..");
             try {
                 mService.queryPedRecord();
             } catch (Exception e) {
@@ -122,6 +124,7 @@ public class PedometerPresenter {
                 mService = IPedRemoteService.Stub.asInterface(service);
                 mService.registerCallback(pedInterface);
                 //queryPedCount();
+                mService.queryPedRecord();
             } catch (Exception e) {
                 IcLog.e(TAG, e.getMessage());
             }