feat: 集成服务端驱动 UI 演示

新增 Remote Compose 播放端与服务端生成逻辑,支持按页面拉取并渲染二进制 UI 文档。
This commit is contained in:
2026-08-14 10:43:44 +08:00
parent c37b8ff0a4
commit 2bb3255704
11 changed files with 447 additions and 29 deletions

View File

@@ -13,7 +13,7 @@ android {
defaultConfig {
applicationId "com.ttstd.composeremote"
minSdk 24
minSdk 29
targetSdk 36
versionCode 1
versionName "1.0"
@@ -52,4 +52,12 @@ dependencies {
androidTestImplementation libs.androidx.junit
debugImplementation libs.androidx.compose.ui.test.manifest
debugImplementation libs.androidx.compose.ui.tooling
// Remote Compose Playerview 版,参考 remotecompose-android 的集成方式)
implementation("androidx.compose.remote:remote-core:1.0.0-alpha17")
implementation("androidx.compose.remote:remote-player-core:1.0.0-alpha17")
implementation("androidx.compose.remote:remote-player-view:1.0.0-alpha17")
// OkHttp 用于请求二进制 payload
implementation("com.squareup.okhttp3:okhttp:4.12.0")
}