836e363f94
🔥 主要更新: - 升级到最新依赖版本 (AGP 8.12.0, Gradle 8.13, Java 17) - 完全重构 Context 管理系统,解决闪退问题 - 采用原项目 FongMi/TV 的稳定策略 - 启用 EventBus 编译时优化,提升性能 - 修复关于页面 GitHub 链接,永远指向最新版本 🐛 修复问题: - 修复 Context 初始化时序问题导致的崩溃 - 修复 ApplicationContext 被垃圾回收的问题 - 修复 Updater 构造函数的过早调用问题 - 解决 Android 15 设备兼容性问题 ⚡ 性能优化: - EventBus 性能提升 (编译时索引生成) - APK 体积优化 (release 版本 36MB vs 49MB debug) - 代码混淆和资源压缩启用 - 内存使用优化 📦 构建改进: - 支持 arm64-v8a 和 armeabi-v7a 双架构 - 完整的 release 和 debug 版本构建 - 新增 chaquo Python 模块支持 - 同步所有依赖到最新稳定版本 🛡️ 稳定性: - 采用经过 6.3k+ 星标验证的原项目策略 - 完善的异常处理机制 - 防护性编程实践 - 支持 Android 5.0+ 到 Android 15
42 lines
1.4 KiB
Groovy
42 lines
1.4 KiB
Groovy
plugins {
|
|
id 'com.android.library'
|
|
}
|
|
|
|
android {
|
|
namespace 'com.github.catvod.crawler'
|
|
|
|
compileSdk {
|
|
version = release(36)
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdk 24
|
|
targetSdk 28
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api 'androidx.annotation:annotation:1.9.1'
|
|
api 'androidx.preference:preference:1.2.1'
|
|
api 'com.google.code.gson:gson:' + gsonVersion
|
|
api 'com.google.net.cronet:cronet-okhttp:0.1.0'
|
|
api 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3'
|
|
api 'com.orhanobut:logger:2.2.0'
|
|
api 'com.squareup.okhttp3:okhttp:' + okhttpVersion
|
|
api 'com.squareup.okhttp3:okhttp-dnsoverhttps:' + okhttpVersion
|
|
api 'com.squareup.okhttp3:logging-interceptor:' + okhttpVersion
|
|
api 'org.chromium.net:cronet-embedded:76.3809.111'
|
|
api('com.google.guava:guava:33.3.1-android') {
|
|
exclude group: 'com.google.code.findbugs', module: 'jsr305'
|
|
exclude group: 'org.checkerframework', module: 'checker-compat-qual'
|
|
exclude group: 'org.checkerframework', module: 'checker-qual'
|
|
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
|
|
exclude group: 'com.google.j2objc', module: 'j2objc-annotations'
|
|
exclude group: 'org.codehaus.mojo', module: 'animal-sniffer-annotations'
|
|
}
|
|
} |