Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #2981: Social Sharing #3387

Merged
merged 17 commits into from
Mar 12, 2021
Merged

Conversation

soner-yuksel
Copy link
Contributor

@soner-yuksel soner-yuksel commented Mar 8, 2021

This Pull Request is implementing the changes on Brave Shields to promote sharing

The implementation currently adding all Sharing features like creating the tracker tier and changes to educational onboarding and changes to the Brave shield screen and actually sharing with Activity Controller.

For sharing Part we are getting a screenshot of Global Stats View and sharing it with additional text. For some sharing types like whatsapp, slack, instagram etc.., we are expanding the snapshotted image and drawing text inside the image with CoreGraphics,

Summary of Changes

This pull request fixes #2981

Submitter Checklist:

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

Test Plan:

Part1:
Press Brave Shields on Top Bar
Checkout the changes on blocked row
Press the share button and checkout the share type screen with row types

Part2:
Hit one of the block count tier number on Browser
Press the share button and checkout the share type screen with row types

Screenshots:

1 1

1 1 1

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).

Copy link
Contributor

@iccub iccub left a comment

Choose a reason for hiding this comment

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

Nitpick review, i will run this code now and leave another round of feedback

Client/Extensions/UIViewExtensions.swift Outdated Show resolved Hide resolved
Client/Extensions/UIViewExtensions.swift Outdated Show resolved Hide resolved
Client/Extensions/UIViewExtensions.swift Outdated Show resolved Hide resolved
let attachment = ViewTextAttachment(view: self.infoButton)
string.append(NSAttributedString(attachment: attachment))
// Share UI only exist in locale JP
if Locale.current.regionCode != "JP" {
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this check for JP existence, not the other way around?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No we add the question mark for help navigation as text attachment normally. In JP locale we are changing this to new button design with share.

Copy link
Contributor

@iccub iccub left a comment

Choose a reason for hiding this comment

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

nice job :)

@iccub iccub added this to the 1.24 milestone Mar 12, 2021
Copy link
Contributor

@jumde jumde left a comment

Choose a reason for hiding this comment

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

lgtm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase App Virality
4 participants