Skip to content

Commit ecb253a

Browse files
committed
Updated iOS project, updated inline banner ad unit in example app
1 parent 139ebd4 commit ecb253a

File tree

4 files changed

+133
-7
lines changed

4 files changed

+133
-7
lines changed

packages/google_mobile_ads/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
<string>arm64</string>
2626
</array>
2727
<key>MinimumOSVersion</key>
28-
<string>11.0</string>
28+
<string>13.0</string>
2929
</dict>
3030
</plist>

packages/google_mobile_ads/example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
platform :ios, '12.0'
2+
platform :ios, '13.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

packages/google_mobile_ads/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 130 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
1111
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12+
887A5D54EBB22EE56FEA68C0 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 27D45D7A6903C5DAFE9FAFAD /* Pods_RunnerTests.framework */; };
1213
8FC897F52411A9F100415930 /* NativeAdView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8FC897F42411A9F100415930 /* NativeAdView.xib */; };
1314
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
1415
97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
@@ -37,6 +38,7 @@
3738
9E61AA6029BBE8FD00801A83 /* FLTNativeTemplateStyleTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 9E61AA5B29BBE8FD00801A83 /* FLTNativeTemplateStyleTest.m */; };
3839
9E61AA6129BBE8FD00801A83 /* FLTNativeTemplateFontStyleTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 9E61AA5C29BBE8FD00801A83 /* FLTNativeTemplateFontStyleTest.m */; };
3940
9E61AA6229BBE8FD00801A83 /* FLTNativeTemplateColorTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 9E61AA5D29BBE8FD00801A83 /* FLTNativeTemplateColorTest.m */; };
41+
EBE2BC5BBFE6DB1E33F703F6 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FE39CA478AEB75A8616A301A /* Pods_Runner.framework */; };
4042
/* End PBXBuildFile section */
4143

4244
/* Begin PBXContainerItemProxy section */
@@ -63,8 +65,12 @@
6365
/* End PBXCopyFilesBuildPhase section */
6466

6567
/* Begin PBXFileReference section */
68+
04096F79A89B65B77A1695FF /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
69+
0AA51DA50D3118092B5307E1 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
70+
0E1C520597602A0CDC46050E /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
6671
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
6772
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
73+
27D45D7A6903C5DAFE9FAFAD /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
6874
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
6975
44F3DED22B745BEE004D7117 /* FLTMediationExtras.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = FLTMediationExtras.h; path = ../../ios/Classes/FLTMediationExtras.h; sourceTree = "<group>"; };
7076
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
@@ -150,20 +156,24 @@
150156
9EF4E6FE26392B230007E4FE /* FLTGoogleMobileAdsCollection_Internal.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = FLTGoogleMobileAdsCollection_Internal.m; path = ../../ios/Classes/FLTGoogleMobileAdsCollection_Internal.m; sourceTree = "<group>"; };
151157
9EF4E6FF26392B230007E4FE /* FLTMobileAds_Internal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = FLTMobileAds_Internal.h; path = ../../ios/Classes/FLTMobileAds_Internal.h; sourceTree = "<group>"; };
152158
9EFEAB4E29B0019F000A063B /* GoogleMobileAds.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = GoogleMobileAds.xcframework; path = "Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework/GoogleMobileAds.xcframework"; sourceTree = "<group>"; };
159+
A380EE5B67A6B0F501F9FBF1 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
160+
FE39CA478AEB75A8616A301A /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
153161
/* End PBXFileReference section */
154162

