From b2b4ee63c86a8624697a8cac97e0e41c725eea85 Mon Sep 17 00:00:00 2001 From: Aldo Becerril Date: Mon, 27 Jan 2025 13:31:41 -0800 Subject: [PATCH 1/2] Updated AppLovin pubspec to use the latest google_mobile_ads version PiperOrigin-RevId: 720289324 --- packages/mediation/gma_mediation_applovin/CHANGELOG.md | 2 +- packages/mediation/gma_mediation_applovin/pubspec.yaml | 2 +- packages/mediation/gma_mediation_chartboost/pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mediation/gma_mediation_applovin/CHANGELOG.md b/packages/mediation/gma_mediation_applovin/CHANGELOG.md index 2a725add8..c15573a32 100644 --- a/packages/mediation/gma_mediation_applovin/CHANGELOG.md +++ b/packages/mediation/gma_mediation_applovin/CHANGELOG.md @@ -1,7 +1,7 @@ ## AppLovin Flutter Mediation Adapter Changelog #### Next Version -* Built and tested with the Google Mobile Ads Flutter Plugin version 5.2.0. +* Built and tested with the Google Mobile Ads Flutter Plugin version 5.3.1. #### 1.2.0 * Verified compatibility with AppLovin Android adapter version 12.6.1.0. diff --git a/packages/mediation/gma_mediation_applovin/pubspec.yaml b/packages/mediation/gma_mediation_applovin/pubspec.yaml index 6f1867960..a64af203c 100644 --- a/packages/mediation/gma_mediation_applovin/pubspec.yaml +++ b/packages/mediation/gma_mediation_applovin/pubspec.yaml @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - google_mobile_ads: ^5.3.0 + google_mobile_ads: ^5.3.1 plugin_platform_interface: ^2.1.8 dev_dependencies: diff --git a/packages/mediation/gma_mediation_chartboost/pubspec.yaml b/packages/mediation/gma_mediation_chartboost/pubspec.yaml index 324627690..fb304450e 100644 --- a/packages/mediation/gma_mediation_chartboost/pubspec.yaml +++ b/packages/mediation/gma_mediation_chartboost/pubspec.yaml @@ -11,9 +11,9 @@ dependencies: google_mobile_ads: ^5.2.0 plugin_platform_interface: ^2.0.2 dev_dependencies: + flutter_lints: ^4.0.0 flutter_test: sdk: flutter - flutter_lints: ^4.0.0 lint: ^2.3.0 pigeon: ^22.6.2 flutter: From da088cccb9c10c107764ae6e75f188d54eead3e5 Mon Sep 17 00:00:00 2001 From: LTphantom Date: Mon, 27 Jan 2025 14:37:20 -0800 Subject: [PATCH 2/2] Updated format validator for GitHub workflows (#1245) * Update formatter for main plugin * Updated formatter for adapter's workflows and updates samples format --- .github/workflows/build.yaml | 3 +- .github/workflows/gma_mediation_applovin.yaml | 9 ---- .../workflows/gma_mediation_chartboost.yaml | 44 +++++++++++++++++++ .../workflows/gma_mediation_dtexchange.yaml | 9 ---- .github/workflows/gma_mediation_inmobi.yaml | 9 ---- .../workflows/gma_mediation_ironsource.yaml | 9 ---- .../gma_mediation_liftoffmonetize.yaml | 9 ---- .github/workflows/gma_mediation_meta.yaml | 9 ---- .../workflows/gma_mediation_mintegral.yaml | 9 ---- .github/workflows/gma_mediation_pangle.yaml | 9 ---- .github/workflows/gma_mediation_unity.yaml | 9 ---- .github/workflows/google_mobile_ads.yaml | 3 +- .../app_open_example/lib/consent_manager.dart | 10 ++--- .../banner_example/lib/consent_manager.dart | 9 ++-- .../lib/consent_manager.dart | 4 +- .../mediation_example/lib/app_bar_item.dart | 1 + .../lib/consent_manager.dart | 8 ++-- .../lib/consent_manager.dart | 8 ++-- .../rewarded_example/lib/consent_manager.dart | 4 +- .../lib/consent_manager.dart | 8 ++-- .../lib/main.dart | 31 ++++++------- 21 files changed, 85 insertions(+), 129 deletions(-) create mode 100644 .github/workflows/gma_mediation_chartboost.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6031b8c1d..09bfc3905 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -109,6 +109,5 @@ jobs: GOOGLEMOBILEADS_PLUGIN_SCOPE_EXAMPLE: ${{ matrix.REGEX }} - name: "Flutter Format" run: | - flutter pub global activate flutter_plugin_tools - flutter pub global run flutter_plugin_tools format + dart format samples/ ./.github/workflows/scripts/validate-formatting.sh diff --git a/.github/workflows/gma_mediation_applovin.yaml b/.github/workflows/gma_mediation_applovin.yaml index 81c2d0905..e4b4a7734 100644 --- a/.github/workflows/gma_mediation_applovin.yaml +++ b/.github/workflows/gma_mediation_applovin.yaml @@ -93,12 +93,3 @@ jobs: run: | cd packages/mediation/gma_mediation_applovin/ flutter analyze - - name: "Flutter Publish" - run: | - cd packages/mediation/gma_mediation_applovin/ - flutter pub publish --dry-run - - name: "Flutter Format" - run: | - flutter pub global activate flutter_plugin_tools - flutter pub global run flutter_plugin_tools format - ./.github/workflows/scripts/validate-formatting.sh diff --git a/.github/workflows/gma_mediation_chartboost.yaml b/.github/workflows/gma_mediation_chartboost.yaml new file mode 100644 index 000000000..4589ecf6b --- /dev/null +++ b/.github/workflows/gma_mediation_chartboost.yaml @@ -0,0 +1,44 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: gma_mediation_chartboost + +on: + pull_request: + paths: + - "packages/mediation/gma_mediation_chartboost/**" + - ".github/workflows/gma_mediation_chartboost.yaml" + - "packages/mediation/gma_mediation_chartboost/ios/**" + - "packages/mediation/gma_mediation_chartboost/android/**" + push: + branches: + - main + +jobs: + flutter: + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' + timeout-minutes: 30 + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + with: + fetch-depth: 0 + - name: "Install Flutter" + run: ./.github/workflows/scripts/install-flutter.sh stable + - name: "Install Tools" + run: ./.github/workflows/scripts/install-tools.sh + - name: "Flutter Analyze" + run: | + cd packages/mediation/gma_mediation_chartboost/ + flutter analyze diff --git a/.github/workflows/gma_mediation_dtexchange.yaml b/.github/workflows/gma_mediation_dtexchange.yaml index 18400ee51..21527b1ad 100644 --- a/.github/workflows/gma_mediation_dtexchange.yaml +++ b/.github/workflows/gma_mediation_dtexchange.yaml @@ -93,12 +93,3 @@ jobs: run: | cd packages/mediation/gma_mediation_dtexchange flutter analyze - - name: "Flutter Publish" - run: | - cd packages/mediation/gma_mediation_dtexchange - flutter pub publish --dry-run - - name: "Flutter Format" - run: | - flutter pub global activate flutter_plugin_tools - flutter pub global run flutter_plugin_tools format - ./.github/workflows/scripts/validate-formatting.sh diff --git a/.github/workflows/gma_mediation_inmobi.yaml b/.github/workflows/gma_mediation_inmobi.yaml index 825846822..944721f33 100644 --- a/.github/workflows/gma_mediation_inmobi.yaml +++ b/.github/workflows/gma_mediation_inmobi.yaml @@ -42,12 +42,3 @@ jobs: run: | cd packages/mediation/gma_mediation_inmobi flutter analyze - - name: "Flutter Publish" - run: | - cd packages/mediation/gma_mediation_inmobi - flutter pub publish --dry-run - - name: "Flutter Format" - run: | - flutter pub global activate flutter_plugin_tools - flutter pub global run flutter_plugin_tools format - ./.github/workflows/scripts/validate-formatting.sh diff --git a/.github/workflows/gma_mediation_ironsource.yaml b/.github/workflows/gma_mediation_ironsource.yaml index c01129b4a..6851276a9 100644 --- a/.github/workflows/gma_mediation_ironsource.yaml +++ b/.github/workflows/gma_mediation_ironsource.yaml @@ -92,12 +92,3 @@ jobs: run: | cd packages/mediation/gma_mediation_ironsource flutter analyze - - name: "Flutter Publish" - run: | - cd packages/mediation/gma_mediation_ironsource - flutter pub publish --dry-run - - name: "Flutter Format" - run: | - flutter pub global activate flutter_plugin_tools - flutter pub global run flutter_plugin_tools format - ./.github/workflows/scripts/validate-formatting.sh diff --git a/.github/workflows/gma_mediation_liftoffmonetize.yaml b/.github/workflows/gma_mediation_liftoffmonetize.yaml index 716988689..baeb77cc9 100644 --- a/.github/workflows/gma_mediation_liftoffmonetize.yaml +++ b/.github/workflows/gma_mediation_liftoffmonetize.yaml @@ -94,12 +94,3 @@ jobs: run: | cd packages/mediation/gma_mediation_liftoffmonetize flutter analyze - - name: "Flutter Publish" - run: | - cd packages/mediation/gma_mediation_liftoffmonetize - flutter pub publish --dry-run - - name: "Flutter Format" - run: | - flutter pub global activate flutter_plugin_tools - flutter pub global run flutter_plugin_tools format - ./.github/workflows/scripts/validate-formatting.sh diff --git a/.github/workflows/gma_mediation_meta.yaml b/.github/workflows/gma_mediation_meta.yaml index d86ad6aec..ff7134bd3 100644 --- a/.github/workflows/gma_mediation_meta.yaml +++ b/.github/workflows/gma_mediation_meta.yaml @@ -42,12 +42,3 @@ jobs: run: | cd packages/mediation/gma_mediation_meta flutter analyze - - name: "Flutter Publish" - run: | - cd packages/mediation/gma_mediation_meta - flutter pub publish --dry-run - - name: "Flutter Format" - run: | - flutter pub global activate flutter_plugin_tools - flutter pub global run flutter_plugin_tools format - ./.github/workflows/scripts/validate-formatting.sh diff --git a/.github/workflows/gma_mediation_mintegral.yaml b/.github/workflows/gma_mediation_mintegral.yaml index 1a5a4b64e..bd9ff3e1d 100644 --- a/.github/workflows/gma_mediation_mintegral.yaml +++ b/.github/workflows/gma_mediation_mintegral.yaml @@ -42,12 +42,3 @@ jobs: run: | cd packages/mediation/gma_mediation_mintegral flutter analyze - - name: "Flutter Publish" - run: | - cd packages/mediation/gma_mediation_mintegral - flutter pub publish --dry-run - - name: "Flutter Format" - run: | - flutter pub global activate flutter_plugin_tools - flutter pub global run flutter_plugin_tools format - ./.github/workflows/scripts/validate-formatting.sh diff --git a/.github/workflows/gma_mediation_pangle.yaml b/.github/workflows/gma_mediation_pangle.yaml index f510a4d40..d4b573ef8 100644 --- a/.github/workflows/gma_mediation_pangle.yaml +++ b/.github/workflows/gma_mediation_pangle.yaml @@ -42,12 +42,3 @@ jobs: run: | cd packages/mediation/gma_mediation_pangle/ flutter analyze - - name: "Flutter Publish" - run: | - cd packages/mediation/gma_mediation_pangle/ - flutter pub publish --dry-run - - name: "Flutter Format" - run: | - flutter pub global activate flutter_plugin_tools - flutter pub global run flutter_plugin_tools format - ./.github/workflows/scripts/validate-formatting.sh diff --git a/.github/workflows/gma_mediation_unity.yaml b/.github/workflows/gma_mediation_unity.yaml index a8c378b43..2dfaa1e00 100644 --- a/.github/workflows/gma_mediation_unity.yaml +++ b/.github/workflows/gma_mediation_unity.yaml @@ -91,12 +91,3 @@ jobs: run: | cd packages/mediation/gma_mediation_unity/ flutter analyze - - name: "Flutter Publish" - run: | - cd packages/mediation/gma_mediation_unity/ - flutter pub publish --dry-run - - name: "Flutter Format" - run: | - flutter pub global activate flutter_plugin_tools - flutter pub global run flutter_plugin_tools format - ./.github/workflows/scripts/validate-formatting.sh diff --git a/.github/workflows/google_mobile_ads.yaml b/.github/workflows/google_mobile_ads.yaml index 459f76ee1..8b530f94c 100644 --- a/.github/workflows/google_mobile_ads.yaml +++ b/.github/workflows/google_mobile_ads.yaml @@ -104,6 +104,5 @@ jobs: flutter pub publish --dry-run - name: "Flutter Format" run: | - flutter pub global activate flutter_plugin_tools - flutter pub global run flutter_plugin_tools format + dart format packages/google_mobile_ads/ ./.github/workflows/scripts/validate-formatting.sh diff --git a/samples/admob/app_open_example/lib/consent_manager.dart b/samples/admob/app_open_example/lib/consent_manager.dart index f429d449b..3bf97a2d9 100644 --- a/samples/admob/app_open_example/lib/consent_manager.dart +++ b/samples/admob/app_open_example/lib/consent_manager.dart @@ -20,7 +20,7 @@ class ConsentManager { /// Helper variable to determine if the privacy options form is required. Future isPrivacyOptionsRequired() async { return await ConsentInformation.instance - .getPrivacyOptionsRequirementStatus() == + .getPrivacyOptionsRequirementStatus() == PrivacyOptionsRequirementStatus.required; } @@ -30,10 +30,10 @@ class ConsentManager { OnConsentGatheringCompleteListener onConsentGatheringCompleteListener) { // For testing purposes, you can force a DebugGeography of Eea or NotEea. ConsentDebugSettings debugSettings = ConsentDebugSettings( - // debugGeography: DebugGeography.debugGeographyEea, - ); + // debugGeography: DebugGeography.debugGeographyEea, + ); ConsentRequestParameters params = - ConsentRequestParameters(consentDebugSettings: debugSettings); + ConsentRequestParameters(consentDebugSettings: debugSettings); // Requesting an update to consent information should be called on every app launch. ConsentInformation.instance.requestConsentInfoUpdate(params, () async { @@ -51,4 +51,4 @@ class ConsentManager { OnConsentFormDismissedListener onConsentFormDismissedListener) { ConsentForm.showPrivacyOptionsForm(onConsentFormDismissedListener); } -} \ No newline at end of file +} diff --git a/samples/admob/banner_example/lib/consent_manager.dart b/samples/admob/banner_example/lib/consent_manager.dart index 36e8e1200..39c9f3155 100644 --- a/samples/admob/banner_example/lib/consent_manager.dart +++ b/samples/admob/banner_example/lib/consent_manager.dart @@ -1,4 +1,3 @@ - import 'dart:async'; import 'package:google_mobile_ads/google_mobile_ads.dart'; @@ -18,7 +17,7 @@ class ConsentManager { /// Helper variable to determine if the privacy options form is required. Future isPrivacyOptionsRequired() async { return await ConsentInformation.instance - .getPrivacyOptionsRequirementStatus() == + .getPrivacyOptionsRequirementStatus() == PrivacyOptionsRequirementStatus.required; } @@ -28,10 +27,10 @@ class ConsentManager { OnConsentGatheringCompleteListener onConsentGatheringCompleteListener) { // For testing purposes, you can force a DebugGeography of Eea or NotEea. ConsentDebugSettings debugSettings = ConsentDebugSettings( - // debugGeography: DebugGeography.debugGeographyEea, - ); + // debugGeography: DebugGeography.debugGeographyEea, + ); ConsentRequestParameters params = - ConsentRequestParameters(consentDebugSettings: debugSettings); + ConsentRequestParameters(consentDebugSettings: debugSettings); // Requesting an update to consent information should be called on every app launch. ConsentInformation.instance.requestConsentInfoUpdate(params, () async { diff --git a/samples/admob/interstitial_example/lib/consent_manager.dart b/samples/admob/interstitial_example/lib/consent_manager.dart index c64afd1be..39c9f3155 100644 --- a/samples/admob/interstitial_example/lib/consent_manager.dart +++ b/samples/admob/interstitial_example/lib/consent_manager.dart @@ -27,8 +27,8 @@ class ConsentManager { OnConsentGatheringCompleteListener onConsentGatheringCompleteListener) { // For testing purposes, you can force a DebugGeography of Eea or NotEea. ConsentDebugSettings debugSettings = ConsentDebugSettings( - // debugGeography: DebugGeography.debugGeographyEea, - ); + // debugGeography: DebugGeography.debugGeographyEea, + ); ConsentRequestParameters params = ConsentRequestParameters(consentDebugSettings: debugSettings); diff --git a/samples/admob/mediation_example/lib/app_bar_item.dart b/samples/admob/mediation_example/lib/app_bar_item.dart index 0c986a74d..512724300 100644 --- a/samples/admob/mediation_example/lib/app_bar_item.dart +++ b/samples/admob/mediation_example/lib/app_bar_item.dart @@ -5,6 +5,7 @@ class AppBarItem { /// Button text. final String label; + /// Button value. final int value; diff --git a/samples/admob/native_platform_example/lib/consent_manager.dart b/samples/admob/native_platform_example/lib/consent_manager.dart index f8d8c7912..39c9f3155 100644 --- a/samples/admob/native_platform_example/lib/consent_manager.dart +++ b/samples/admob/native_platform_example/lib/consent_manager.dart @@ -17,7 +17,7 @@ class ConsentManager { /// Helper variable to determine if the privacy options form is required. Future isPrivacyOptionsRequired() async { return await ConsentInformation.instance - .getPrivacyOptionsRequirementStatus() == + .getPrivacyOptionsRequirementStatus() == PrivacyOptionsRequirementStatus.required; } @@ -27,10 +27,10 @@ class ConsentManager { OnConsentGatheringCompleteListener onConsentGatheringCompleteListener) { // For testing purposes, you can force a DebugGeography of Eea or NotEea. ConsentDebugSettings debugSettings = ConsentDebugSettings( - // debugGeography: DebugGeography.debugGeographyEea, - ); + // debugGeography: DebugGeography.debugGeographyEea, + ); ConsentRequestParameters params = - ConsentRequestParameters(consentDebugSettings: debugSettings); + ConsentRequestParameters(consentDebugSettings: debugSettings); // Requesting an update to consent information should be called on every app launch. ConsentInformation.instance.requestConsentInfoUpdate(params, () async { diff --git a/samples/admob/native_template_example/lib/consent_manager.dart b/samples/admob/native_template_example/lib/consent_manager.dart index f8d8c7912..39c9f3155 100644 --- a/samples/admob/native_template_example/lib/consent_manager.dart +++ b/samples/admob/native_template_example/lib/consent_manager.dart @@ -17,7 +17,7 @@ class ConsentManager { /// Helper variable to determine if the privacy options form is required. Future isPrivacyOptionsRequired() async { return await ConsentInformation.instance - .getPrivacyOptionsRequirementStatus() == + .getPrivacyOptionsRequirementStatus() == PrivacyOptionsRequirementStatus.required; } @@ -27,10 +27,10 @@ class ConsentManager { OnConsentGatheringCompleteListener onConsentGatheringCompleteListener) { // For testing purposes, you can force a DebugGeography of Eea or NotEea. ConsentDebugSettings debugSettings = ConsentDebugSettings( - // debugGeography: DebugGeography.debugGeographyEea, - ); + // debugGeography: DebugGeography.debugGeographyEea, + ); ConsentRequestParameters params = - ConsentRequestParameters(consentDebugSettings: debugSettings); + ConsentRequestParameters(consentDebugSettings: debugSettings); // Requesting an update to consent information should be called on every app launch. ConsentInformation.instance.requestConsentInfoUpdate(params, () async { diff --git a/samples/admob/rewarded_example/lib/consent_manager.dart b/samples/admob/rewarded_example/lib/consent_manager.dart index 59c23ec76..7dbd9bf84 100644 --- a/samples/admob/rewarded_example/lib/consent_manager.dart +++ b/samples/admob/rewarded_example/lib/consent_manager.dart @@ -17,7 +17,7 @@ class ConsentManager { /// Helper variable to determine if the privacy options form is required. Future isPrivacyOptionsRequired() async { return await ConsentInformation.instance - .getPrivacyOptionsRequirementStatus() == + .getPrivacyOptionsRequirementStatus() == PrivacyOptionsRequirementStatus.required; } @@ -30,7 +30,7 @@ class ConsentManager { debugGeography: DebugGeography.debugGeographyEea, ); ConsentRequestParameters params = - ConsentRequestParameters(consentDebugSettings: debugSettings); + ConsentRequestParameters(consentDebugSettings: debugSettings); // Requesting an update to consent information should be called on every app launch. ConsentInformation.instance.requestConsentInfoUpdate(params, () async { diff --git a/samples/admob/rewarded_interstitial_example/lib/consent_manager.dart b/samples/admob/rewarded_interstitial_example/lib/consent_manager.dart index f8d8c7912..39c9f3155 100644 --- a/samples/admob/rewarded_interstitial_example/lib/consent_manager.dart +++ b/samples/admob/rewarded_interstitial_example/lib/consent_manager.dart @@ -17,7 +17,7 @@ class ConsentManager { /// Helper variable to determine if the privacy options form is required. Future isPrivacyOptionsRequired() async { return await ConsentInformation.instance - .getPrivacyOptionsRequirementStatus() == + .getPrivacyOptionsRequirementStatus() == PrivacyOptionsRequirementStatus.required; } @@ -27,10 +27,10 @@ class ConsentManager { OnConsentGatheringCompleteListener onConsentGatheringCompleteListener) { // For testing purposes, you can force a DebugGeography of Eea or NotEea. ConsentDebugSettings debugSettings = ConsentDebugSettings( - // debugGeography: DebugGeography.debugGeographyEea, - ); + // debugGeography: DebugGeography.debugGeographyEea, + ); ConsentRequestParameters params = - ConsentRequestParameters(consentDebugSettings: debugSettings); + ConsentRequestParameters(consentDebugSettings: debugSettings); // Requesting an update to consent information should be called on every app launch. ConsentInformation.instance.requestConsentInfoUpdate(params, () async { diff --git a/samples/admob/rewarded_interstitial_example/lib/main.dart b/samples/admob/rewarded_interstitial_example/lib/main.dart index 3386b2651..3b25c4514 100644 --- a/samples/admob/rewarded_interstitial_example/lib/main.dart +++ b/samples/admob/rewarded_interstitial_example/lib/main.dart @@ -47,8 +47,7 @@ class RewardedInterstitialExampleState if (consentGatheringError != null) { // Consent not obtained in current session. debugPrint( - "${consentGatheringError.errorCode}: ${consentGatheringError - .message}"); + "${consentGatheringError.errorCode}: ${consentGatheringError.message}"); } // Kick off the first play of the "game". @@ -65,13 +64,11 @@ class RewardedInterstitialExampleState _initializeMobileAdsSDK(); // Show an alert dialog when the timer reaches zero. - _countdownTimer.addListener(() => - setState(() { + _countdownTimer.addListener(() => setState(() { if (_countdownTimer.isComplete) { showDialog( context: context, - builder: (context) => - AdDialog(showAd: () { + builder: (context) => AdDialog(showAd: () { _gameOver = true; _showAdCallback(); })); @@ -105,10 +102,10 @@ class RewardedInterstitialExampleState void _showAdCallback() { _rewardedInterstitialAd?.show( onUserEarnedReward: (AdWithoutView view, RewardItem rewardItem) { - // ignore: avoid_print - print('Reward amount: ${rewardItem.amount}'); - setState(() => _coins += rewardItem.amount.toInt()); - }); + // ignore: avoid_print + print('Reward amount: ${rewardItem.amount}'); + setState(() => _coins += rewardItem.amount.toInt()); + }); } @override @@ -128,7 +125,7 @@ class RewardedInterstitialExampleState child: Text( 'The Impossible Game', style: - TextStyle(fontSize: 25, fontWeight: FontWeight.bold), + TextStyle(fontSize: 25, fontWeight: FontWeight.bold), ), )), Align( @@ -171,16 +168,14 @@ class RewardedInterstitialExampleState return [ PopupMenuButton( - itemBuilder: (context) => - array - .map((item) => - PopupMenuItem( + itemBuilder: (context) => array + .map((item) => PopupMenuItem( value: item, child: Text( item.label, ), )) - .toList(), + .toList(), onSelected: (item) { _pauseGame(); switch (item.value) { @@ -214,9 +209,9 @@ class RewardedInterstitialExampleState adUnitId: _adUnitId, request: const AdRequest(), rewardedInterstitialAdLoadCallback: - RewardedInterstitialAdLoadCallback(onAdLoaded: (ad) { + RewardedInterstitialAdLoadCallback(onAdLoaded: (ad) { ad.fullScreenContentCallback = FullScreenContentCallback( - // Called when the ad showed the full screen content. + // Called when the ad showed the full screen content. onAdShowedFullScreenContent: (ad) {}, // Called when an impression occurs on the ad. onAdImpression: (ad) {},