Skip to content

Commit

Permalink
Fix depricated values kGADAdSizeBanner and bottomLayoutGuide
Browse files Browse the repository at this point in the history
  • Loading branch information
souzamari committed Oct 23, 2024
1 parent 54414b7 commit 0225109
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ios-sdk-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,19 @@ jobs:
run: bundle install
- name: Build Demo Swift
run: bundle exec fastlane demo_swift
- name: Check dir contents
run: |
pwd
cd fastlane
ls -la
- name: Store Artifacts
uses: actions/upload-artifact@v4
with:
name: demo-swift
path: output/**
path: |
./scan/**
./gym/**
./buildlogs/**
build-demo-objc:
name: "Build Demo Objective-C"
Expand All @@ -65,4 +73,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: demo-objct
path: output/**
path: ./output/**
4 changes: 2 additions & 2 deletions demo-ios-objc/demo-ios-objc/GAMBannerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ @implementation GAMBannerViewController
- (void)viewDidLoad {
[super viewDidLoad];

self.bannerView = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner];
self.bannerView = [[GADBannerView alloc] initWithAdSize:GADAdSizeBanner];
self.bannerView.adUnitID = @"/22081946781/ios-sdk-demo/mobile-leaderboard";
[self addBannerViewToView:self.bannerView];
self.bannerView.rootViewController = self;
Expand Down Expand Up @@ -76,7 +76,7 @@ - (void)addBannerViewToView:(UIView *)bannerView {
[NSLayoutConstraint constraintWithItem:bannerView
attribute:NSLayoutAttributeBottom
relatedBy:NSLayoutRelationEqual
toItem:self.bottomLayoutGuide
toItem:self.view.safeAreaLayoutGuide.bottomAnchor
attribute:NSLayoutAttributeTop
multiplier:1
constant:0],
Expand Down
4 changes: 2 additions & 2 deletions demo-ios-swift/demo-ios-swift/GAMBannerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class GAMBannerViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()

bannerView = GADBannerView(adSize: kGADAdSizeBanner)
bannerView = GADBannerView(adSize: GADAdSizeBanner)
addBannerViewToView(bannerView)
bannerView.rootViewController = self
}
Expand Down Expand Up @@ -144,7 +144,7 @@ class GAMBannerViewController: UIViewController {
NSLayoutConstraint(item: bannerView,
attribute: .bottom,
relatedBy: .equal,
toItem: bottomLayoutGuide,
toItem: view.safeAreaLayoutGuide.bottomAnchor,
attribute: .top,
multiplier: 1,
constant: 0),
Expand Down

0 comments on commit 0225109

Please sign in to comment.