155163
/* Begin PBXFrameworksBuildPhase section */
156164
97C146EB1CF9000F007C117D /* Frameworks */ = {
157165
isa = PBXFrameworksBuildPhase;
158166
buildActionMask = 2147483647;
159167
files = (
168+
EBE2BC5BBFE6DB1E33F703F6 /* Pods_Runner.framework in Frameworks */,
160169
);
161170
runOnlyForDeploymentPostprocessing = 0;
162171
};
163172
9E61AA1329BBE51900801A83 /* Frameworks */ = {
164173
isa = PBXFrameworksBuildPhase;
165174
buildActionMask = 2147483647;
166175
files = (
176+
887A5D54EBB22EE56FEA68C0 /* Pods_RunnerTests.framework in Frameworks */,
167177
);
168178
runOnlyForDeploymentPostprocessing = 0;
169179
};
@@ -173,6 +183,10 @@
173183
194BB02CA5CDABA098EA0B10 /* Pods */ = {
174184
isa = PBXGroup;
175185
children = (
186+
04096F79A89B65B77A1695FF /* Pods-Runner.debug.xcconfig */,
187+
A380EE5B67A6B0F501F9FBF1 /* Pods-Runner.release.xcconfig */,
188+
0E1C520597602A0CDC46050E /* Pods-RunnerTests.debug.xcconfig */,
189+
0AA51DA50D3118092B5307E1 /* Pods-RunnerTests.release.xcconfig */,
176190
);
177191
path = Pods;
178192
sourceTree = "<group>";
@@ -183,6 +197,8 @@
183197
9EFEAB4E29B0019F000A063B /* GoogleMobileAds.xcframework */,
184198
9EB9FE57280F853D00DDBB4F /* UserMessagingPlatform.xcframework */,
185199
9EA7213525BB6464008D57E3 /* GoogleMobileAds.xcframework */,
200+
FE39CA478AEB75A8616A301A /* Pods_Runner.framework */,
201+
27D45D7A6903C5DAFE9FAFAD /* Pods_RunnerTests.framework */,
186202
);
187203
name = Frameworks;
188204
sourceTree = "<group>";
@@ -368,12 +384,15 @@
368384
isa = PBXNativeTarget;
369385
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
370386
buildPhases = (
387+
0EDD04BE717BEB4026757E35 /* [CP] Check Pods Manifest.lock */,
371388
9740EEB61CF901F6004384FC /* Run Script */,
372389
97C146EA1CF9000F007C117D /* Sources */,
373390
97C146EB1CF9000F007C117D /* Frameworks */,
374391
97C146EC1CF9000F007C117D /* Resources */,
375392
9705A1C41CF9048500538489 /* Embed Frameworks */,
376393
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
394+
D621B7120BAE5B88B39CB730 /* [CP] Embed Pods Frameworks */,
395+
352E2E45CC90E4DC15A87261 /* [CP] Copy Pods Resources */,
377396
);
378397
buildRules = (
379398
);
@@ -388,9 +407,11 @@
388407
isa = PBXNativeTarget;
389408
buildConfigurationList = 9E61AA1E29BBE51900801A83 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
390409
buildPhases = (
410+
1C462BC1BFB6789887F378CB /* [CP] Check Pods Manifest.lock */,
391411
9E61AA1229BBE51900801A83 /* Sources */,
392412
9E61AA1329BBE51900801A83 /* Frameworks */,
393413
9E61AA1429BBE51900801A83 /* Resources */,
414+
01F28CB039EB603C0792037A /* [CP] Embed Pods Frameworks */,
394415
);
395416
buildRules = (
396417
);
@@ -464,13 +485,98 @@
464485
/* End PBXResourcesBuildPhase section */
465486

466487
/* Begin PBXShellScriptBuildPhase section */
488+
01F28CB039EB603C0792037A /* [CP] Embed Pods Frameworks */ = {
489+
isa = PBXShellScriptBuildPhase;
490+
buildActionMask = 2147483647;
491+
files = (
492+
);
493+
inputPaths = (
494+
"${PODS_ROOT}/Target Support Files/Pods-RunnerTests/Pods-RunnerTests-frameworks.sh",
495+
"${BUILT_PRODUCTS_DIR}/OCMock/OCMock.framework",
496+
);
497+
name = "[CP] Embed Pods Frameworks";
498+
outputPaths = (
499+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OCMock.framework",
500+
);
501+
runOnlyForDeploymentPostprocessing = 0;
502+
shellPath = /bin/sh;
503+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RunnerTests/Pods-RunnerTests-frameworks.sh\"\n";
504+
showEnvVarsInLog = 0;
505+
};
506+
0EDD04BE717BEB4026757E35 /* [CP] Check Pods Manifest.lock */ = {
507+
isa = PBXShellScriptBuildPhase;
508+
buildActionMask = 2147483647;
509+
files = (
510+
);
511+
inputFileListPaths = (
512+
);
513+
inputPaths = (
514+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
515+
"${PODS_ROOT}/Manifest.lock",
516+
);
517+
name = "[CP] Check Pods Manifest.lock";
518+
outputFileListPaths = (
519+
);
520+
outputPaths = (
521+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
522+
);
523+
runOnlyForDeploymentPostprocessing = 0;
524+
shellPath = /bin/sh;
525+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
526+
showEnvVarsInLog = 0;
527+
};
528+
1C462BC1BFB6789887F378CB /* [CP] Check Pods Manifest.lock */ = {
529+
isa = PBXShellScriptBuildPhase;
530+
buildActionMask = 2147483647;
531+
files = (
532+
);
533+
inputFileListPaths = (
534+
);
535+
inputPaths = (
536+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
537+
"${PODS_ROOT}/Manifest.lock",
538+
);
539+
name = "[CP] Check Pods Manifest.lock";
540+
outputFileListPaths = (
541+
);
542+
outputPaths = (
543+
"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
544+
);
545+
runOnlyForDeploymentPostprocessing = 0;
546+
shellPath = /bin/sh;
547+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
548+
showEnvVarsInLog = 0;
549+
};
550+
352E2E45CC90E4DC15A87261 /* [CP] Copy Pods Resources */ = {
551+
isa = PBXShellScriptBuildPhase;
552+
buildActionMask = 2147483647;
553+
files = (
554+
);
555+
inputPaths = (
556+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh",
557+
"${PODS_CONFIGURATION_BUILD_DIR}/Google-Mobile-Ads-SDK/GoogleMobileAdsResources.bundle",
558+
"${PODS_CONFIGURATION_BUILD_DIR}/GoogleUserMessagingPlatform/UserMessagingPlatformResources.bundle",
559+
"${PODS_CONFIGURATION_BUILD_DIR}/google_mobile_ads/google_mobile_ads.bundle",
560+
);
561+
name = "[CP] Copy Pods Resources";
562+
outputPaths = (
563+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleMobileAdsResources.bundle",
564+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/UserMessagingPlatformResources.bundle",
565+
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/google_mobile_ads.bundle",
566+
);
567+
runOnlyForDeploymentPostprocessing = 0;
568+
shellPath = /bin/sh;
569+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
570+
showEnvVarsInLog = 0;
571+
};
467572
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
468573
isa = PBXShellScriptBuildPhase;
469574
alwaysOutOfDate = 1;
470575
buildActionMask = 2147483647;
471576
files = (
472577
);
473578
inputPaths = (
579+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
474580
);
475581
name = "Thin Binary";
476582
outputPaths = (
@@ -494,6 +600,24 @@
494600
shellPath = /bin/sh;
495601
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n";
496602
};
603+
D621B7120BAE5B88B39CB730 /* [CP] Embed Pods Frameworks */ = {
604+
isa = PBXShellScriptBuildPhase;
605+
buildActionMask = 2147483647;
606+
files = (
607+
);
608+
inputPaths = (
609+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
610+
"${BUILT_PRODUCTS_DIR}/webview_flutter_wkwebview/webview_flutter_wkwebview.framework",
611+
);
612+
name = "[CP] Embed Pods Frameworks";
613+
outputPaths = (
614+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/webview_flutter_wkwebview.framework",
615+
);
616+
runOnlyForDeploymentPostprocessing = 0;
617+
shellPath = /bin/sh;
618+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
619+
showEnvVarsInLog = 0;
620+
};
497621
/* End PBXShellScriptBuildPhase section */
498622

