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;