Skip to content

Commit cf93591

Browse files
committed
Updating UnityAds Flutter mediation plugin to support the latest adapters (4.16.5.0, 4.16.5.0)
PiperOrigin-RevId: 853864398
1 parent db97253 commit cf93591

File tree

10 files changed

+18
-17
lines changed

10 files changed

+18
-17
lines changed

packages/mediation/gma_mediation_unity/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## Unity Ads Flutter Mediation Adapter Changelog
22

33
#### Version 1.6.4 (In progress)
4+
- Updated minimum Flutter version to 3.35.1
5+
- Updated to support Google Mobile Ads Flutter Plugin version 7.0.0
46

57
#### Version 1.6.3
68
- Supports [Unity Android adapter version 4.16.3.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/unity/CHANGELOG.md#version-41630).

packages/mediation/gma_mediation_unity/android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ group 'io.flutter.plugins.googlemobileads.mediation.gma_mediation_unity'
22
version = "1.6.4"
33

44
buildscript {
5-
ext.kotlin_version = '2.0.21'
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.0.2'
12+
classpath 'com.android.tools.build:gradle:8.13.1'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
1515
}
@@ -33,7 +33,7 @@ android {
3333
namespace 'io.flutter.plugins.googlemobileads.mediation.gma_mediation_unity'
3434
}
3535

36-
compileSdkVersion 34
36+
compileSdkVersion 36
3737

3838
compileOptions {
3939
sourceCompatibility JavaVersion.VERSION_11
@@ -64,7 +64,7 @@ android {
6464
testImplementation 'org.jetbrains.kotlin:kotlin-stdlib:1.8.20'
6565
testImplementation 'org.mockito:mockito-core:5.5.0'
6666
testImplementation 'org.mockito.kotlin:mockito-kotlin:5.1.0'
67-
testImplementation 'org.robolectric:robolectric:4.10.3'
67+
testImplementation 'org.robolectric:robolectric:4.16'
6868
}
6969

7070
testOptions {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

packages/mediation/gma_mediation_unity/example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '2.0.21'
2+
ext.kotlin_version = '2.2.21'
33
repositories {
44
google()
55
mavenCentral()

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

packages/mediation/gma_mediation_unity/example/android/settings.gradle

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

2424
plugins {
2525
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
26-
id "com.android.application" version "8.7.0" apply false
27-
id 'org.jetbrains.kotlin.android' version '2.0.21' apply false
26+
id "com.android.application" version "8.13.1" apply false
27+
id 'org.jetbrains.kotlin.android' version '2.2.21' apply false
2828
}
2929

3030
include ":app"

packages/mediation/gma_mediation_unity/example/ios/Podfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Uncomment this line to define a global platform for your project
21
platform :ios, '13.0'
32

43
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.

packages/mediation/gma_mediation_unity/example/pubspec.yaml

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

77
environment:
8-
sdk: '>=3.6.0 <4.0.0'
8+
sdk: '>=3.9.0 <4.0.0'
99

1010
dependencies:
1111
flutter:
1212
sdk: flutter
1313

14-
google_mobile_ads: ^6.0.0
14+
google_mobile_ads: ^7.0.0
1515
gma_mediation_unity:
1616
path: ../
1717

@@ -22,7 +22,7 @@ dev_dependencies:
2222
sdk: flutter
2323
flutter_test:
2424
sdk: flutter
25-
flutter_lints: ^2.0.0
25+
flutter_lints: ^6.0.0
2626

2727
flutter:
2828
uses-material-design: true

packages/mediation/gma_mediation_unity/ios/gma_mediation_unity.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Mediation Adapter for Unity Ads to use with Google Mobile Ads.
1616
s.source_files = 'Classes/**/*'
1717
s.public_header_files = 'Classes/**/*.h'
1818
s.dependency 'Flutter'
19-
s.dependency 'GoogleMobileAdsMediationUnity', '~>4.16.4.0'
19+
s.dependency 'GoogleMobileAdsMediationUnity', '~>4.16.5.0'
2020
s.platform = :ios, '13.0'
2121
s.static_framework = true
2222

packages/mediation/gma_mediation_unity/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ version: 1.6.4
44
repository: https://github.com/googleads/googleads-mobile-flutter/tree/main/packages/mediation/gma_mediation_unity
55

66
environment:
7-
sdk: '>=3.6.0 <4.0.0'
7+
sdk: '>=3.9.0 <4.0.0'
88
flutter: '>=3.27.0'
99

1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
google_mobile_ads: ^6.0.0
13+
google_mobile_ads: ^7.0.0
1414
plugin_platform_interface: ^2.0.2
1515

1616
dev_dependencies:
17-
flutter_lints: ^3.0.0
17+
flutter_lints: ^6.0.0
1818
flutter_test:
1919
sdk: flutter
2020
lint: ^2.3.0

0 commit comments

Comments
 (0)