ananas/data/build.gradle.kts
js6pak 31fd1e3fdc
Add intro skipper support (#219)
* Add intro skipper support

* Fix checking for 404

* Add back missing Intro class and dependencies due to rebase

* Add preference

* Clean up visibility logic

* Update skip intro button design

* Add proguard file to keep Serializable classes

* Move introCheck to a separate Runnable and fix Runnables are never cleaned up

* Simplify check before starting runnable

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-01-15 15:20:56 +01:00

56 lines
1.4 KiB
Text

@Suppress("DSL_SCOPE_VIOLATION") // False positive
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.ktlint)
}
android {
namespace = "dev.jdtech.jellyfin.data"
compileSdk = 33
buildToolsVersion = "33.0.1"
defaultConfig {
minSdk = 27
val appVersionCode: Int by rootProject.extra
val appVersionName: String by rootProject.extra
buildConfigField("int", "VERSION_CODE", appVersionCode.toString())
buildConfigField("String", "VERSION_NAME", "\"$appVersionName\"")
consumerProguardFile("proguard-rules.pro")
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
}
create("staging") {
initWith(getByName("release"))
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
}
ktlint {
android.set(true)
ignoreFailures.set(false)
disabledRules.add("max-line-length")
}
dependencies {
implementation(project(":preferences"))
implementation(libs.androidx.paging)
implementation(libs.jellyfin.core)
implementation(libs.kotlinx.serialization.json)
implementation(libs.timber)
}