refactor: almost ready for v0.1.0

- 优化 `Shared` 中的 `Codec` 枚举,增加显示名称并添加 `isLossyAudio` 函数
- 简化 `Codec`、`VideoSource`、`AudioSource` 和 `CameraFacing` 枚举中的 `fromString` 方法
- 将 `fetchConnectedDeviceInfo` 改为挂起函数以支持协程
- 清理 `PreferenceMigration` 和 `ScrcpyOptions`,提高可读性
- 更新 `Settings` 类,添加 `isDefaultValue` 挂起函数
- 改进 `DeviceWidgets`,增强状态管理和 UI 响应性
This commit is contained in:
Miuzarte
2026-04-06 23:38:22 +08:00
parent ebbf9f6d4b
commit e970c89e8f
27 changed files with 2001 additions and 1799 deletions

View File

@@ -11,6 +11,7 @@ androidxJunit = "1.3.0"
espressoCore = "3.7.0"
miuix = "0.8.7"
material = "1.13.0"
runtime = "1.10.5"
[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
@@ -32,6 +33,7 @@ material = { group = "com.google.android.material", name = "material", version.r
miuix = { group = "top.yukonga.miuix.kmp", name = "miuix", version.ref = "miuix" }
miuix-icons = { group = "top.yukonga.miuix.kmp", name = "miuix-icons", version.ref = "miuix" }
miuix-navigation3-ui = { group = "top.yukonga.miuix.kmp", name = "miuix-navigation3-ui", version.ref = "miuix" }
androidx-compose-runtime = { group = "androidx.compose.runtime", name = "runtime", version.ref = "runtime" }
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }