diff --git a/ios/Classes/AdmobBanner.swift b/ios/Classes/AdmobBanner.swift index 77a36c2..6778b03 100644 --- a/ios/Classes/AdmobBanner.swift +++ b/ios/Classes/AdmobBanner.swift @@ -129,7 +129,7 @@ extension AdmobBanner : GADBannerViewDelegate { channel.invokeMethod("opened", arguments: nil) } - // channel.invokeMethod("impression", null) + // TODO: not sure this exists on iOS. channel.invokeMethod("impression", null) func adViewWillLeaveApplication(_ bannerView: GADBannerView) { channel.invokeMethod("leftApplication", arguments: nil) diff --git a/ios/Classes/AdmobInterstitial.swift b/ios/Classes/AdmobInterstitial.swift new file mode 100644 index 0000000..788170f --- /dev/null +++ b/ios/Classes/AdmobInterstitial.swift @@ -0,0 +1,27 @@ +/* + Copyright (c) 2019 Kevin McGill + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + */ + +import Foundation + +class AdmobIntersitial: NSObject { + + +} diff --git a/ios/Classes/SwiftAdmobFlutterPlugin.swift b/ios/Classes/SwiftAdmobFlutterPlugin.swift index 0a0165a..7621490 100644 --- a/ios/Classes/SwiftAdmobFlutterPlugin.swift +++ b/ios/Classes/SwiftAdmobFlutterPlugin.swift @@ -31,6 +31,7 @@ public class SwiftAdmobFlutterPlugin: NSObject, FlutterPlugin { registrar.addMethodCallDelegate(instance, channel: defaultChannel) let interstitialChannel = FlutterMethodChannel(name: "admob_flutter/interstitial", binaryMessenger: registrar.messenger()) +// registrar.addMethodCallDelegate(AdmobIntersitial(), channel: interstitialChannel) registrar.addMethodCallDelegate(instance, channel: interstitialChannel) let rewardChannel = FlutterMethodChannel(name: "admob_flutter/reward", binaryMessenger: registrar.messenger())