SimpleFileManager/app/build.gradle.kts

100 lines
2.3 KiB
Text
Raw Normal View History

2024-10-10 06:46:38 +02:00
plugins {
2024-10-13 10:00:50 +02:00
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.compose.compiler)
2024-10-10 06:46:38 +02:00
}
android {
2024-10-13 11:22:30 +02:00
namespace = "com.dazuoye.filemanager"
2024-10-13 10:00:50 +02:00
compileSdk = 34
2024-10-10 06:46:38 +02:00
2024-10-13 10:00:50 +02:00
defaultConfig {
2024-10-13 11:22:30 +02:00
applicationId = "com.dazuoye.filemanager"
2024-10-13 10:00:50 +02:00
minSdk = 29
2024-10-13 11:22:30 +02:00
targetSdk = 35
2024-10-13 10:00:50 +02:00
versionCode = 1
versionName = "1.0"
2024-10-10 06:46:38 +02:00
2024-10-13 10:00:50 +02:00
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary = true
}
ndk {
abiFilters += listOf("arm64-v8a","x86_64")
2024-10-10 06:46:38 +02:00
}
2024-10-13 10:00:50 +02:00
}
2024-10-10 06:46:38 +02:00
2024-10-13 10:00:50 +02:00
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
sourceSets {
getByName("release") {
jniLibs.srcDirs("src/main/jniLibs")
2024-10-10 06:46:38 +02:00
}
2024-10-13 10:00:50 +02:00
}
2024-10-10 06:46:38 +02:00
}
2024-10-13 10:00:50 +02:00
debug {
sourceSets {
getByName("debug") {
jniLibs.srcDirs("src/main/jniLibs")
2024-10-10 06:46:38 +02:00
}
2024-10-13 10:00:50 +02:00
}
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
buildFeatures {
viewBinding = true
compose = true
buildConfig = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.1"
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
2024-10-10 06:46:38 +02:00
}
2024-10-13 10:00:50 +02:00
}
2024-10-10 06:46:38 +02:00
}
dependencies {
2024-10-13 10:00:50 +02:00
implementation(libs.appcompat)
implementation(libs.material)
implementation(libs.activity)
implementation(libs.constraintlayout)
implementation(libs.core.ktx)
implementation(libs.navigation.fragment)
implementation(libs.navigation.ui)
implementation(libs.lifecycle.runtime.ktx)
implementation(libs.activity.compose)
implementation(platform(libs.compose.bom))
implementation(libs.ui)
implementation(libs.ui.graphics)
implementation(libs.ui.tooling.preview)
implementation(libs.material3)
implementation(libs.androidx.datastore.preferences)
testImplementation(libs.junit)
androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core)
androidTestImplementation(platform(libs.compose.bom))
androidTestImplementation(libs.ui.test.junit4)
debugImplementation(libs.ui.tooling)
debugImplementation(libs.ui.test.manifest)
2024-10-10 06:46:38 +02:00
2024-10-13 10:00:50 +02:00
implementation(libs.commons.io)
2024-10-10 06:46:38 +02:00
}