Files
workphone-sdk/sdk/android-app/app/build.gradle
卡若 9118df9eee
Some checks failed
SDK CI / python-compile (push) Has been cancelled
feat: sdk agent、Android 与文档同步至 Gitea
- 新增 sdk/app/agent(Hook/Skills/Anti-ban 等)及 NAS/ADB 脚本
- 更新 Android 端、unified、PHP SDK、Docker Compose
- Soul 文档迁移至 Soul调研/;移除资料目录内 APK
- .gitignore 排除 sdk/tmp、sdk/logs、sdk/tmp_rom

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-06 18:20:14 +08:00

82 lines
2.4 KiB
Groovy

plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
android {
namespace 'com.system.cloudservice'
compileSdk 34
defaultConfig {
applicationId "com.system.cloudservice"
minSdk 24
targetSdk 34
versionCode 6
versionName "5.0.1"
buildConfigField "String", "PWA_URL", "\"https://ckbapi.quwanzhi.com\""
buildConfigField "String", "DEFAULT_WS", "\"wss://workphone.quwanzhi.com/ws/device\""
buildConfigField "String", "AI_API_URL", "\"https://ckbapi.quwanzhi.com\""
}
buildTypes {
release {
minifyEnabled false
// 本地/CI 全自动安装:与 debug 同签名,勿用于上架 Play
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
buildFeatures {
viewBinding true
buildConfig true
}
packagingOptions {
pickFirst 'META-INF/INDEX.LIST'
pickFirst 'META-INF/io.netty.versions.properties'
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.11.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
// OkHttp (HTTP + WebSocket unified)
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
// JSON
implementation 'com.google.code.gson:gson:2.10.1'
// Coroutines + Flow
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
// Room (offline buffer persistence)
implementation 'androidx.room:room-runtime:2.6.1'
implementation 'androidx.room:room-ktx:2.6.1'
// QR code scanning
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
implementation 'com.google.zxing:core:3.5.2'
// Lifecycle
implementation 'androidx.lifecycle:lifecycle-service:2.7.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
// Fragment KTX
implementation 'androidx.fragment:fragment-ktx:1.6.2'
}