From 8827ccb568192a3e56e4c5706d84dcd2ffe2efd0 Mon Sep 17 00:00:00 2001 From: olly Date: Thu, 14 Oct 2021 11:38:53 +0100 Subject: [PATCH] Upgrade to WorkManager release compatible with Android 12 Issue #9181 #minor-release PiperOrigin-RevId: 403049218 --- RELEASENOTES.md | 5 +++++ extensions/workmanager/build.gradle | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 81e25f90eb..6e5f508aba 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -36,6 +36,11 @@ calls from the player to `Surface.setFrameRate`. This is useful for applications wanting to call `Surface.setFrameRate` directly from application code with Android 12's `Surface.CHANGE_FRAME_RATE_ALWAYS`. + * Upgrade the WorkManager extension to depend on + `androidx.work:work-runtime:2.7.0`. Earlier versions of `work-runtime` + are not compatible with apps targeting Android 12, and will crash with + an `IllegalArgumentException` when creating `PendingIntent`s + ([#9181](https://github.com/google/ExoPlayer/issues/9181)). * UI: * `SubtitleView` no longer implements `TextOutput`. `SubtitleView` implements `Player.Listener`, so can be registered to a player with diff --git a/extensions/workmanager/build.gradle b/extensions/workmanager/build.gradle index 02a1055d87..ba2de98729 100644 --- a/extensions/workmanager/build.gradle +++ b/extensions/workmanager/build.gradle @@ -17,7 +17,7 @@ apply from: "$gradle.ext.exoplayerSettingsDir/common_library_config.gradle" dependencies { implementation project(modulePrefix + 'library-core') - implementation 'androidx.work:work-runtime:2.5.0' + implementation 'androidx.work:work-runtime:2.7.0' compileOnly 'org.jetbrains.kotlin:kotlin-annotations-jvm:' + kotlinAnnotationsVersion }