Skip to content

Commit

Permalink
Preparation for upgrade, running ok on iPhone X real
Browse files Browse the repository at this point in the history
  • Loading branch information
ysnrkdm committed Oct 1, 2018
1 parent 9ceb4bd commit 07cedc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 0 additions & 2 deletions FlatReversi.xcodeproj/project.pbxproj
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */,
Expand Down
16 changes: 8 additions & 8 deletions FlatReversi/GameViewController.swift
Expand Up @@ -8,7 +8,7 @@

import UIKit
import SpriteKit
import GoogleMobileAds
//import GoogleMobileAds

extension SKNode {
class func unarchiveFromFile(_ file : NSString) -> SKNode? {
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 07cedc7

Please sign in to comment.