Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
R3.8.7.1
Browse files Browse the repository at this point in the history
快速修复:
修复Android 7.0以下的帮助崩溃问题
  • Loading branch information
ryuunoakaihitomi committed May 31, 2021
1 parent 20bc6bd commit 4e06480
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ android {
//targetSdkVersion compileSdkVersion
targetSdkVersion 30
// 版本号:发布日期
versionCode 20210531
versionCode 20210601
// 版本名说明: R3.x.y.z (R3:Refactoring 第三次重构,z:Quick Fix序号)
versionName 'R3.8.7.1'
versionName 'R3.8.7.2'
resConfigs "en", "zh-rCN"

buildConfigField 'String', 'BUILD_TIME', '\"' + new Date() + '\"'
Expand Down Expand Up @@ -45,7 +45,7 @@ android {
signingConfig signingConfigs.release
}
debug {
versionNameSuffix '-debug'
versionNameSuffix '-debug' +/* 精确判断是不是刚才编译的debug版本 */LocalTime.now().format("(HHmmss)")
}
}
flavorDimensions "version"
Expand Down Expand Up @@ -105,7 +105,14 @@ dependencies {
implementation 'com.github.GrenderG:Toasty:1.5.0'
implementation 'com.github.topjohnwu.libsu:core:3.1.2'
implementation 'commons-io:commons-io:2.8.0'
implementation 'org.apache.commons:commons-lang3:3.12.0'
// 不再使用lang3,因为lang3使用的一些java8 API是脱糖库无法完成转换的,即使脱糖库的文档说明支持。
// 使用到的例子:
// FieldUtils#getField(Class<?>, String, boolean)
// Validate#notNull(T, String, Object...)
// Objects#requireNonNull(T, Supplier<String>) <- 从这里开始,java.util.function.Supplier无法脱糖成功,而24以下环境找不到它
// FIXME 在没有找到更好的解决方法之前只能使用legacy lang2代替
//implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation group: 'commons-lang', name: 'commons-lang', version: '2.6'
implementation 'com.jakewharton.timber:timber:4.7.1'
implementation 'com.drakeet.about:about:2.4.1'
implementation 'com.google.zxing:core:3.4.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.annotation.SuppressLint
import android.app.AlertDialog
import android.app.Application
import android.widget.TextView
import org.apache.commons.lang3.reflect.FieldUtils
import org.apache.commons.lang.reflect.FieldUtils
import java.lang.Class as C

object BlackMagic {
Expand Down

1 comment on commit 4e06480

@ryuunoakaihitomi
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version 3.8.7.2

Please sign in to comment.