-
Notifications
You must be signed in to change notification settings - Fork 435
Fix AdMob iOS linking, Android banners, and simulator interstitials #5758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
8fe6985
Fix AdMob iOS linking, Android banner sizing, and mock interstitial d…
shai-almog 1c559af
Add required copyright headers to advertising regression tests
shai-almog 3a372f7
Link SDK stub libraries in generated Apple projects
shai-almog 7fe28bc
Use Zulu Java 8 for ARM64 macOS AdMob checks
shai-almog a0523d6
Handle mock ad dismissal from dialogs and app startup
shai-almog d410c96
Preserve caller dialog modality when dismissing mock ads
shai-almog 5aa45fb
Preserve nested dialog navigation when disposing mock ads
shai-almog 15fcd19
Serialize mock ad lifecycle transitions on the EDT
shai-almog 69c8e7c
Simplify mock full-screen ads to layered-pane overlays
shai-almog 59125bd
Reject overlapping mock ads on the same form
shai-almog f68bd14
Keep keyboard focus within mock full-screen ads
shai-almog 2962ccf
Isolate mock full-screen ad input in its own Form
shai-almog af07e57
Scope Swift compatibility search paths to AdMob apps
shai-almog dcce3bc
Use existing Swift support for the AdMob library
shai-almog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: AdMob Android banner runtime check | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| branches: [master] | ||
| paths: | ||
| - 'maven/cn1-admob/**' | ||
| - 'scripts/cn1lib-api-check/admob-runtime/**' | ||
| - '.github/workflows/admob-android-runtime-check.yml' | ||
| push: | ||
| branches: [master] | ||
| paths: | ||
| - 'maven/cn1-admob/**' | ||
| - 'scripts/cn1lib-api-check/admob-runtime/**' | ||
| - '.github/workflows/admob-android-runtime-check.yml' | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| banner-measurement: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 20 | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: temurin | ||
| java-version: '17' | ||
| - uses: gradle/actions/setup-gradle@v4 | ||
| with: | ||
| gradle-version: '8.13' | ||
| - name: Enable KVM | ||
| run: | | ||
| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | ||
| sudo udevadm control --reload-rules | ||
| sudo udevadm trigger --name-match=kvm | ||
| - uses: reactivecircus/android-emulator-runner@v2 | ||
| with: | ||
| api-level: 35 | ||
| arch: x86_64 | ||
| disable-animations: true | ||
| script: gradle -p scripts/cn1lib-api-check/admob-runtime connectedDebugAndroidTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
maven/cn1-admob/common/codenameone_library_appended.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| # Reserved for build hints appended to the consuming app's properties. | ||
| # Google Mobile Ads contains C++ objects even when the host app is Objective-C. | ||
| # Append, preserving any frameworks the application already links. | ||
| codename1.arg.ios.add_libs=;libc++.tbd | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
maven/cn1-admob/ios/src/main/objectivec/CN1AdMobSwiftSupport.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| /* | ||
| * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. | ||
| * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
| * This code is free software; you can redistribute it and/or modify it | ||
| * under the terms of the GNU General Public License version 2 only, as | ||
| * published by the Free Software Foundation. Codename One designates this | ||
| * particular file as subject to the "Classpath" exception as provided | ||
| * by Oracle in the LICENSE file that accompanied this code. | ||
| * | ||
| * This code is distributed in the hope that it will be useful, but WITHOUT | ||
| * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
| * version 2 for more details (a copy is included in the LICENSE file that | ||
| * accompanied this code). | ||
| * | ||
| * You should have received a copy of the GNU General Public License version | ||
| * 2 along with this work; if not, write to the Free Software Foundation, | ||
| * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
| * | ||
| * Please contact Codename One through http://www.codenameone.com/ if you | ||
| * need additional information or have any questions. | ||
| */ | ||
| // Google Mobile Ads includes prebuilt Swift objects. An app-target Swift source | ||
| // activates CN1's existing Swift support and Xcode's compatibility-library | ||
| // linkage, including when all of the application's own native code is Objective-C. | ||
| import Foundation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.