Skip to content

Commit ae4fee0

Browse files
committed
Added interstitial
1 parent ebf8ea2 commit ae4fee0

File tree

4 files changed

+100
-6
lines changed

4 files changed

+100
-6
lines changed

samples/admob/interstitial_example/android/app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ android {
2828
ndkVersion = flutter.ndkVersion
2929

3030
compileOptions {
31-
sourceCompatibility JavaVersion.VERSION_1_8
32-
targetCompatibility JavaVersion.VERSION_1_8
31+
sourceCompatibility JavaVersion.VERSION_17
32+
targetCompatibility JavaVersion.VERSION_17
3333
}
3434

3535
kotlinOptions {
36-
jvmTarget = '1.8'
36+
jvmTarget = '17'
3737
}
3838

3939
sourceSets {
@@ -45,7 +45,7 @@ android {
4545
applicationId "com.example.interstitial_example"
4646
// You can update the following values to match your application needs.
4747
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
48-
minSdkVersion 23
48+
minSdkVersion flutter.minSdkVersion
4949
targetSdkVersion flutter.targetSdkVersion
5050
versionCode flutterVersionCode.toInteger()
5151
versionName flutterVersionName
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1510"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
9+
<BuildActionEntries>
10+
<BuildActionEntry
11+
buildForTesting = "YES"
12+
buildForRunning = "YES"
13+
buildForProfiling = "YES"
14+
buildForArchiving = "YES"
15+
buildForAnalyzing = "YES">
16+
<BuildableReference
17+
BuildableIdentifier = "primary"
18+
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
19+
BuildableName = "Runner.app"
20+
BlueprintName = "Runner"
21+
ReferencedContainer = "container:Runner.xcodeproj">
22+
</BuildableReference>
23+
</BuildActionEntry>
24+
</BuildActionEntries>
25+
</BuildAction>
26+
<TestAction
27+
buildConfiguration = "Debug"
28+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
29+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
30+
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
31+
shouldUseLaunchSchemeArgsEnv = "YES"
32+
shouldAutocreateTestPlan = "YES">
33+
<Testables>
34+
<TestableReference
35+
skipped = "NO"
36+
parallelizable = "YES">
37+
<BuildableReference
38+
BuildableIdentifier = "primary"
39+
BlueprintIdentifier = "331C8080294A63A400263BE5"
40+
BuildableName = "RunnerTests.xctest"
41+
BlueprintName = "RunnerTests"
42+
ReferencedContainer = "container:Runner.xcodeproj">
43+
</BuildableReference>
44+
</TestableReference>
45+
</Testables>
46+
</TestAction>
47+
<LaunchAction
48+
buildConfiguration = "Debug"
49+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
50+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
51+
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
52+
launchStyle = "0"
53+
useCustomWorkingDirectory = "NO"
54+
ignoresPersistentStateOnLaunch = "NO"
55+
debugDocumentVersioning = "YES"
56+
debugServiceExtension = "internal"
57+
enableGPUValidationMode = "1"
58+
allowLocationSimulation = "YES">
59+
<BuildableProductRunnable
60+
runnableDebuggingMode = "0">
61+
<BuildableReference
62+
BuildableIdentifier = "primary"
63+
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
64+
BuildableName = "Runner.app"
65+
BlueprintName = "Runner"
66+
ReferencedContainer = "container:Runner.xcodeproj">
67+
</BuildableReference>
68+
</BuildableProductRunnable>
69+
</LaunchAction>
70+
<ProfileAction
71+
buildConfiguration = "Release"
72+
shouldUseLaunchSchemeArgsEnv = "YES"
73+
savedToolIdentifier = ""
74+
useCustomWorkingDirectory = "NO"
75+
debugDocumentVersioning = "YES">
76+
<BuildableProductRunnable
77+
runnableDebuggingMode = "0">
78+
<BuildableReference
79+
BuildableIdentifier = "primary"
80+
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
81+
BuildableName = "Runner.app"
82+
BlueprintName = "Runner"
83+
ReferencedContainer = "container:Runner.xcodeproj">
84+
</BuildableReference>
85+
</BuildableProductRunnable>
86+
</ProfileAction>
87+
<AnalyzeAction
88+
buildConfiguration = "Debug">
89+
</AnalyzeAction>
90+
<ArchiveAction
91+
buildConfiguration = "Release"
92+
revealArchiveInOrganizer = "YES">
93+
</ArchiveAction>
94+
</Scheme>

samples/admob/interstitial_example/ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import UIKit
22
import Flutter
33

4-
@UIApplicationMain
4+
@main
55
@objc class AppDelegate: FlutterAppDelegate {
66
override func application(
77
_ application: UIApplication,

samples/admob/interstitial_example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
dependencies:
1010
flutter:
1111
sdk: flutter
12-
google_mobile_ads: ^6.0.0
12+
google_mobile_ads: ^7.0.0
1313

1414
dev_dependencies:
1515
flutter_test:

0 commit comments

Comments
 (0)