Skip to content

AdMob Rewarded Ads on iOS #752

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 3 commits into from
Nov 29, 2021

Conversation

DellaBitta
Copy link
Contributor

Description

Provide details of the change, and generalize the change in the PR title above.

Updates the iOS implement to be able to display rewarded ads.


Testing

Describe how you've tested these changes. Link any manually triggered Integration tests or CPP binary SDK Packaging Github Action workflows, if applicable.

Local testing with the itests on an iOS device.
iTest Ci


Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

@google-cla google-cla bot added the cla: yes label Nov 19, 2021
@DellaBitta DellaBitta changed the title ios rewarded ads AdMob Rewarded Ads on iOS Nov 19, 2021
@DellaBitta DellaBitta marked this pull request as ready for review November 22, 2021 15:23
RewardedAdInternalIOS::~RewardedAdInternalIOS() {
firebase::MutexLock lock(mutex_);
// Clean up any resources created in RewardedAdInternalIOS.
Mutex mutex(Mutex::kModeNonRecursive);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the model we use for other things that block until the destruction is complete? Or do we use a Semaphore?

}
mutex_in_block->Release();
};
util::DispatchAsyncSafeMainQueue(destroyBlock);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is a pattern we've done before, I wonder if we should actually make a DispatchAsyncSafeMainQueueBlocking, and also add tests for it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to change this in the next PR which includes some other stability fixes.

@DellaBitta DellaBitta merged commit dc996e0 into feature/admob_2021 Nov 29, 2021
@DellaBitta DellaBitta deleted the feature/admob_2021_ios_rewarded_ads branch November 29, 2021 13:28
@github-actions github-actions bot added the tests: in-progress This PR's integration tests are in progress. label Nov 29, 2021
@github-actions
Copy link

github-actions bot commented Nov 29, 2021

❌  Integration test FAILED

Requested by @DellaBitta on commit dc996e0
Last updated: Mon Nov 29 08:12 PST 2021
View integration test log & download artifacts

Failures Configs
missing_log [TEST] [ERROR] [iOS] [macos] [All ios_device]
admob [TEST] [ERROR] [Android] [macos] [android_target]
auth [TEST] [ERROR] [Android] [macos] [android_target]

Add flaky tests to go/fpl-cpp-flake-tracker

@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Nov 29, 2021
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Nov 29, 2021
@firebase firebase locked and limited conversation to collaborators Dec 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes tests: failed This PR's integration tests failed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants