Some checks failed
Flask 提示词大师 - CI/CD 流水线 / 代码质量检查 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 单元测试 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 集成测试 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 构建Docker镜像 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 部署到测试环境 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 部署到生产环境 (push) Has been cancelled
Flask 提示词大师 - CI/CD 流水线 / 部署监控系统 (push) Has been cancelled
61 lines
2.1 KiB
Groovy
61 lines
2.1 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
namespace 'com.ruilaizi.example'
|
|
compileSdk 34
|
|
defaultConfig {
|
|
applicationId "com.ruilaizi.example"
|
|
minSdk 24
|
|
targetSdk 34
|
|
versionCode 1
|
|
versionName "1.0"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
buildConfigField "String", "API_BASE_URL", "\"https://api.deepseek.com/v1/\""
|
|
buildConfigField "String", "DEFAULT_API_KEY", "\"sk-fdf7cc1c73504e628ec0119b7e11b8cc\""
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
buildConfig true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
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.core:core:1.12.0'
|
|
|
|
// ViewModel & LiveData
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.7.0'
|
|
implementation 'androidx.lifecycle:lifecycle-livedata:2.7.0'
|
|
implementation 'androidx.lifecycle:lifecycle-runtime:2.7.0'
|
|
|
|
// Room
|
|
implementation 'androidx.room:room-runtime:2.6.1'
|
|
annotationProcessor 'androidx.room:room-compiler:2.6.1'
|
|
|
|
// Network
|
|
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
|
|
// Security: 可选,用于加密存储 API Key
|
|
implementation 'androidx.security:security-crypto:1.1.0-alpha06'
|
|
|
|
implementation 'com.readystatesoftware.systembartint:systembartint:1.0.4'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
}
|