Skip to content

Commit

Permalink
Update android.plugin to v8 (major) (#1101)
Browse files Browse the repository at this point in the history
* Update android.plugin to v8

* Migrate to AGP v8

Handle some behavior changes after the upgrade.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Maxr1998 <max.rumpf1998@gmail.com>
  • Loading branch information
renovate[bot] and Maxr1998 authored Jun 10, 2023
1 parent 86577ec commit f5b9562
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ android {

@Suppress("UnstableApiUsage")
buildFeatures {
buildConfig = true
viewBinding = true
compose = true
}
Expand Down Expand Up @@ -156,9 +157,7 @@ dependencies {
exclude("com.google.android.gms", "play-services-cronet")
}
implementation(libs.jellyfin.exoplayer.ffmpegextension)
@Suppress("UnstableApiUsage")
proprietaryImplementation(libs.exoplayer.cast)
@Suppress("UnstableApiUsage")
proprietaryImplementation(libs.bundles.playservices)

// Room
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import org.jellyfin.mobile.utils.extensions.keepScreenOn
import org.jellyfin.mobile.utils.toast
import org.jellyfin.sdk.model.api.MediaStream
import org.koin.android.ext.android.inject
import com.google.android.exoplayer2.ui.R as ExoplayerR

class PlayerFragment : Fragment() {
private val appPreferences: AppPreferences by inject()
Expand Down Expand Up @@ -329,7 +330,7 @@ class PlayerFragment : Fragment() {
}
}
setAspectRatio(aspectRational)
val contentFrame: View = playerView.findViewById(R.id.exo_content_frame)
val contentFrame: View = playerView.findViewById(ExoplayerR.id.exo_content_frame)
val contentRect = with(contentFrame) {
val (x, y) = intArrayOf(0, 0).also(::getLocationInWindow)
Rect(x, y, x + width, y + height)
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
# Plugins
android-plugin = "7.4.2"
android-plugin = "8.0.2"
kotlin = "1.7.20"
kotlin-ksp = "1.7.20-1.0.8"
detekt = "1.22.0"
Expand Down

0 comments on commit f5b9562

Please sign in to comment.