mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-23 19:26:50 +00:00
- Bump compileSdk/targetSdk from 36 to 37 across all modules - Upgrade gradle wrapper to 9.6.1 - Upgrade agp to 9.3.0, kotlin to 2.4.10, ksp to 2.3.10 - Upgrade composeBom to 2026.06.01 and compose libs - Upgrade hilt to 2.60.1, room to 2.8.4, media3 to 1.10.1 - Upgrade okhttp to 5.4.0, coil to 3.5.0, datastore to 1.2.1 - Upgrade lifecycle to 2.11.0, activity-compose to 1.13.0 - Upgrade firebase crashlytics to 20.1.0, gms services to 4.5.0
115 lines
4.0 KiB
Kotlin
115 lines
4.0 KiB
Kotlin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.kotlin.compose)
|
|
alias(libs.plugins.kotlin.serialization)
|
|
alias(libs.plugins.hilt)
|
|
alias(libs.plugins.ksp)
|
|
}
|
|
|
|
android {
|
|
namespace = "hu.bbara.purefin"
|
|
compileSdk = 37
|
|
|
|
defaultConfig {
|
|
applicationId = "hu.bbara.purefin"
|
|
minSdk = 29
|
|
targetSdk = 37
|
|
versionName = "0.1"
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
applicationIdSuffix = ".debug"
|
|
versionNameSuffix = "-debug"
|
|
manifestPlaceholders["updateManifestUrl"] = "https://apks.t.bbara.hu/apps/purefin-app-debug/update.json"
|
|
}
|
|
release {
|
|
// Enables code-related app optimization.
|
|
isMinifyEnabled = true
|
|
|
|
// Enables resource shrinking.
|
|
isShrinkResources = true
|
|
manifestPlaceholders["updateManifestUrl"] = "https://apks.t.bbara.hu/apps/purefin-app/update.json"
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
buildConfig = true
|
|
}
|
|
}
|
|
|
|
androidComponents {
|
|
onVariants(selector().withBuildType("debug")) { variant ->
|
|
variant.outputs.forEach { output ->
|
|
output.versionCode.set(providers.gradleProperty("purefinDebugVersionCode").map { it.toInt() })
|
|
}
|
|
}
|
|
onVariants(selector().withBuildType("release")) { variant ->
|
|
variant.outputs.forEach { output ->
|
|
output.versionCode.set(providers.gradleProperty("purefinReleaseVersionCode").map { it.toInt() })
|
|
}
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget.set(JvmTarget.JVM_11)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":data"))
|
|
implementation(project(":core"))
|
|
//TODO: temporary hack fix it
|
|
implementation(project(":core-model"))
|
|
implementation(project(":core-ui"))
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
implementation(libs.androidx.lifecycle.runtime.compose)
|
|
implementation(libs.androidx.lifecycle.viewmodel.compose)
|
|
implementation(libs.androidx.lifecycle.viewmodel.navigation3)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
implementation(libs.androidx.compose.ui)
|
|
implementation(libs.androidx.compose.ui.graphics)
|
|
implementation(libs.androidx.compose.ui.tooling.preview)
|
|
implementation(libs.androidx.compose.material3)
|
|
implementation(libs.androidx.compose.material.icons.extended)
|
|
implementation(libs.jellyfin.core)
|
|
implementation(libs.kotlinx.serialization.json)
|
|
implementation(libs.hilt)
|
|
implementation(libs.androidx.hilt.navigation.compose)
|
|
implementation(libs.datastore)
|
|
implementation(libs.okhttp)
|
|
implementation(libs.logging.interceptor)
|
|
implementation(libs.androidx.compose.foundation)
|
|
implementation(libs.coil.compose)
|
|
implementation(libs.coil.network.okhttp)
|
|
implementation(libs.medi3.ui)
|
|
implementation(libs.medi3.exoplayer)
|
|
implementation(libs.medi3.ui.compose)
|
|
implementation(libs.medi3.ffmpeg.decoder)
|
|
implementation(libs.media3.datasource.okhttp)
|
|
implementation(libs.androidx.navigation3.runtime)
|
|
implementation(libs.androidx.navigation3.ui)
|
|
testImplementation(libs.junit)
|
|
androidTestImplementation(libs.androidx.junit)
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
androidTestImplementation(platform(libs.androidx.compose.bom))
|
|
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
|
|
debugImplementation(libs.androidx.compose.ui.tooling)
|
|
debugImplementation(libs.androidx.compose.ui.test.manifest)
|
|
ksp(libs.hilt.compiler)
|
|
}
|