2026-06-29 01:17:21 +08:00
|
|
|
|
plugins {
|
|
|
|
|
|
alias(libs.plugins.android.application)
|
|
|
|
|
|
alias(libs.plugins.kotlin.android)
|
|
|
|
|
|
alias(libs.plugins.kotlin.compose)
|
|
|
|
|
|
alias(libs.plugins.hilt)
|
|
|
|
|
|
alias(libs.plugins.kotlin.kapt)
|
|
|
|
|
|
alias(libs.plugins.google.services)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
|
namespace = "com.tiangong.aiagent"
|
|
|
|
|
|
compileSdk = 34
|
|
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
|
applicationId = "com.tiangong.aiagent"
|
|
|
|
|
|
minSdk = 26
|
|
|
|
|
|
targetSdk = 34
|
|
|
|
|
|
versionCode = 1
|
|
|
|
|
|
versionName = "1.0.0"
|
|
|
|
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
|
|
|
|
|
|
|
vectorDrawables {
|
|
|
|
|
|
useSupportLibrary = true
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 真机调试用本机 WiFi IP,模拟器用 10.0.2.2
|
|
|
|
|
|
buildConfigField("String", "BASE_URL", "\"http://192.168.31.135:8037/\"")
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
|
release {
|
2026-07-01 22:20:47 +08:00
|
|
|
|
isMinifyEnabled = true
|
2026-06-29 01:17:21 +08:00
|
|
|
|
proguardFiles(
|
|
|
|
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
|
|
|
"proguard-rules.pro"
|
|
|
|
|
|
)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
|
|
jvmTarget = "17"
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
|
|
compose = true
|
|
|
|
|
|
buildConfig = true
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
packaging {
|
|
|
|
|
|
resources {
|
|
|
|
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
|
// Compose
|
|
|
|
|
|
implementation(platform(libs.compose.bom))
|
|
|
|
|
|
implementation(libs.compose.material3)
|
|
|
|
|
|
implementation(libs.compose.ui)
|
|
|
|
|
|
implementation(libs.compose.ui.graphics)
|
|
|
|
|
|
implementation(libs.compose.ui.tooling.preview)
|
|
|
|
|
|
implementation(libs.compose.material.icons)
|
|
|
|
|
|
debugImplementation(libs.compose.ui.tooling)
|
|
|
|
|
|
|
|
|
|
|
|
// Navigation
|
|
|
|
|
|
implementation(libs.navigation.compose)
|
|
|
|
|
|
|
|
|
|
|
|
// Lifecycle
|
|
|
|
|
|
implementation(libs.lifecycle.viewmodel.compose)
|
|
|
|
|
|
implementation(libs.lifecycle.runtime.compose)
|
|
|
|
|
|
|
|
|
|
|
|
// Activity
|
|
|
|
|
|
implementation(libs.activity.compose)
|
|
|
|
|
|
|
|
|
|
|
|
// Core
|
|
|
|
|
|
implementation(libs.core.ktx)
|
|
|
|
|
|
|
|
|
|
|
|
// Network
|
|
|
|
|
|
implementation(libs.retrofit)
|
|
|
|
|
|
implementation(libs.retrofit.converter.gson)
|
|
|
|
|
|
implementation(libs.okhttp)
|
|
|
|
|
|
implementation(libs.okhttp.logging)
|
|
|
|
|
|
implementation(libs.gson)
|
|
|
|
|
|
|
|
|
|
|
|
// Room
|
|
|
|
|
|
implementation(libs.room.runtime)
|
|
|
|
|
|
implementation(libs.room.ktx)
|
|
|
|
|
|
kapt(libs.room.compiler)
|
|
|
|
|
|
|
|
|
|
|
|
// DataStore
|
|
|
|
|
|
implementation(libs.datastore.preferences)
|
|
|
|
|
|
|
|
|
|
|
|
// Hilt
|
|
|
|
|
|
implementation(libs.hilt.android)
|
|
|
|
|
|
kapt(libs.hilt.compiler)
|
|
|
|
|
|
implementation(libs.hilt.navigation.compose)
|
|
|
|
|
|
|
|
|
|
|
|
// Coil
|
|
|
|
|
|
implementation(libs.coil.compose)
|
|
|
|
|
|
|
|
|
|
|
|
// Media3
|
|
|
|
|
|
implementation(libs.media3.exoplayer)
|
|
|
|
|
|
|
|
|
|
|
|
// Splash Screen
|
|
|
|
|
|
implementation("androidx.core:core-splashscreen:1.0.1")
|
|
|
|
|
|
|
|
|
|
|
|
// Security
|
|
|
|
|
|
implementation(libs.security.crypto)
|
|
|
|
|
|
|
|
|
|
|
|
// Markdown
|
|
|
|
|
|
implementation(libs.markwon.core)
|
|
|
|
|
|
implementation(libs.markwon.image)
|
|
|
|
|
|
implementation(libs.markwon.linkify)
|
|
|
|
|
|
|
|
|
|
|
|
// Firebase (requires google-services.json in app/ to function at runtime)
|
|
|
|
|
|
implementation(platform(libs.firebase.bom))
|
|
|
|
|
|
implementation(libs.firebase.messaging)
|
|
|
|
|
|
|
|
|
|
|
|
// Bugly (Tencent crash reporting)
|
|
|
|
|
|
implementation(libs.bugly.crashreport)
|
|
|
|
|
|
implementation(libs.bugly.native)
|
feat: multi-tenant workspace isolation, RBAC, sidebar nav, billing, and Android enhancements
- Backend: workspace_id isolation for 14 model tables + safe migration/backfill
- Backend: RBAC system with 4 roles and 23 permissions, seeded on startup
- Backend: workspace admin endpoints (list/manage all workspaces)
- Backend: admin user management API (CRUD, reset password)
- Backend: billing API with subscription plans, usage tracking, rate limiting
- Backend: fix system_logs.py UNION query and wrong column references
- Backend: WebSocket JWT auth and workspace enforcement
- Frontend: sidebar navigation replacing top dropdown menu
- Frontend: user management page (Users.vue) for admins
- Frontend: enhanced Workspaces.vue with admin table view
- Frontend: workspace RBAC computed properties in user store
- Android: agent marketplace, billing/subscription UI, onboarding wizard
- Android: phone login, analytics tracker, crash handler, network diagnostics
- Android: splash screen, encrypted token storage, app update enhancements
- Docs: multi-tenant RBAC guide with 8 sections and role-permission matrix
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-04 01:00:22 +08:00
|
|
|
|
|
|
|
|
|
|
// Umeng Analytics (from zhini_im)
|
|
|
|
|
|
implementation(libs.umeng.common)
|
|
|
|
|
|
implementation(libs.umeng.asms)
|
|
|
|
|
|
implementation(libs.umeng.uyumao)
|
|
|
|
|
|
implementation(libs.umeng.abtest)
|
2026-06-29 01:17:21 +08:00
|
|
|
|
}
|