Skip to content

Commit a2d274c

Browse files
google-ima-devrel-botIMA Developer Relations
authored andcommitted
Update IMA Android samples for v3.37.0:
- Update IMA dependency to v3.37.0. - Add core library desugaring (required by IMA v3.37.0+). - Update Android SDK to 36 and other dependencies. PiperOrigin-RevId: 790803436
1 parent d4ce4bd commit a2d274c

File tree

15 files changed

+55
-36
lines changed

15 files changed

+55
-36
lines changed

AdvancedExample/app/build.gradle

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@ apply plugin: 'com.android.application'
22

33
android {
44
namespace 'com.google.ads.interactivemedia.v3.samples.videoplayerapp'
5-
compileSdk 35
5+
compileSdk 36
66

7-
// Java 17 required by Gradle 8+
87
compileOptions {
8+
// Required by IMA SDK v3.37.0+
9+
coreLibraryDesugaringEnabled true
10+
11+
// Java 17 required by Gradle 8+
912
sourceCompatibility JavaVersion.VERSION_17
1013
targetCompatibility JavaVersion.VERSION_17
1114
}
1215

1316
defaultConfig {
1417
applicationId "com.google.ads.interactivemedia.v3.samples.videoplayerapp"
1518
minSdkVersion 21
16-
targetSdkVersion 35
19+
targetSdkVersion 36
1720
multiDexEnabled true
1821
versionCode 1
1922
versionName "1.0"
@@ -33,12 +36,13 @@ repositories {
3336
}
3437

3538
dependencies {
39+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
3640
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
3741
implementation 'androidx.multidex:multidex:2.0.1'
38-
implementation 'androidx.appcompat:appcompat:1.7.0'
42+
implementation 'androidx.appcompat:appcompat:1.7.1'
3943
implementation 'androidx.recyclerview:recyclerview:1.4.0'
4044
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
41-
implementation 'androidx.mediarouter:mediarouter:1.7.0'
45+
implementation 'androidx.mediarouter:mediarouter:1.8.1'
4246
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
43-
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.36.0'
47+
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.37.0'
4448
}

AdvancedExample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ buildscript {
66
mavenCentral()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.8.0'
9+
classpath 'com.android.tools.build:gradle:8.11.1'
1010
}
1111
}

AdvancedExample/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip
66

ExoPlayerExample/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
namespace 'com.google.ads.interactivemedia.v3.samples.exoplayerexample'
5-
compileSdk 35
5+
compileSdk 36
66

77
// Java 17 required by Gradle 8+
88
compileOptions {
@@ -13,7 +13,7 @@ android {
1313
defaultConfig {
1414
applicationId "com.google.ads.interactivemedia.v3.samples.exoplayerexample"
1515
minSdkVersion 21
16-
targetSdkVersion 35
16+
targetSdkVersion 36
1717
multiDexEnabled true
1818
versionCode 1
1919
versionName "1.0"
@@ -32,7 +32,7 @@ repositories {
3232
}
3333

3434
dependencies {
35-
def media3_version = "1.5.1"
35+
def media3_version = "1.8.0"
3636
implementation "androidx.media3:media3-ui:$media3_version"
3737
implementation "androidx.media3:media3-exoplayer:$media3_version"
3838

ExoPlayerExample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
mavenCentral()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.8.0'
9+
classpath 'com.android.tools.build:gradle:8.11.1'
1010

1111
// NOTE: Do not place your application dependencies here; they belong
1212
// in the individual module build.gradle files

ExoPlayerExample/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip

audioplayerexample/app/build.gradle

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,18 @@ apply plugin: 'com.android.application'
1616

1717
android {
1818
namespace 'com.google.ads.interactivemedia.v3.samples.audioplayerexample'
19-
compileSdk 35
19+
compileSdk 36
2020
compileOptions {
21+
// Required by IMA SDK v3.37.0+
22+
coreLibraryDesugaringEnabled true
23+
24+
// Java 17 required by Gradle 8+
2125
targetCompatibility JavaVersion.VERSION_17
2226
}
2327
defaultConfig {
2428
applicationId "com.google.ads.interactivemedia.v3.samples.audioplayerexample"
2529
minSdkVersion 29
26-
targetSdkVersion 35
30+
targetSdkVersion 36
2731
versionCode 1
2832
versionName "1.0"
2933
}
@@ -41,14 +45,15 @@ repositories {
4145
}
4246

4347
dependencies {
48+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
4449
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
45-
implementation 'androidx.appcompat:appcompat:1.7.0'
50+
implementation 'androidx.appcompat:appcompat:1.7.1'
4651
implementation 'androidx.media:media:1.7.0'
47-
def media3_version = "1.5.1"
52+
def media3_version = "1.8.0"
4853
implementation "androidx.media3:media3-ui:$media3_version"
4954
implementation "androidx.media3:media3-exoplayer:$media3_version"
5055
implementation "androidx.media3:media3-session:$media3_version"
5156

52-
implementation 'com.google.guava:guava:33.0.0-android'
53-
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.36.0'
57+
implementation 'com.google.guava:guava:33.4.8-android'
58+
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.37.0'
5459
}

audioplayerexample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ buildscript {
66
mavenCentral()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.8.0'
9+
classpath 'com.android.tools.build:gradle:8.11.0'
1010
}
1111
}

audioplayerexample/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip

basicexample/app/build.gradle

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,22 @@ apply plugin: 'com.android.application'
22

33
android {
44
namespace 'com.google.ads.interactivemedia.v3.samples.videoplayerapp'
5-
compileSdk 34
5+
compileSdk 36
66

77
// Java 17 required by Gradle 8+
88
compileOptions {
9+
// Required by IMA SDK v3.37.0+
10+
coreLibraryDesugaringEnabled true
11+
12+
// Java 17 required by Gradle 8+
913
sourceCompatibility JavaVersion.VERSION_17
1014
targetCompatibility JavaVersion.VERSION_17
1115
}
1216

1317
defaultConfig {
1418
applicationId "com.google.ads.interactivemedia.v3.samples.videoplayerapp"
1519
minSdkVersion 21
16-
targetSdkVersion 34
20+
targetSdkVersion 36
1721
multiDexEnabled true
1822
versionCode 1
1923
versionName "1.0"
@@ -32,9 +36,10 @@ repositories {
3236
}
3337

3438
dependencies {
39+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
3540
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
36-
implementation 'androidx.appcompat:appcompat:1.7.0'
37-
implementation 'androidx.browser:browser:1.8.0'
41+
implementation 'androidx.appcompat:appcompat:1.7.1'
42+
implementation 'androidx.browser:browser:1.9.0'
3843
implementation 'androidx.media:media:1.7.0'
39-
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.36.0'
44+
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.37.0'
4045
}

0 commit comments

Comments
 (0)