refactor: use Parcelable Bundle for state management
- 在 ScrcpyOptions 中引入 Parcelable 数据类 `Bundle`,用于封装各项配置 - 更新了使用新 Bundle 结构读写配置的方法 - 使用 StateFlow 增强状态管理,实现响应式 UI 更新 - 重构 toClientOptions 方法,接受 Bundle 参数以提高清晰度和可维护性 - 调整音频和视频编解码器设置,使其使用新的 Bundle 结构 - 更新 ConfigPanel 以反映 ScrcpyOptions 的变化,并更有效地管理状态 - 移除 DeviceWidgets 中的未使用代码并清理导入 - 重构解码流程,驻留一个中转 Surface,解决先前 Surface 销毁后解码无法恢复的问题
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.compose.compiler)
|
||||
id("kotlin-parcelize")
|
||||
}
|
||||
|
||||
val defaultAbiList = listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
|
||||
|
||||
Reference in New Issue
Block a user