* Update android-plugin to v8 * ci: upgrade to java 17 * fix: transitive R classes and buildconfig * lint: fix ktlint issues * lint: fix ktlint issues * lint: fix ktlint issues --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: jarnedemeulemeester <jarnedemeulemeester@gmail.com>
64 lines
1.7 KiB
Text
64 lines
1.7 KiB
Text
@Suppress("DSL_SCOPE_VIOLATION") // False positive
|
|
plugins {
|
|
alias(libs.plugins.android.library)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.kotlin.parcelize)
|
|
alias(libs.plugins.kotlin.kapt)
|
|
alias(libs.plugins.androidx.navigation.safeargs)
|
|
alias(libs.plugins.hilt)
|
|
alias(libs.plugins.ktlint)
|
|
}
|
|
|
|
android {
|
|
namespace = "dev.jdtech.jellyfin.core"
|
|
compileSdk = 33
|
|
buildToolsVersion = "33.0.2"
|
|
|
|
defaultConfig {
|
|
minSdk = 27
|
|
}
|
|
|
|
buildTypes {
|
|
getByName("release") {
|
|
isMinifyEnabled = false
|
|
}
|
|
create("staging") {
|
|
initWith(getByName("release"))
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
}
|
|
|
|
ktlint {
|
|
android.set(true)
|
|
ignoreFailures.set(false)
|
|
disabledRules.add("max-line-length")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":data"))
|
|
implementation(project(":preferences"))
|
|
implementation(project(":player:core"))
|
|
implementation(libs.androidx.activity)
|
|
implementation(libs.androidx.appcompat)
|
|
implementation(libs.androidx.core)
|
|
implementation(libs.androidx.lifecycle.runtime)
|
|
implementation(libs.androidx.lifecycle.viewmodel)
|
|
implementation(libs.androidx.navigation.fragment)
|
|
implementation(libs.androidx.paging)
|
|
implementation(libs.androidx.preference)
|
|
implementation(libs.androidx.room.runtime)
|
|
kapt(libs.androidx.room.compiler)
|
|
implementation(libs.androidx.room.ktx)
|
|
implementation(libs.glide)
|
|
kapt(libs.glide.compiler)
|
|
implementation(libs.hilt.android)
|
|
kapt(libs.hilt.compiler)
|
|
implementation(libs.jellyfin.core)
|
|
implementation(libs.material)
|
|
implementation(libs.timber)
|
|
}
|