* 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>
108 lines
3.1 KiB
Text
108 lines
3.1 KiB
Text
@Suppress("DSL_SCOPE_VIOLATION") // False positive
|
|
plugins {
|
|
alias(libs.plugins.android.application)
|
|
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.aboutlibraries)
|
|
alias(libs.plugins.ktlint)
|
|
}
|
|
|
|
android {
|
|
namespace = "dev.jdtech.jellyfin"
|
|
compileSdk = 33
|
|
buildToolsVersion = "33.0.2"
|
|
|
|
defaultConfig {
|
|
applicationId = "dev.jdtech.jellyfin"
|
|
minSdk = 27
|
|
targetSdk = 33
|
|
|
|
val appVersionCode: Int by rootProject.extra
|
|
val appVersionName: String by rootProject.extra
|
|
|
|
versionCode = appVersionCode
|
|
versionName = appVersionName
|
|
}
|
|
|
|
buildTypes {
|
|
getByName("debug") {
|
|
applicationIdSuffix = ".debug"
|
|
}
|
|
getByName("release") {
|
|
isMinifyEnabled = true
|
|
isShrinkResources = true
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
create("staging") {
|
|
initWith(getByName("release"))
|
|
applicationIdSuffix = ".staging"
|
|
}
|
|
}
|
|
|
|
splits {
|
|
abi {
|
|
isEnable = true
|
|
reset()
|
|
include("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
|
|
isUniversalApk = true
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
buildFeatures {
|
|
dataBinding = true
|
|
viewBinding = true
|
|
}
|
|
}
|
|
|
|
ktlint {
|
|
android.set(true)
|
|
ignoreFailures.set(false)
|
|
disabledRules.add("max-line-length")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":core"))
|
|
implementation(project(":data"))
|
|
implementation(project(":preferences"))
|
|
implementation(project(":player:core"))
|
|
implementation(project(":player:video"))
|
|
implementation(libs.aboutlibraries.core)
|
|
implementation(libs.aboutlibraries)
|
|
implementation(libs.androidx.activity)
|
|
implementation(libs.androidx.appcompat)
|
|
implementation(libs.androidx.constraintlayout)
|
|
implementation(libs.androidx.core)
|
|
implementation(libs.androidx.lifecycle.runtime)
|
|
implementation(libs.androidx.lifecycle.viewmodel)
|
|
implementation(libs.androidx.media3.exoplayer)
|
|
implementation(libs.androidx.media3.ui)
|
|
implementation(libs.androidx.media3.session)
|
|
implementation(libs.androidx.navigation.fragment)
|
|
implementation(libs.androidx.navigation.ui)
|
|
implementation(libs.androidx.paging)
|
|
implementation(libs.androidx.preference)
|
|
implementation(libs.androidx.recyclerview)
|
|
implementation(libs.androidx.recyclerview.selection)
|
|
implementation(libs.androidx.room.ktx)
|
|
implementation(libs.androidx.swiperefreshlayout)
|
|
implementation(libs.glide)
|
|
implementation(libs.hilt.android)
|
|
kapt(libs.hilt.compiler)
|
|
implementation(libs.jellyfin.core)
|
|
compileOnly(libs.libmpv)
|
|
implementation(libs.material)
|
|
implementation(libs.timber)
|
|
|
|
implementation(rootProject.files("libs/lib-decoder-ffmpeg-release.aar"))
|
|
}
|