86 lines
2.5 KiB
Kotlin
86 lines
2.5 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.smbfast.app"
|
|
compileSdk = 35
|
|
buildToolsVersion = "34.0.0"
|
|
|
|
defaultConfig {
|
|
applicationId = "com.smbfast.app"
|
|
minSdk = 26
|
|
targetSdk = 35
|
|
versionCode = 29
|
|
versionName = "1.23.0"
|
|
}
|
|
|
|
signingConfigs {
|
|
create("release") {
|
|
storeFile = rootProject.file("smbfast.keystore")
|
|
storePassword = "smbfast2026"
|
|
keyAlias = "smbfast"
|
|
keyPassword = "smbfast2026"
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
isShrinkResources = true
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
signingConfig = signingConfigs.getByName("release")
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
packaging {
|
|
resources.excludes += setOf(
|
|
"META-INF/DEPENDENCIES",
|
|
"META-INF/LICENSE*",
|
|
"META-INF/NOTICE*",
|
|
"META-INF/AL2.0",
|
|
"META-INF/LGPL2.1",
|
|
)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("androidx.core:core-ktx:1.13.1")
|
|
implementation("androidx.activity:activity-compose:1.9.3")
|
|
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")
|
|
debugImplementation("androidx.compose.ui:ui-tooling")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.8.7")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
|
|
|
|
// SMB2/SMB3 客户端库
|
|
implementation("com.hierynomus:smbj:0.15.0")
|
|
implementation("org.bouncycastle:bcprov-jdk18on:1.85.2")
|
|
implementation("org.slf4j:slf4j-simple:2.0.18")
|
|
|
|
implementation("com.google.code.gson:gson:2.11.0")
|
|
|
|
testImplementation("junit:junit:4.13.2")
|
|
}
|