Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport minimal core changes for new playback module #1229

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ class PlaybackForwardingActivity : FragmentActivity() {

if (itemId == null) {
Toast.makeText(
this,
"Could not find item to play (itemId=null)",
Toast.LENGTH_LONG
this,
"Could not find item to play (itemId=null)",
Toast.LENGTH_LONG
).show()
finishAfterTransition()
return
Expand All @@ -45,9 +45,9 @@ class PlaybackForwardingActivity : FragmentActivity() {

// Log info
Toast.makeText(
this@PlaybackForwardingActivity,
"Found item of type ${item.type} - ${item.name} (${item.id}",
Toast.LENGTH_LONG
this@PlaybackForwardingActivity,
"Found item of type ${item.type} - ${item.name} (${item.id}",
Toast.LENGTH_LONG
).show()
Timber.i(item.toString())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DeveloperPreferencesScreen : OptionsFragment() {
bind(userPreferences, UserPreferences.debuggingEnabled)
}

// Only show in debug mode
// Only show in development mode
if (BuildConfig.DEVELOPMENT) {
checkbox {
setTitle(R.string.enable_playback_module_title)
Expand Down
5 changes: 4 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[versions]
kotlinx-coroutines = "1.4.3"
kotlinx-coroutines = "1.5.2"
kotlinx-serialization = "1.1.0"
androidx-leanback = "1.1.0-beta01"
androidx-lifecycle = "2.3.1"
koin = "3.1.2"
glide = "4.12.0"
acra = "5.8.4"
aboutlibraries = "8.9.3"
androidx-media2 = "1.2.0"

[libraries]
# Jellyfin apiclient
Expand All @@ -16,6 +17,7 @@ jellyfin-sdk = { module = "org.jellyfin.sdk:jellyfin-core", version = "1.1.0" }

# Kotlin
kotlinx-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinx-coroutines" }
kotlinx-coroutines-guava = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-guava", version.ref = "kotlinx-coroutines" }
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization" }

# Android(x)
Expand All @@ -37,6 +39,7 @@ androidx-lifecycle-service = { module = "androidx.lifecycle:lifecycle-service",
androidx-lifecycle-process = { module = "androidx.lifecycle:lifecycle-process", version.ref = "androidx-lifecycle" }
androidx-window = { module = "androidx.window:window", version = "1.0.0-alpha09" }
androidx-cardview = { module = "androidx.cardview:cardview", version = "1.0.0" }
androidx-media2-session = { module = "androidx.media2:media2-session", version = "androidx-media2"}

# Dependency Injection
koin-android-core = { module = "io.insert-koin:koin-android", version.ref = "koin" }
Expand Down