From de6c783c423bfd2154c0603d354df831a8680d0e Mon Sep 17 00:00:00 2001 From: JasonQS Date: Mon, 25 Jun 2018 00:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8D=E7=A7=B0=E8=BF=87?= =?UTF-8?q?=E9=95=BF=E6=9C=AB=E5=B0=BE=E5=8F=98=E4=B8=BA...=E6=97=B6?= =?UTF-8?q?=E6=89=BE=E4=B8=8D=E5=88=B0=E6=92=A4=E5=9B=9E=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/proguard-rules.pro | 32 +++++-------------- app/src/main/AndroidManifest.xml | 16 ---------- .../qsboy/antirecall/ui/SettingsFragment.java | 3 -- 3 files changed, 8 insertions(+), 43 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 2b4d1f1..89e10e8 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,7 +1,9 @@ # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: --keepclassmembers class fqcn.of.javascript.interface.for.webview { public *;} +-keepclassmembers class fqcn.of.javascript.interface.for.webview { + public *; +} # Uncomment this to preserve the line number information for # debugging stack traces. @@ -11,15 +13,17 @@ # hide the original source file name. -renamesourcefileattribute SourceFile --keep class com.qsboy.antirecall.ui.App{ public ;} +-keep class com.qsboy.antirecall.ui.App{public ;} -keep class com.chad.library.adapter.** {*;} -keep public class * extends com.chad.library.adapter.base.BaseQuickAdapter -keep public class * extends com.chad.library.adapter.base.BaseViewHolder --keepclassmembers class **$** extends com.chad.library.adapter.base.BaseViewHolder { (...);} +-keepclassmembers class **$** extends com.chad.library.adapter.base.BaseViewHolder {(...);} -keepattributes *Annotation* --keepclassmembers class ** { @org.greenrobot.eventbus.Subscribe ;} +-keepclassmembers class ** { + @org.greenrobot.eventbus.Subscribe ; +} -keep enum org.greenrobot.eventbus.ThreadMode { *; } -dontwarn okhttp3.** @@ -28,23 +32,3 @@ -dontwarn org.conscrypt.** # A resource is loaded with a relative path so the package of this class must be preserved. -keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase - --keep class com.alipay.android.app.IAlixPay{*;} --keep class com.alipay.android.app.IAlixPay$Stub{*;} --keep class com.alipay.android.app.IRemoteServiceCallback{*;} --keep class com.alipay.android.app.IRemoteServiceCallback$Stub{*;} --keep class com.alipay.sdk.app.PayTask{ public *;} --keep class com.alipay.sdk.app.AuthTask{ public *;} --keep class com.alipay.sdk.app.H5PayCallback { - ; - ; -} --keep class com.alipay.android.phone.mrpc.core.** { *; } --keep class com.alipay.apmobilesecuritysdk.** { *; } --keep class com.alipay.mobile.framework.service.annotation.** { *; } --keep class com.alipay.mobilesecuritysdk.face.** { *; } --keep class com.alipay.tscenter.biz.rpc.** { *; } --keep class org.json.alipay.** { *; } --keep class com.alipay.tscenter.** { *; } --keep class com.ta.utdid2.** { *;} --keep class com.ut.device.** { *;} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 77834ab..257fa8c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -82,20 +82,4 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/java/com/qsboy/antirecall/ui/SettingsFragment.java b/app/src/main/java/com/qsboy/antirecall/ui/SettingsFragment.java index a573f24..6de58e7 100644 --- a/app/src/main/java/com/qsboy/antirecall/ui/SettingsFragment.java +++ b/app/src/main/java/com/qsboy/antirecall/ui/SettingsFragment.java @@ -7,7 +7,6 @@ package com.qsboy.antirecall.ui; import android.content.ComponentName; -import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.Bitmap; @@ -39,7 +38,6 @@ import com.qsboy.antirecall.R; import com.qsboy.antirecall.access.MainService; -import com.qsboy.antirecall.alipay.Pay; import com.qsboy.antirecall.utils.CheckAuthority; import com.qsboy.antirecall.utils.UpdateHelper; @@ -216,7 +214,6 @@ public void error() { view.findViewById(R.id.btn_donate).setOnClickListener(v -> { Log.i(TAG, "onCreateView: onclick"); - new Pay(getActivity()).payV2(); }); return view;