Files
VibeCoding_ComposeRemote/ComposeRemoteAndroid/app/build.gradle
tongtongstudio 2bb3255704 feat: 集成服务端驱动 UI 演示
新增 Remote Compose 播放端与服务端生成逻辑,支持按页面拉取并渲染二进制 UI 文档。
2026-08-14 10:43:44 +08:00

63 lines
2.0 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.compose)
}
android {
namespace 'com.ttstd.composeremote'
compileSdk {
version = release(36) {
minorApiLevel = 1
}
}
defaultConfig {
applicationId "com.ttstd.composeremote"
minSdk 29
targetSdk 36
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
buildFeatures {
compose true
}
}
dependencies {
implementation platform(libs.androidx.compose.bom)
implementation libs.androidx.activity.compose
implementation libs.androidx.compose.material3
implementation libs.androidx.compose.ui
implementation libs.androidx.compose.ui.graphics
implementation libs.androidx.compose.ui.tooling.preview
implementation libs.androidx.core.ktx
implementation libs.androidx.lifecycle.runtime.ktx
testImplementation libs.junit
androidTestImplementation platform(libs.androidx.compose.bom)
androidTestImplementation libs.androidx.compose.ui.test.junit4
androidTestImplementation libs.androidx.espresso.core
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")
}