Skip to content

Commit

Permalink
Updates sample apps to IMA v3.31.0
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 579215750
  • Loading branch information
google-ima-devrel-bot authored and IMA Developer Relations committed Nov 3, 2023
1 parent bf87abe commit ac2e591
Show file tree
Hide file tree
Showing 17 changed files with 32 additions and 30 deletions.
10 changes: 5 additions & 5 deletions AdvancedExample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
namespace 'com.google.ads.interactivemedia.v3.samples.videoplayerapp'
compileSdk 33
compileSdk 34

// Java 17 required by Gradle 8+
compileOptions {
Expand All @@ -13,7 +13,7 @@ android {
defaultConfig {
applicationId "com.google.ads.interactivemedia.v3.samples.videoplayerapp"
minSdkVersion 19
targetSdkVersion 33
targetSdkVersion 34
multiDexEnabled true
versionCode 1
versionName "1.0"
Expand All @@ -36,9 +36,9 @@ dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.recyclerview:recyclerview:1.3.1'
implementation 'androidx.recyclerview:recyclerview:1.3.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.mediarouter:mediarouter:1.4.0'
implementation 'androidx.mediarouter:mediarouter:1.6.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.30.3'
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.31.0'
}
2 changes: 1 addition & 1 deletion AdvancedExample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.2'
classpath 'com.android.tools.build:gradle:8.1.2'
}
}
2 changes: 1 addition & 1 deletion AdvancedExample/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip

6 changes: 3 additions & 3 deletions ExoPlayerExample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
namespace 'com.google.ads.interactivemedia.v3.samples.exoplayerexample'
compileSdk 33
compileSdk 34

// Java 17 required by Gradle 8+
compileOptions {
Expand All @@ -13,7 +13,7 @@ android {
defaultConfig {
applicationId "com.google.ads.interactivemedia.v3.samples.exoplayerexample"
minSdkVersion 21
targetSdkVersion 33
targetSdkVersion 34
multiDexEnabled true
versionCode 1
versionName "1.0"
Expand All @@ -32,7 +32,7 @@ repositories {
}

dependencies {
def media3_version = "1.1.0"
def media3_version = "1.1.1"
implementation "androidx.media3:media3-ui:$media3_version"
implementation "androidx.media3:media3-exoplayer:$media3_version"

Expand Down
2 changes: 1 addition & 1 deletion ExoPlayerExample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.android.tools.build:gradle:8.1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion ExoPlayerExample/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
8 changes: 4 additions & 4 deletions audioplayerexample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ apply plugin: 'com.android.application'

android {
namespace 'com.google.ads.interactivemedia.v3.samples.audioplayerexample'
compileSdk 33
compileSdk 34
compileOptions {
targetCompatibility JavaVersion.VERSION_17
}
defaultConfig {
applicationId "com.google.ads.interactivemedia.v3.samples.audioplayerexample"
minSdkVersion 21
targetSdkVersion 33
targetSdkVersion 34
versionCode 1
versionName "1.0"
}
Expand All @@ -44,11 +44,11 @@ dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.media:media:1.6.0'
def media3_version = "1.1.0"
def media3_version = "1.1.1"
implementation "androidx.media3:media3-ui:$media3_version"
implementation "androidx.media3:media3-exoplayer:$media3_version"
implementation "androidx.media3:media3-session:$media3_version"

implementation 'com.google.guava:guava:28.1-android'
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.30.3'
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.31.0'
}
2 changes: 1 addition & 1 deletion audioplayerexample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.2'
classpath 'com.android.tools.build:gradle:8.1.2'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
8 changes: 4 additions & 4 deletions basicexample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
namespace 'com.google.ads.interactivemedia.v3.samples.videoplayerapp'
compileSdk 33
compileSdk 34

// Java 17 required by Gradle 8+
compileOptions {
Expand All @@ -13,7 +13,7 @@ android {
defaultConfig {
applicationId "com.google.ads.interactivemedia.v3.samples.videoplayerapp"
minSdkVersion 21
targetSdkVersion 32
targetSdkVersion 34
multiDexEnabled true
versionCode 1
versionName "1.0"
Expand All @@ -34,7 +34,7 @@ repositories {
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.browser:browser:1.5.0'
implementation 'androidx.browser:browser:1.6.0'
implementation 'androidx.media:media:1.6.0'
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.30.3'
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.31.0'
}
1 change: 1 addition & 0 deletions basicexample/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

<!-- Required permissions for the IMA SDK -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>

<application
android:allowBackup="true"
Expand Down
2 changes: 1 addition & 1 deletion basicexample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.2'
classpath 'com.android.tools.build:gradle:8.1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion basicexample/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
8 changes: 4 additions & 4 deletions umpexample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
namespace 'com.google.ads.interactivemedia.v3.samples.umpimaapp'
compileSdk 33
compileSdk 34

// Java 17 required by Gradle 8+
compileOptions {
Expand All @@ -13,7 +13,7 @@ android {
defaultConfig {
applicationId "com.google.ads.interactivemedia.v3.samples.umpimaapp"
minSdkVersion 21
targetSdkVersion 32
targetSdkVersion 34
multiDexEnabled true
versionCode 1
versionName "1.0"
Expand All @@ -34,8 +34,8 @@ repositories {
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.browser:browser:1.5.0'
implementation 'androidx.browser:browser:1.6.0'
implementation 'androidx.media:media:1.6.0'
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.30.3'
implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.31.0'
implementation 'com.google.android.ump:user-messaging-platform:2.1.0'
}
1 change: 1 addition & 0 deletions umpexample/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

<!-- Required permissions for the IMA SDK -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>

<application
android:allowBackup="true"
Expand Down
2 changes: 1 addition & 1 deletion umpexample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.2'
classpath 'com.android.tools.build:gradle:8.1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion umpexample/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip

0 comments on commit ac2e591

Please sign in to comment.