Skip to content

feat: improve reward ad support with earn-reward tracking#15

Merged
2sem merged 1 commit intomainfrom
feature/reward-ad-support
Mar 10, 2026
Merged

feat: improve reward ad support with earn-reward tracking#15
2sem merged 1 commit intomainfrom
feature/reward-ad-support

Conversation

@2sem
Copy link
Owner

@2sem 2sem commented Mar 10, 2026

Summary

  • Add didEarnRewardForUnit delegate callback (non-breaking, default no-op)
  • Track per-unit reward earned state via rewardedUnits dictionary
  • Reset reward state to false on present; set true inside userDidEarnRewardHandler
  • Completion Bool now reflects actual reward earned for reward units

🤖 Generated with Claude Code

- Add `didEarnRewardForUnit` delegate callback (with default no-op)
- Track per-unit reward earned state via `rewardedUnits` dictionary
- Reset reward state on present; set true in `userDidEarnRewardHandler`
- Completion Bool now reflects actual reward earned for reward units
  (non-reward units continue to pass true on dismiss as before)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@2sem 2sem merged commit 1829ee4 into main Mar 10, 2026
2 checks passed
@github-actions
Copy link

🤖 Hi @2sem, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

@2sem 2sem deleted the feature/reward-ad-support branch March 10, 2026 06:15
@github-actions
Copy link

🤖 I'm sorry @2sem, but I was unable to process your request. Please see the logs for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant