初始提交:浩瑞(HaoRui)头条自动化工程
- app/:Kotlin 全部源码、AndroidManifest 与资源 - docs/:技术文档、UI 原型、回归清单 - img/:文档引用的对照规格截图 - scripts/:环境加载与回归统计脚本 - 构建配置:Gradle 入口脚本与属性 - 新增 .gitignore:排除工具链、构建缓存、临时产物与本机配置 Co-Authored-By: Claude Code <[email protected]>
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 浩瑞(HaoRui)· app 模块
|
||||
* 应用 ID:com.haorui.app
|
||||
*/
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("org.jetbrains.kotlin.android")
|
||||
id("org.jetbrains.kotlin.plugin.compose")
|
||||
id("org.jetbrains.kotlin.plugin.serialization")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.haorui.app"
|
||||
compileSdk = 35
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "com.haorui.app"
|
||||
minSdk = 28
|
||||
targetSdk = 35
|
||||
versionCode = 1
|
||||
versionName = "0.1.0"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
// 签名配置待阶段 0 收尾补全(keystore 落工程内 .toolchain/keys/)
|
||||
}
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = "17"
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
compose = true
|
||||
}
|
||||
|
||||
packaging {
|
||||
resources {
|
||||
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(platform("androidx.compose:compose-bom:2024.10.01"))
|
||||
implementation("androidx.compose.ui:ui")
|
||||
implementation("androidx.compose.ui:ui-tooling-preview")
|
||||
implementation("androidx.compose.material3:material3")
|
||||
implementation("androidx.compose.material:material-icons-extended")
|
||||
implementation("androidx.activity:activity-compose:1.9.3")
|
||||
implementation("androidx.core:core-ktx:1.15.0")
|
||||
|
||||
// 导航:底部 4 tab + 10 页 + 返回栈
|
||||
implementation("androidx.navigation:navigation-compose:2.8.4")
|
||||
// 配置存储:替代原 20 个 SharedPreferences
|
||||
implementation("androidx.datastore:datastore-preferences:1.1.1")
|
||||
// ViewModel + 协程
|
||||
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7")
|
||||
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.8.7")
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
|
||||
// JSON(配置导入导出)
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
|
||||
// ML Kit 中文文字识别(standalone,不依赖 Google Play Services)
|
||||
implementation("com.google.mlkit:text-recognition-chinese:16.0.1")
|
||||
|
||||
debugImplementation("androidx.compose.ui:ui-tooling")
|
||||
}
|
||||
Reference in New Issue
Block a user