From 07cedc7e98cc548f051f76bd25c16ee4cc8be689 Mon Sep 17 00:00:00 2001 From: yoshi Date: Mon, 1 Oct 2018 21:49:16 +0900 Subject: [PATCH] Preparation for upgrade, running ok on iPhone X real --- FlatReversi.xcodeproj/project.pbxproj | 2 -- FlatReversi/GameViewController.swift | 16 ++++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/FlatReversi.xcodeproj/project.pbxproj b/FlatReversi.xcodeproj/project.pbxproj index 9a5c9e8..020647c 100755 --- a/FlatReversi.xcodeproj/project.pbxproj +++ b/FlatReversi.xcodeproj/project.pbxproj @@ -55,7 +55,6 @@ 8BA555371DCAE90600EC3CCA /* Graphene.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B54AB301DC62ED1006A222F /* Graphene.framework */; }; 8BA555381DCAE90600EC3CCA /* Graphene.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 8B54AB301DC62ED1006A222F /* Graphene.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 8BF2C4AB1A4D860000F22AB4 /* AppearanceManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BF2C4AA1A4D860000F22AB4 /* AppearanceManager.swift */; }; - 8BF717FD1D901CD400D46ED8 /* GoogleMobileAds.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BF717FC1D901CD400D46ED8 /* GoogleMobileAds.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -146,7 +145,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 8BF717FD1D901CD400D46ED8 /* GoogleMobileAds.framework in Frameworks */, 8B22E26E19FD3A0A0006E39C /* Security.framework in Frameworks */, 8B22E20519FD35F30006E39C /* SystemConfiguration.framework in Frameworks */, 8B22E20319FD35ED0006E39C /* StoreKit.framework in Frameworks */, diff --git a/FlatReversi/GameViewController.swift b/FlatReversi/GameViewController.swift index 1ca2955..4982ab1 100755 --- a/FlatReversi/GameViewController.swift +++ b/FlatReversi/GameViewController.swift @@ -8,7 +8,7 @@ import UIKit import SpriteKit -import GoogleMobileAds +//import GoogleMobileAds extension SKNode { class func unarchiveFromFile(_ file : NSString) -> SKNode? { @@ -37,7 +37,7 @@ class GameViewController: UIViewController, UINavigationBarDelegate { var currentScene: SKScene? = nil - @IBOutlet weak var bannerView: GADBannerView! + @IBOutlet weak var bannerView: UIView! override func viewDidLoad() { super.viewDidLoad() @@ -81,12 +81,12 @@ class GameViewController: UIViewController, UINavigationBarDelegate { gs.resetAndSave() } - // Ad - if let uBannerView = bannerView { - uBannerView.adUnitID = "ca-app-pub-4004659206753296/7384819767" - uBannerView.rootViewController = self - uBannerView.load(GADRequest()) - } +// // Ad +// if let uBannerView = bannerView { +// uBannerView.adUnitID = "ca-app-pub-4004659206753296/7384819767" +// uBannerView.rootViewController = self +// uBannerView.load(GADRequest()) +// } } func position(for bar: UIBarPositioning) -> UIBarPosition {