Skip to content
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

Fix #1647, Fix #1650: Only enable ads by default when current region is supported #1688

Merged
merged 2 commits into from Oct 15, 2019

Conversation

@kylehickinson
Copy link
Contributor

kylehickinson commented Oct 15, 2019

Please choose "Rebase" for merge strategy

Summary of Changes

This pull request fixes issue #1647
This pull request fixes issue #1650

Relevant brave-core changes for #1647: brave/brave-core#3701

Submitter Checklist:

  • Unit Tests are updated to cover new or changed functionality
  • User-facing strings use NSLocalizableString()

Test Plan:

  • Enable rewards
  • Set region to non-supported ad region, go through onboarding
  • Verify ads is disabled due to unsupported region
  • Set region to supported ad region, ads onboarding should show "Turn On" button instead of "Show Me"
  • After completing onboarding verify that ads is enabled in Brave Rewards settings

Reviewer Checklist:

  • Issues include necessary QA labels:
    • QA/(Yes|No)
    • release-notes/(include|exclude)
    • bug / enhancement
  • Necessary security reviews have taken place.
  • Adequate unit test coverage exists to prevent regressions.
  • Adequate test plan exists for QA to validate (if applicable).
  • Issue is assigned to a milestone (should happen at merge time).
@kylehickinson kylehickinson requested review from Brandon-T and iccub Oct 15, 2019
@@ -550,7 +550,7 @@ extension Strings {
public static let OBSaveButton = NSLocalizedString("OBSaveButton", bundle: Bundle.braveShared, value: "Save", comment: "Save button to save current selection")
public static let OBFinishButton = NSLocalizedString("OBFinishButton", bundle: Bundle.braveShared, value: "Start browsing", comment: "Button to finish onboarding and start using the app.")
public static let OBJoinButton = NSLocalizedString("OBJoinButton", bundle: Bundle.braveShared, value: "Join", comment: "Button to join Brave Rewards.")
public static let OBShowMeButton = NSLocalizedString("OBShowMeButton", bundle: Bundle.braveShared, value: "Show Me", comment: "Button to show Brave Rewards.")
public static let OBTurnOnButton = NSLocalizedString("OBTurnOnButton", bundle: Bundle.braveShared, value: "Turn On", comment: "Button to show Brave Rewards.")

This comment has been minimized.

Copy link
@Brandon-T

Brandon-T Oct 15, 2019

Collaborator

I did this one too: #1684
I'll fix mine AFTER yours merges.
:(

This comment has been minimized.

Copy link
@kylehickinson

kylehickinson Oct 15, 2019

Author Contributor

Haha, next time make sure to assign the ticket to yourself in GitHub. Either way these 2 tickets are kind of related 😅 Sorry haha

@kylehickinson kylehickinson merged commit 8db0528 into development Oct 15, 2019
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@kylehickinson kylehickinson deleted the ads-onboarding branch Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.