499623
/* Begin PBXSourcesBuildPhase section */
@@ -616,7 +740,7 @@
616740
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
617741
GCC_WARN_UNUSED_FUNCTION = YES;
618742
GCC_WARN_UNUSED_VARIABLE = YES;
619-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
743+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
620744
MTL_ENABLE_DEBUG_INFO = YES;
621745
ONLY_ACTIVE_ARCH = YES;
622746
SDKROOT = iphoneos;
@@ -668,7 +792,7 @@
668792
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
669793
GCC_WARN_UNUSED_FUNCTION = YES;
670794
GCC_WARN_UNUSED_VARIABLE = YES;
671-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
795+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
672796
MTL_ENABLE_DEBUG_INFO = NO;
673797
SDKROOT = iphoneos;
674798
TARGETED_DEVICE_FAMILY = "1,2";
@@ -689,7 +813,7 @@
689813
"$(PROJECT_DIR)/Flutter",
690814
);
691815
INFOPLIST_FILE = Runner/Info.plist;
692-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
816+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
693817
LD_RUNPATH_SEARCH_PATHS = (
694818
"$(inherited)",
695819
"@executable_path/Frameworks",
@@ -716,7 +840,7 @@
716840
"$(PROJECT_DIR)/Flutter",
717841
);
718842
INFOPLIST_FILE = Runner/Info.plist;
719-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
843+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
720844
LD_RUNPATH_SEARCH_PATHS = (
721845
"$(inherited)",
722846
"@executable_path/Frameworks",
@@ -732,6 +856,7 @@
732856
};
733857
9E61AA1C29BBE51900801A83 /* Debug */ = {
734858
isa = XCBuildConfiguration;
859+
baseConfigurationReference = 0E1C520597602A0CDC46050E /* Pods-RunnerTests.debug.xcconfig */;
735860
buildSettings = {
736861
BUNDLE_LOADER = "$(TEST_HOST)";
737862
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
@@ -758,6 +883,7 @@
758883
};
759884
9E61AA1D29BBE51900801A83 /* Release */ = {
760885
isa = XCBuildConfiguration;
886+
baseConfigurationReference = 0AA51DA50D3118092B5307E1 /* Pods-RunnerTests.release.xcconfig */;
761887
buildSettings = {
762888
BUNDLE_LOADER = "$(TEST_HOST)";
763889
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;

packages/google_mobile_ads/example/lib/inline_adaptive_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class _InlineAdaptiveExampleState extends State<InlineAdaptiveExample> {
5959
_inlineAdaptiveAd = AdManagerBannerAd(
6060
adUnitId: Platform.isAndroid
6161
? '/21775744923/example/banner'
62-
: '/6499/example/adaptive-banner',
62+
: '/21775744923/example/adaptive-banner',
6363
sizes: [size],
6464
request: AdManagerAdRequest(),
6565
listener: AdManagerBannerAdListener(

0 commit comments

Comments
 (0)