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

@@ -98,6 +98,7 @@ dependencies {
implementation("org.conscrypt:conscrypt-android:2.5.2")
implementation("sh.calvin.reorderable:reorderable:3.0.0")
implementation("androidx.datastore:datastore-preferences:1.2.1")
implementation(libs.androidx.compose.runtime)
testImplementation(libs.junit)
androidTestImplementation(platform(libs.androidx.compose.bom))