* Add basic leanback support * Add TV home fragment Adds basic media browsing screen for TV. Shows Home screen media. * Fix double emit when loading user views * Fix bug when going back to this screen would duplicate menu items * Add basic media detail fragment * Add ability to navigate to detail fragment * Fix imports and null safe calls * Fix displaying of home item view type media files * Playback refactor * Add basic Tv player controls and split PlayerActivity * Update strings * Add progress bar to partially played items on TV home screen * Track selection dialog PoC * Update track selection WIP * Show track selection of focus change * Fix series display from home * Minor updates * Add back button to media detail * Zero effort add server and login * Fix colors * Fix back button from home going back to init fragment * Add settings button to home screen * Fix crash after goig back from media detail fragment * Show seasons and cast * Merge branch 'develop' into add_basic_tv_support # Conflicts: # app/src/main/java/dev/jdtech/jellyfin/MainActivity.kt # app/src/main/java/dev/jdtech/jellyfin/dialogs/VideoVersionDialogFragment.kt # app/src/main/res/navigation/app_navigation.xml * Fix cast title being shown with empty cast list * Remove useless method * Remove unused parameter * Fix crash due to colorOnPrimary not existing in Leanback styles * Remove unused theme * Fix home to addserver fragment navigation * Reuse home item layouts This creates some duplicate code which will probably be cleaned up later * Ignore more MissingDefaultResource * Add banner Co-authored-by: Jarne Demeulemeester <32322857+jarnedemeulemeester@users.noreply.github.com>
125 lines
No EOL
3.8 KiB
Text
125 lines
No EOL
3.8 KiB
Text
plugins {
|
|
id("com.android.application")
|
|
id("kotlin-android")
|
|
id("kotlin-parcelize")
|
|
id("kotlin-kapt")
|
|
id("androidx.navigation.safeargs.kotlin")
|
|
id("dagger.hilt.android.plugin")
|
|
id("com.mikepenz.aboutlibraries.plugin")
|
|
}
|
|
|
|
android {
|
|
compileSdk = 31
|
|
buildToolsVersion = "31.0.0"
|
|
|
|
defaultConfig {
|
|
applicationId = "dev.jdtech.jellyfin"
|
|
minSdk = 24
|
|
targetSdk = 31
|
|
versionCode = 5
|
|
versionName = "0.2.1"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
isCoreLibraryDesugaringEnabled = true
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
buildFeatures {
|
|
dataBinding = true
|
|
viewBinding = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("androidx.leanback:leanback:1.2.0-alpha01")
|
|
|
|
implementation("androidx.core:core-ktx:1.6.0")
|
|
implementation("androidx.core:core-splashscreen:1.0.0-alpha02")
|
|
implementation("androidx.appcompat:appcompat:1.3.1")
|
|
|
|
// Material
|
|
implementation("com.google.android.material:material:1.4.0")
|
|
|
|
// ConstraintLayout
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.1")
|
|
|
|
// Navigation
|
|
val navigationVersion = "2.3.5"
|
|
implementation("androidx.navigation:navigation-fragment-ktx:$navigationVersion")
|
|
implementation("androidx.navigation:navigation-ui-ktx:$navigationVersion")
|
|
|
|
// RecyclerView
|
|
implementation("androidx.recyclerview:recyclerview:1.2.1")
|
|
implementation("androidx.recyclerview:recyclerview-selection:1.1.0")
|
|
|
|
// Room
|
|
val roomVersion = "2.3.0"
|
|
implementation("androidx.room:room-runtime:$roomVersion")
|
|
kapt("androidx.room:room-compiler:$roomVersion")
|
|
implementation("androidx.room:room-ktx:$roomVersion")
|
|
|
|
// Preference
|
|
val preferenceVersion = "1.1.1"
|
|
implementation("androidx.preference:preference-ktx:$preferenceVersion")
|
|
|
|
// Jellyfin
|
|
val jellyfinVersion = "1.1.0"
|
|
implementation("org.jellyfin.sdk:jellyfin-core:$jellyfinVersion")
|
|
|
|
// Glide
|
|
val glideVersion = "4.12.0"
|
|
implementation("com.github.bumptech.glide:glide:$glideVersion")
|
|
kapt("com.github.bumptech.glide:compiler:$glideVersion")
|
|
|
|
// Hilt
|
|
val hiltVersion = "2.39.1"
|
|
implementation("com.google.dagger:hilt-android:$hiltVersion")
|
|
kapt("com.google.dagger:hilt-compiler:$hiltVersion")
|
|
|
|
// ExoPlayer
|
|
val exoplayerVersion = "2.15.1"
|
|
implementation("com.google.android.exoplayer:exoplayer-core:$exoplayerVersion")
|
|
implementation("com.google.android.exoplayer:exoplayer-ui:$exoplayerVersion")
|
|
implementation(files("libs/extension-ffmpeg-release.aar"))
|
|
|
|
// MPV
|
|
implementation(files("libs/libmpv.aar"))
|
|
|
|
// Timber
|
|
val timberVersion = "5.0.1"
|
|
implementation("com.jakewharton.timber:timber:$timberVersion")
|
|
|
|
val aboutLibrariesVersion = "8.9.1"
|
|
implementation("com.mikepenz:aboutlibraries-core:$aboutLibrariesVersion")
|
|
implementation("com.mikepenz:aboutlibraries:$aboutLibrariesVersion")
|
|
|
|
// Testing
|
|
testImplementation("junit:junit:4.13.2")
|
|
androidTestImplementation("androidx.test.ext:junit:1.1.3")
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
|
|
|
|
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.5")
|
|
} |