2023-12-17 22:38:10 -06:00
|
|
|
plugins {
|
|
|
|
id("com.android.application")
|
2023-12-22 13:05:39 -06:00
|
|
|
id("org.jetbrains.kotlin.android")
|
2024-01-04 17:36:58 -06:00
|
|
|
id("com.google.devtools.ksp")
|
|
|
|
id("com.google.dagger.hilt.android")
|
2023-12-17 22:38:10 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "org.musicpd"
|
2025-02-01 12:39:51 +02:00
|
|
|
compileSdk = 35
|
2023-12-17 22:38:10 -06:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "org.musicpd"
|
|
|
|
minSdk = 24
|
2025-02-01 12:39:51 +02:00
|
|
|
targetSdk = 34
|
2023-12-17 22:38:10 -06:00
|
|
|
versionCode = 1
|
|
|
|
versionName = "1.0"
|
2023-12-22 13:05:39 -06:00
|
|
|
vectorDrawables {
|
|
|
|
useSupportLibrary = true
|
|
|
|
}
|
2023-12-17 22:38:10 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
aidl = true
|
2023-12-22 13:05:39 -06:00
|
|
|
compose = true
|
|
|
|
}
|
|
|
|
|
|
|
|
composeOptions {
|
2025-02-03 23:07:42 +02:00
|
|
|
kotlinCompilerExtensionVersion = "1.5.10"
|
2023-12-17 22:38:10 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
2025-02-01 11:11:34 +02:00
|
|
|
debug {
|
2023-12-17 22:38:10 -06:00
|
|
|
isMinifyEnabled = false
|
2025-02-01 11:11:34 +02:00
|
|
|
}
|
|
|
|
release {
|
|
|
|
isMinifyEnabled = true
|
2023-12-17 22:38:10 -06:00
|
|
|
proguardFiles(
|
|
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
|
"proguard-rules.pro"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
2025-02-04 10:22:17 +02:00
|
|
|
// flavors
|
|
|
|
flavorDimensions += "base"
|
|
|
|
productFlavors {
|
|
|
|
create("arm64-v8a") {
|
|
|
|
ndk {
|
|
|
|
// ABI to include in package
|
|
|
|
//noinspection ChromeOsAbiSupport
|
|
|
|
abiFilters += listOf("arm64-v8a")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
create("x86_64") {
|
|
|
|
ndk {
|
|
|
|
// ABI to include in package
|
|
|
|
abiFilters += listOf("x86_64")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-12-17 22:38:10 -06:00
|
|
|
compileOptions {
|
2023-12-22 12:30:27 -06:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_9
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_9
|
2023-12-17 22:38:10 -06:00
|
|
|
}
|
2023-12-22 13:05:39 -06:00
|
|
|
kotlinOptions {
|
2025-02-04 10:22:17 +02:00
|
|
|
jvmTarget = JavaVersion.VERSION_1_9.toString()
|
2023-12-22 13:05:39 -06:00
|
|
|
}
|
|
|
|
packaging {
|
|
|
|
resources {
|
|
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
|
|
}
|
|
|
|
}
|
2023-12-17 22:38:10 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2025-02-01 12:39:51 +02:00
|
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
|
|
|
|
implementation(platform("androidx.compose:compose-bom:2025.01.01"))
|
2023-12-22 13:05:39 -06:00
|
|
|
|
|
|
|
implementation("androidx.compose.material3:material3")
|
2025-02-01 12:39:51 +02:00
|
|
|
implementation("androidx.activity:activity-compose:1.10.0")
|
2023-12-22 22:52:33 -06:00
|
|
|
implementation("androidx.compose.material:material-icons-extended")
|
2025-02-01 12:39:51 +02:00
|
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.8.7")
|
|
|
|
implementation("androidx.navigation:navigation-compose:2.8.6")
|
2023-12-22 22:52:33 -06:00
|
|
|
|
|
|
|
implementation("com.github.alorma:compose-settings-ui-m3:1.0.3")
|
|
|
|
implementation("com.github.alorma:compose-settings-storage-preferences:1.0.3")
|
|
|
|
implementation("com.google.accompanist:accompanist-permissions:0.33.2-alpha")
|
2023-12-22 13:05:39 -06:00
|
|
|
|
2024-01-04 17:36:58 -06:00
|
|
|
implementation("com.google.dagger:hilt-android:2.49")
|
|
|
|
ksp("com.google.dagger:dagger-compiler:2.49")
|
|
|
|
ksp("com.google.dagger:hilt-compiler:2.49")
|
|
|
|
|
2025-02-01 12:39:51 +02:00
|
|
|
implementation("androidx.media3:media3-session:1.5.1")
|
2024-01-05 18:17:54 -06:00
|
|
|
|
2023-12-22 13:05:39 -06:00
|
|
|
// Android Studio Preview support
|
|
|
|
implementation("androidx.compose.ui:ui-tooling-preview")
|
|
|
|
debugImplementation("androidx.compose.ui:ui-tooling")
|
|
|
|
debugImplementation("androidx.compose.ui:ui-test-manifest")
|
|
|
|
|
2025-02-01 12:39:51 +02:00
|
|
|
implementation("androidx.appcompat:appcompat:1.7.0")
|
2023-12-27 13:27:02 -06:00
|
|
|
}
|