refactor(appbase): SMTPConfigView改用libaes内置版本并修复R8混淆崩溃

- APPExcetionMailSettingsActivity引用改为cc.winboll.studio.libaes.views.SMTPConfigView
- 删除libappbase自定义SMTPConfigView
- appbase添加JavaMail依赖(android-mail/android-activation 1.6.7)
- proguard-rules保留javax.mail.**修复NoClassDefFoundError
- packagingOptions排除重复META-INF文件
This commit is contained in:
BigPickle
2026-07-21 18:06:04 +08:00
parent ce4f23f3f4
commit 9a529cf030
7 changed files with 20 additions and 306 deletions
+9
View File
@@ -44,6 +44,12 @@ android {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
packagingOptions {
exclude 'META-INF/LICENSE.md'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.md'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
@@ -53,6 +59,9 @@ dependencies {
//api 'cc.winboll.studio:libappbase:15.20.+'
api 'cc.winboll.studio:libaes:15.20.21'
api 'androidx.appcompat:appcompat:1.3.1'
// JavaMail SMTP (Android兼容版)
api 'com.sun.mail:android-mail:1.6.7'
api 'com.sun.mail:android-activation:1.6.7'
api fileTree(dir: 'libs', include: ['*.jar'])
}
+2 -2
View File
@@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Tue Jul 21 17:33:50 HKT 2026
#Tue Jul 21 18:04:08 HKT 2026
stageCount=4
libraryProject=libappbase
baseVersion=15.21
publishVersion=15.21.3
buildCount=9
buildCount=15
baseBetaVersion=15.21.4
+4
View File
@@ -73,6 +73,10 @@
-dontwarn java.util.function.**
# ============================== 第三方框架规则 ==============================
# JavaMaillibaes SMTPConfigView依赖
-keep class javax.mail.** { *; }
-dontwarn javax.mail.**
# Retrofit + OkHttp
-keep class retrofit2.** { *; }
-keep interface retrofit2.** { *; }
@@ -3,13 +3,13 @@ package cc.winboll.studio.appbase.develop;
import android.app.Activity;
import android.os.Bundle;
import cc.winboll.studio.appbase.R;
import cc.winboll.studio.libappbase.widget.SMTPConfigView;
import cc.winboll.studio.libaes.views.SMTPConfigView;
/**
* @Author 豆包&BigPickle&MiMo&ZhanGSKen<zhangsken@qq.com>
* @Date 2026/07/21 12:44
* @Describe 应用异常信息邮件接收账号设置
* 使用SMTPConfigView控件配置SMTP服务器参数
* 使用libaes的SMTPConfigView控件配置SMTP服务器参数
*/
public class APPExcetionMailSettingsActivity extends Activity {
@@ -5,7 +5,7 @@
android:layout_height="match_parent"
android:background="#FAFAFA">
<cc.winboll.studio.libappbase.widget.SMTPConfigView
<cc.winboll.studio.libaes.views.SMTPConfigView
android:id="@+id/smtp_config_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>