From cdf769e13407e8d44c7658d0597a2f71b13bb545 Mon Sep 17 00:00:00 2001 From: Justin Malandruccolo Date: Tue, 14 Jan 2025 12:18:06 -0800 Subject: [PATCH] Modernized Objective-C Native ad layout PiperOrigin-RevId: 715477880 --- .github/workflows/build.yml | 6 +- .../Base.lproj/Main.storyboard | 344 ++++++++++-------- .../Base.lproj/NativeAdView.xib | 151 ++++---- .../Base.lproj/SimpleCustomNativeAdView.xib | 17 +- .../ViewController.m | 21 +- 5 files changed, 302 insertions(+), 237 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bb829ea4..50dd4af3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,11 +19,11 @@ jobs: matrix: include: - { regex: "Objective-C/advanced", xcode_version: "15.3" } - - { regex: "Swift/advanced", xcode_version: "16.0" } + - { regex: "Swift/advanced", xcode_version: "16.1" } - { regex: "Objective-C/admob", xcode_version: "15.3" } - - { regex: "Swift/admob", xcode_version: "16.0" } + - { regex: "Swift/admob", xcode_version: "16.1" } - { regex: "Objective-C/admanager", xcode_version: "15.3" } - - { regex: "Swift/admanager", xcode_version: "16.0" } + - { regex: "Swift/admanager", xcode_version: "16.1" } steps: - name: Clone Repo uses: actions/checkout@v1 diff --git a/Objective-C/admanager/AdManagerCustomRenderingExample/AdManagerCustomRenderingExample/Base.lproj/Main.storyboard b/Objective-C/admanager/AdManagerCustomRenderingExample/AdManagerCustomRenderingExample/Base.lproj/Main.storyboard index 2e543b48..0d91a206 100644 --- a/Objective-C/admanager/AdManagerCustomRenderingExample/AdManagerCustomRenderingExample/Base.lproj/Main.storyboard +++ b/Objective-C/admanager/AdManagerCustomRenderingExample/AdManagerCustomRenderingExample/Base.lproj/Main.storyboard @@ -1,210 +1,264 @@ - - + + - + + - + - - - + + + - + - + - + - + - + - - + + - - + + - - + + - - + + - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - - - - - - - - - - - - - - - - - + + + + - - - - + + + + + + + - - - - - + + + + - - + + - + - + - + - - - - - - - - - + + + + + + + + + - + - + + + + diff --git a/Objective-C/admanager/AdManagerCustomRenderingExample/AdManagerCustomRenderingExample/Base.lproj/NativeAdView.xib b/Objective-C/admanager/AdManagerCustomRenderingExample/AdManagerCustomRenderingExample/Base.lproj/NativeAdView.xib index 144ced9f..1841a532 100644 --- a/Objective-C/admanager/AdManagerCustomRenderingExample/AdManagerCustomRenderingExample/Base.lproj/NativeAdView.xib +++ b/Objective-C/admanager/AdManagerCustomRenderingExample/AdManagerCustomRenderingExample/Base.lproj/NativeAdView.xib @@ -1,85 +1,93 @@ - + - - + + - + - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + diff --git a/Objective-C/admanager/AdManagerCustomRenderingExample/AdManagerCustomRenderingExample/Base.lproj/SimpleCustomNativeAdView.xib b/Objective-C/admanager/AdManagerCustomRenderingExample/AdManagerCustomRenderingExample/Base.lproj/SimpleCustomNativeAdView.xib index 92b6b38d..b2f70c73 100644 --- a/Objective-C/admanager/AdManagerCustomRenderingExample/AdManagerCustomRenderingExample/Base.lproj/SimpleCustomNativeAdView.xib +++ b/Objective-C/admanager/AdManagerCustomRenderingExample/AdManagerCustomRenderingExample/Base.lproj/SimpleCustomNativeAdView.xib @@ -1,20 +1,24 @@ - + - + - + - - + + + + + +