Upgrade IMA SDK dependency to 3.21.0

Call the new method AdsLoader.release() to allow the IMA SDK to dispose of its
WebView.

Issue: #7344
PiperOrigin-RevId: 339022162
This commit is contained in:
andrewlewis 2020-10-26 12:59:26 +00:00 committed by Ian Baker
parent 9ad70246e6
commit 7cc129d7b7
3 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,9 @@
* Suppress exceptions from registering/unregistering the stream volume * Suppress exceptions from registering/unregistering the stream volume
receiver ([#8087](https://github.com/google/ExoPlayer/issues/8087)), receiver ([#8087](https://github.com/google/ExoPlayer/issues/8087)),
([#8106](https://github.com/google/ExoPlayer/issues/8106)). ([#8106](https://github.com/google/ExoPlayer/issues/8106)).
* IMA extension:
* Upgrade IMA SDK dependency to 3.21.0, and release the `AdsLoader`
([#7344](https://github.com/google/ExoPlayer/issues/7344)).
### 2.12.1 (2020-10-23) ### ### 2.12.1 (2020-10-23) ###

View File

@ -25,7 +25,7 @@ android {
} }
dependencies { dependencies {
api 'com.google.ads.interactivemedia.v3:interactivemedia:3.20.1' api 'com.google.ads.interactivemedia.v3:interactivemedia:3.21.0'
implementation project(modulePrefix + 'library-core') implementation project(modulePrefix + 'library-core')
implementation 'androidx.annotation:annotation:' + androidxAnnotationVersion implementation 'androidx.annotation:annotation:' + androidxAnnotationVersion
implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0' implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'

View File

@ -871,6 +871,7 @@ public final class ImaAdsLoader
if (configuration.applicationAdErrorListener != null) { if (configuration.applicationAdErrorListener != null) {
adsLoader.removeAdErrorListener(configuration.applicationAdErrorListener); adsLoader.removeAdErrorListener(configuration.applicationAdErrorListener);
} }
adsLoader.release();
} }
imaPausedContent = false; imaPausedContent = false;
imaAdState = IMA_AD_STATE_NONE; imaAdState = IMA_AD_STATE_NONE;