Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/google_mobile_ads/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## 7.0.0
* Added character limits expected for Native Ad Templates. Issues [1243](https://github.com/googleads/googleads-mobile-flutter/issues/1243) and [1332](https://github.com/googleads/googleads-mobile-flutter/issues/1332)
* Fixed padding for Native Ads small template. [Issue 1357](https://github.com/googleads/googleads-mobile-flutter/issues/1357)
* Updated to use Gradle plugin 9.2.1 [Issue 1361](https://github.com/googleads/googleads-mobile-flutter/issues/1361)
* Updates dependencies. [Issue 1366](https://github.com/googleads/googleads-mobile-flutter/issues/1366)
* Updates GMA [Android](https://developers.google.com/admob/android/rel-notes) dependency to 24.8.0
* Updates GMA [iOS](https://developers.google.com/admob/ios/rel-notes) dependency to 12.14.0
* Uses latest UMP SDK:
* [Android](https://developers.google.com/admob/android/privacy/release-notes) UMP SDK version 4.0.0.
* [iOS](https://developers.google.com/admob/ios/privacy/download#release_notes) UMP SDK version 3.1.0.

## 6.0.0
* Updates minimum Flutter SDK to 3.27.0
* Updates Dart SDK low bound to 3.6.0.
Expand Down
39 changes: 19 additions & 20 deletions packages/google_mobile_ads/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
group 'io.flutter.plugins.googlemobileads'
version '6.0.0'
version '7.0.0'

buildscript {
ext {
agp_version = '8.13.1'
}
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:8.3.2'
classpath "com.android.tools.build:gradle:$agp_version"
}
}

Expand All @@ -22,29 +25,29 @@ rootProject.allprojects {
apply plugin: 'com.android.library'

android {
compileSdk 35
compileSdk 36

if (project.android.hasProperty('namespace')) {
namespace 'io.flutter.plugins.googlemobileads'
}

defaultConfig {
minSdk 23
minSdk 24
}
lintOptions {
disable 'InvalidPackage'
}
dependencies {
api 'com.google.android.gms:play-services-ads:24.1.0'
implementation 'com.google.android.ump:user-messaging-platform:3.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.lifecycle:lifecycle-process:2.6.2'
implementation 'com.google.errorprone:error_prone_annotations:2.16'
api 'com.google.android.gms:play-services-ads:24.8.0'
implementation 'com.google.android.ump:user-messaging-platform:4.0.0'
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
implementation 'androidx.lifecycle:lifecycle-process:2.10.0'
implementation 'com.google.errorprone:error_prone_annotations:2.44.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.hamcrest:hamcrest:3.0'
testImplementation 'org.mockito:mockito-core:5.15.2'
testImplementation 'org.robolectric:robolectric:4.14.1'
testImplementation 'androidx.test:core:1.5.0'
testImplementation 'org.mockito:mockito-core:5.20.0'
testImplementation 'org.robolectric:robolectric:4.16'
testImplementation 'androidx.test:core:1.7.0'
}
testOptions {
unitTests {
Expand All @@ -54,15 +57,11 @@ android {
}

afterEvaluate {
def containsEmbeddingDependencies = false
for (def configuration : configurations.all) {
for (def dependency : configuration.dependencies) {
if (dependency.group == 'io.flutter' &&
def containsEmbeddingDependencies = configurations.any { configuration ->
configuration.dependencies.any { dependency ->
dependency.group == 'io.flutter' &&
dependency.name.startsWith('flutter_embedding') &&
dependency.isTransitive()) {
containsEmbeddingDependencies = true
break
}
(dependency instanceof ModuleDependency && dependency.isTransitive())
}
}
if (!containsEmbeddingDependencies) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat May 13 14:37:03 CEST 2023
#Thu Dec 04 10:45:11 PST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/** Constants used in the plugin. */
public class Constants {
/** Version request agent. Should be bumped alongside plugin versions. */
public static final String REQUEST_AGENT_PREFIX_VERSIONED = "Flutter-GMA-6.0.0";
public static final String REQUEST_AGENT_PREFIX_VERSIONED = "Flutter-GMA-7.0.0";
/** Prefix for news template */
public static final String REQUEST_AGENT_NEWS_TEMPLATE_PREFIX = "News";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
android:layout_width="match_parent"
android:layout_height="@dimen/gnt_no_size"
android:layout_weight="0.5"
android:maxLength="25"
android:gravity="left"
android:background="@android:color/transparent"
app:layout_constraintBottom_toTopOf="@+id/row_two"
Expand Down Expand Up @@ -197,17 +198,21 @@
android:paddingBottom="@dimen/gnt_default_margin"
android:paddingLeft="@dimen/gnt_default_margin"
android:id="@+id/body"
android:maxLength="90"
android:maxLines="2"
android:ellipsize="end"
app:layout_constraintBottom_toTopOf="@+id/cta"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/middle"
app:layout_constraintHeight_max="50dp"
android:paddingStart="@dimen/gnt_default_margin"
android:layout_marginBottom="@dimen/gnt_small_margin"
/>
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/cta"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_height="wrap_content"
android:background="@color/gnt_blue"
android:textColor="@color/gnt_white"
android:layout_marginLeft="5dp"
Expand All @@ -218,6 +223,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/body"
app:layout_constraintHeight_max="50dp"
app:layout_constraintHeight_min="35dp"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="@dimen/gnt_no_size"
android:layout_height="@dimen/gnt_no_size"
android:layout_marginEnd="@dimen/gnt_default_margin"
android:layout_marginStart="@dimen/gnt_default_margin"
android:layout_marginTop="@dimen/gnt_default_margin"
android:layout_marginBottom="@dimen/gnt_default_margin"
android:paddingEnd="@dimen/gnt_default_margin"
android:paddingStart="@dimen/gnt_default_margin"
android:paddingTop="@dimen/gnt_default_margin"
android:paddingBottom="@dimen/gnt_default_margin"
app:layout_constraintDimensionRatio="H,4:1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down Expand Up @@ -65,6 +65,7 @@
android:layout_width="match_parent"
android:layout_height="@dimen/gnt_no_size"
android:layout_weight="@dimen/gnt_text_row_weight"
android:maxLength="25"
app:layout_constraintBottom_toTopOf="@+id/row_two"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down
4 changes: 2 additions & 2 deletions packages/google_mobile_ads/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (flutterVersionName == null) {
}

android {
compileSdk 35
compileSdk 36

namespace 'io.flutter.plugins.googlemobileadsexample'

Expand All @@ -33,7 +33,7 @@ android {

defaultConfig {
applicationId "io.flutter.plugins.googlemobileadsexample"
minSdkVersion 23
minSdkVersion flutter.minSdkVersion
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
org.gradle.jvmargs=-Xmx1536M
org.gradle.jvmargs=-Xmx4G
android.enableJetifier=true
android.useAndroidX=true
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat May 13 14:40:00 CEST 2023
#Tue Nov 25 09:25:58 PST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions packages/google_mobile_ads/example/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.3.2" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
id "com.android.application" version "8.13.1" apply false
id "org.jetbrains.kotlin.android" version "2.2.21" apply false
}

include ":app"
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
<string>arm64</string>
</array>
<key>MinimumOSVersion</key>
<string>11.0</string>
<string>13.0</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion packages/google_mobile_ads/example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
platform :ios, '12.0'
platform :ios, '13.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
Loading