3 Commits

Author SHA1 Message Date
30fdbdbcb2 refactor: support monochrome app icon (round) 2025-09-06 22:48:11 +08:00
1675e28ca7 chore: bump dependencies 2025-09-06 22:48:01 +08:00
李太白
62a40b706d feat: 新增对HyperOS 3.0和Android 16的支持 (#244) 2025-09-06 18:28:39 +08:00
3 changed files with 8 additions and 6 deletions

View File

@@ -178,7 +178,7 @@ inline val isNotMIOS get() = !isMIOS
val isSupportMiSystemVersion val isSupportMiSystemVersion
get() = when { get() = when {
isMIOS -> when (miosVersion) { isMIOS -> when (miosVersion) {
"1.0", "1.1", "2.0" -> true "1.0", "1.1", "2.0" , "3.0"-> true
else -> false else -> false
} }
isMIUI -> when (miuiVersion) { isMIUI -> when (miuiVersion) {
@@ -200,6 +200,7 @@ inline val isNotSupportMiSystemVersion get() = !isSupportMiSystemVersion
*/ */
val androidVersionCodeName val androidVersionCodeName
get() = when (Build.VERSION.SDK_INT) { get() = when (Build.VERSION.SDK_INT) {
36 -> "W"
35 -> "V" 35 -> "V"
34 -> "U" 34 -> "U"
33 -> "T" 33 -> "T"

View File

@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/> <background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> <foreground android:drawable="@mipmap/ic_launcher_foreground" />
<monochrome android:drawable="@mipmap/ic_launcher_foreground" />
</adaptive-icon> </adaptive-icon>

View File

@@ -22,7 +22,7 @@ repositories:
plugins: plugins:
com.android.application: com.android.application:
alias: android-application alias: android-application
version: 8.12.1 version: 8.13.0
org.jetbrains.kotlin.android: org.jetbrains.kotlin.android:
alias: kotlin-android alias: kotlin-android
version: 2.2.10 version: 2.2.10
@@ -33,7 +33,7 @@ plugins:
libraries: libraries:
com.fankes.projectpromote: com.fankes.projectpromote:
project-promote: project-promote:
version: 1.0.0 version: 1.0.1
repositories: repositories:
fankes-maven-releases fankes-maven-releases
de.robv.android.xposed: de.robv.android.xposed:
@@ -69,7 +69,7 @@ libraries:
version: 1.7.1 version: 1.7.1
com.google.android.material: com.google.android.material:
material: material:
version: 1.12.0 version: 1.13.0
androidx.constraintlayout: androidx.constraintlayout:
constraintlayout: constraintlayout:
version: 2.2.1 version: 2.2.1