更新mumu-pytest测试框架,修复build.gradle.kts依赖问题
This commit is contained in:
@@ -9,20 +9,42 @@ android {
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "com.example.flomo_ai"
|
||||
minSdk = 28
|
||||
//noinspection OldTargetApi
|
||||
minSdk = 24
|
||||
targetSdk = 34
|
||||
versionCode = 1
|
||||
versionName = "1.1"
|
||||
versionCode = 2
|
||||
versionName = "1.2"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
useSupportLibrary = true
|
||||
}
|
||||
|
||||
// 启用 View Binding
|
||||
buildFeatures {
|
||||
viewBinding = true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
getByName("main") {
|
||||
java.srcDirs("src/main/java")
|
||||
res.srcDirs("src/main/res")
|
||||
manifest.srcFile("src/main/AndroidManifest.xml")
|
||||
}
|
||||
getByName("test") {
|
||||
java.srcDirs("src/test/java")
|
||||
}
|
||||
getByName("androidTest") {
|
||||
java.srcDirs("src/androidTest/java")
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
isDebuggable = true
|
||||
isMinifyEnabled = false
|
||||
applicationIdSuffix = ".debug"
|
||||
}
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
proguardFiles(
|
||||
@@ -63,6 +85,30 @@ dependencies {
|
||||
implementation(libs.androidx.material3)
|
||||
implementation(libs.appcompat)
|
||||
implementation(libs.material)
|
||||
|
||||
// 网络请求相关
|
||||
implementation(libs.okhttp)
|
||||
implementation(libs.logging.interceptor)
|
||||
|
||||
// JSON解析
|
||||
implementation(libs.gson)
|
||||
implementation(libs.moshi.kotlin)
|
||||
|
||||
// 协程支持
|
||||
implementation(libs.kotlinx.coroutines.core)
|
||||
implementation(libs.kotlinx.coroutines.android)
|
||||
|
||||
// JWT处理
|
||||
implementation(libs.kjwt.jwks)
|
||||
implementation(libs.nimbus.jose.jwt)
|
||||
|
||||
// 权限处理 (已移除PermissionX,代码中未使用)
|
||||
|
||||
// 图片加载
|
||||
implementation("com.github.bumptech.glide:glide:4.16.0")
|
||||
annotationProcessor("com.github.bumptech.glide:compiler:4.16.0")
|
||||
|
||||
// 测试依赖
|
||||
testImplementation(libs.junit)
|
||||
androidTestImplementation(libs.androidx.junit)
|
||||
androidTestImplementation(libs.androidx.espresso.core)
|
||||
@@ -70,13 +116,4 @@ dependencies {
|
||||
androidTestImplementation(libs.androidx.ui.test.junit4)
|
||||
debugImplementation(libs.androidx.ui.tooling)
|
||||
debugImplementation(libs.androidx.ui.test.manifest)
|
||||
implementation(libs.gson)
|
||||
implementation(libs.kjwt.jwks)
|
||||
implementation(libs.nimbus.jose.jwt)
|
||||
implementation(libs.okhttp)
|
||||
implementation(libs.logging.interceptor)
|
||||
implementation(libs.kotlinx.coroutines.core)
|
||||
implementation(libs.kotlinx.coroutines.android)
|
||||
implementation(libs.moshi.kotlin)
|
||||
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
Reference in New Issue
Block a user