Skip to content

Remove redundant isVerified from AdMob reward verification result#6760

Merged
polmiro merged 1 commit into
mainfrom
admob-public-api-remove-isverified
May 11, 2026
Merged

Remove redundant isVerified from AdMob reward verification result#6760
polmiro merged 1 commit into
mainfrom
admob-public-api-remove-isverified

Conversation

@polmiro

@polmiro polmiro commented May 11, 2026

Copy link
Copy Markdown
Member

Checklist

  • If applicable, unit tests
  • If applicable, create follow-up issues for purchases-android and hybrids

Motivation

RewardVerificationResult.isVerified duplicates the information already represented by verifiedReward. Keeping both introduces redundant API surface and can lead to ambiguous usage.

Description

  • Removes RewardVerificationResult.isVerified from the experimental RevenueCatAdMob API.
  • Keeps verification success/failure projection through existing properties:
    • success: verifiedReward != nil
    • failure: isFailed == true (and verifiedReward == nil)
  • Updates adapter unit tests to assert verifiedReward directly instead of isVerified.
  • Verified by running: swift test --filter RevenueCatAdMobTests in AdapterSDKs/RevenueCatAdMob.

Note

Low Risk
Low risk: removes a redundant experimental projection property and updates unit tests to check verifiedReward directly, with no behavioral changes to verification logic.

Overview
Removes the experimental RewardVerificationResult.isVerified property, relying on verifiedReward != nil to represent successful verification.

Updates the AdMob adapter unit tests to stop referencing isVerified and instead assert verifiedReward presence/contents for verified outcomes.

Reviewed by Cursor Bugbot for commit 2010b21. Bugbot is set up for automated code reviews on this repo. Configure here.

@polmiro polmiro marked this pull request as ready for review May 11, 2026 09:29
@polmiro polmiro requested a review from a team as a code owner May 11, 2026 09:29
@polmiro polmiro requested a review from ajpallares May 11, 2026 09:29

@ajpallares ajpallares left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the cleanup!

@polmiro polmiro enabled auto-merge (squash) May 11, 2026 09:30
@polmiro polmiro merged commit 8b33861 into main May 11, 2026
23 of 43 checks passed
@polmiro polmiro deleted the admob-public-api-remove-isverified branch May 11, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants