Skip to content

Commit 4a468ef

Browse files
committed
Updating PubMatic Flutter mediation plugin to support the latest adapters (4.11.0.1, 4.11.0.0)
PiperOrigin-RevId: 866121252
1 parent ec30877 commit 4a468ef

File tree

9 files changed

+28
-23
lines changed

9 files changed

+28
-23
lines changed

packages/mediation/gma_mediation_pubmatic/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Pubmatic Flutter Mediation Adapter Changelog
22

3+
#### Version 1.5.0 (In progress)
4+
- Updated minimum Flutter version to 3.35.1
5+
- Updated to support Google Mobile Ads Flutter Plugin version 7.0.0
6+
37
#### Version 1.4.1
48
- Supports [PubMatic Android adapter version 4.10.0.1](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/pubmatic/CHANGELOG.md#version-41001).
59
- Supports [PubMatic iOS adapter version 4.10.0.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/PubMatic/CHANGELOG.md#version-41000).

packages/mediation/gma_mediation_pubmatic/android/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
group = "io.flutter.plugins.googlemobileads.mediation.gma_mediation_pubmatic"
2-
version = "1.4.1"
2+
version = "1.5.0"
33

44
buildscript {
5-
ext.kotlin_version = "2.1.0"
5+
ext.kotlin_version = "2.2.21"
66
repositories {
77
google()
88
mavenCentral()
99
}
1010

1111
dependencies {
12-
classpath("com.android.tools.build:gradle:8.7.3")
12+
classpath("com.android.tools.build:gradle:8.13.1")
1313
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
1414
}
1515
}
@@ -25,13 +25,13 @@ apply plugin: "com.android.library"
2525
apply plugin: "kotlin-android"
2626

2727
ext {
28-
stringVersion = "4.10.0.1"
28+
stringVersion = "4.11.0.1"
2929
}
3030

3131
android {
3232
namespace = "io.flutter.plugins.googlemobileads.mediation.gma_mediation_pubmatic"
3333

34-
compileSdk = 35
34+
compileSdk = 36
3535

3636
compileOptions {
3737
sourceCompatibility = JavaVersion.VERSION_11
@@ -53,7 +53,7 @@ android {
5353

5454
dependencies {
5555
implementation "com.google.ads.mediation:pubmatic:$stringVersion"
56-
implementation 'com.google.android.gms:play-services-ads:24.4.0'
56+
implementation 'com.google.android.gms:play-services-ads:24.9.0'
5757
testImplementation("org.jetbrains.kotlin:kotlin-test")
5858
testImplementation("org.mockito:mockito-core:5.5.0")
5959
}

packages/mediation/gma_mediation_pubmatic/example/android/app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ android {
2323
applicationId = "io.flutter.plugins.googlemobileads.mediation.gma_mediation_pubmatic_example"
2424
// You can update the following values to match your application needs.
2525
// For more information, see: https://flutter.dev/to/review-gradle-config.
26-
minSdk = flutter.minSdkVersion
26+
minSdk = 24
2727
targetSdk = flutter.targetSdkVersion
2828
versionCode = flutter.versionCode
2929
versionName = flutter.versionName

packages/mediation/gma_mediation_pubmatic/example/android/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.12-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip

packages/mediation/gma_mediation_pubmatic/example/android/settings.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pluginManagement {
1818

1919
plugins {
2020
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
21-
id("com.android.application") version "8.7.3" apply false
22-
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
21+
id("com.android.application") version "8.13.1" apply false
22+
id("org.jetbrains.kotlin.android") version "2.2.21" apply false
2323
}
2424

2525
include(":app")

packages/mediation/gma_mediation_pubmatic/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347347
GCC_WARN_UNUSED_FUNCTION = YES;
348348
GCC_WARN_UNUSED_VARIABLE = YES;
349-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
349+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
350350
MTL_ENABLE_DEBUG_INFO = NO;
351351
SDKROOT = iphoneos;
352352
SUPPORTED_PLATFORMS = iphoneos;
@@ -472,7 +472,7 @@
472472
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
473473
GCC_WARN_UNUSED_FUNCTION = YES;
474474
GCC_WARN_UNUSED_VARIABLE = YES;
475-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
475+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
476476
MTL_ENABLE_DEBUG_INFO = YES;
477477
ONLY_ACTIVE_ARCH = YES;
478478
SDKROOT = iphoneos;
@@ -523,7 +523,7 @@
523523
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
524524
GCC_WARN_UNUSED_FUNCTION = YES;
525525
GCC_WARN_UNUSED_VARIABLE = YES;
526-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
526+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
527527
MTL_ENABLE_DEBUG_INFO = NO;
528528
SDKROOT = iphoneos;
529529
SUPPORTED_PLATFORMS = iphoneos;

packages/mediation/gma_mediation_pubmatic/example/pubspec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Demonstrates how to use the gma_mediation_pubmatic plugin."
55
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
66

77
environment:
8-
sdk: ^3.8.1
8+
sdk: ^3.9.0
99

1010
# Dependencies specify other packages that your package needs in order to work.
1111
# To automatically upgrade your package dependencies to the latest versions
@@ -17,6 +17,7 @@ dependencies:
1717
flutter:
1818
sdk: flutter
1919

20+
google_mobile_ads: ^7.0.0
2021
gma_mediation_pubmatic:
2122
# When depending on this package from a real application you should use:
2223
# gma_mediation_pubmatic: ^x.y.z
@@ -40,7 +41,7 @@ dev_dependencies:
4041
# activated in the `analysis_options.yaml` file located at the root of your
4142
# package. See that file for information about deactivating specific lint
4243
# rules and activating additional ones.
43-
flutter_lints: ^5.0.0
44+
flutter_lints: ^6.0.0
4445

4546
# For information on the generic Dart part of this file, see the
4647
# following page: https://dart.dev/tools/pub/pubspec

packages/mediation/gma_mediation_pubmatic/ios/gma_mediation_pubmatic.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'gma_mediation_pubmatic'
3-
s.version = '1.4.1'
3+
s.version = '1.5.0'
44
s.summary = 'Google Mobile Ads Mediation of Pubmatic.'
55
s.description = <<-DESC
66
Mediation Adapter for Pubmatic to use with Google Mobile Ads.
@@ -11,8 +11,8 @@ Pod::Spec.new do |s|
1111
s.source = { :path => '.' }
1212
s.source_files = 'Classes/**/*'
1313
s.dependency 'Flutter'
14-
s.dependency 'GoogleMobileAdsMediationPubMatic', '~> 4.10.0.0'
15-
s.platform = :ios, '12.0'
14+
s.dependency 'GoogleMobileAdsMediationPubMatic', '~> 4.11.0.1'
15+
s.platform = :ios, '13.0'
1616
s.static_framework = true
1717

1818
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }

packages/mediation/gma_mediation_pubmatic/pubspec.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
name: gma_mediation_pubmatic
22
description: 'Mediation Adapter that enables sending ad requests to the Pubmatic
33
ad network using the google_mobile_ads plugin.'
4-
version: 1.4.1
4+
version: 1.5.0
55
environment:
6-
sdk: '>=3.6.0 <4.0.0'
7-
flutter: '>=3.27.0'
6+
sdk: '>=3.9.0 <4.0.0'
7+
flutter: '>=3.35.1'
88
dependencies:
99
flutter:
1010
sdk: flutter
11-
google_mobile_ads: ^6.0.0
11+
google_mobile_ads: ^7.0.0
1212
plugin_platform_interface: ^2.0.2
1313
dev_dependencies:
1414
flutter_test:
1515
sdk: flutter
16-
flutter_lints: ^5.0.0
16+
flutter_lints: ^6.0.0
1717
lint: ^2.4.0
1818
flutter:
1919
plugin:

0 commit comments

Comments
 (0)