ananas/data/build.gradle.kts
Jarne Demeulemeester 76121925d7
Modularize the codebase (#230)
* Split app into core and app:phone

* Use global versionCode and versionName

* Clean up gradle dependencies

* Use string formatting inside getString function

* Move proguard file to app:phone

* Move app_navigation and BasePlayerActivity to app:phone

* Add buildTypes to core gradle and remove buildFeatures

* Add suffix core to core namespace

* Split code into 4 more modules: data, preferences, player:core and player:video

* Clean up some gradle files

* Clean up data gradle

* Remove duplicate Constants.kt

* Use AppPreferences in more places

* Split off strings

* Remove unused animations

* Make about_libraries strings non-translatable

* Move mpv assets to player:video module

* Make AppPreferences a Singleton
2023-01-13 23:51:20 +01:00

49 lines
1.2 KiB
Text

@Suppress("DSL_SCOPE_VIOLATION") // False positive
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.ktlint)
}
android {
namespace = "dev.jdtech.jellyfin.data"
compileSdk = 33
buildToolsVersion = "33.0.1"
defaultConfig {
minSdk = 27
targetSdk = 33
val appVersionCode: Int by rootProject.extra
val appVersionName: String by rootProject.extra
buildConfigField("int", "VERSION_CODE", appVersionCode.toString())
buildConfigField("String", "VERSION_NAME", "\"$appVersionName\"")
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
}
create("staging") {
initWith(getByName("release"))
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
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.timber)
}