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

feat: support masking private views #516

Open
wants to merge 18 commits into
base: dev
Choose a base branch
from

Conversation

ahmedAlaaInstabug
Copy link
Contributor

Description of the change

  1. masking private views

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

JIRA ID: MOB-16098

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests

Code review

  • This pull request has a descriptive title and information useful to a reviewer
  • Issue from task tracker has a link to this pull request

@ahmedAlaaInstabug ahmedAlaaInstabug changed the base branch from master to dev October 2, 2024 20:29
@InstabugCI
Copy link
Collaborator

InstabugCI commented Oct 2, 2024

Coverage Report

Label Coverage Status
Dart 85.9%

Generated by 🚫 dangerJS against 6dcdffb

lib/src/utils/private_views/instabug_private_view.dart Outdated Show resolved Hide resolved
lib/src/utils/private_views/instabug_private_view.dart Outdated Show resolved Hide resolved
Comment on lines +122 to +127
internalCore._setScreenshotCaptor(new ScreenshotCaptor() {
@Override
public void capture(@NonNull ScreenshotRequest screenshotRequest) {
privateViewManager.mask(screenshotRequest.getListener());
}
});
Copy link
Contributor

Choose a reason for hiding this comment

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

I see the privateViewManager frequently switching to the main thread through ThreadManager.runOnMainThread, are there possibilities of the screenshot captor being called on a background thread?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

noo,, access flutter view need to be on the main thread

@Instabug Instabug deleted a comment from a7medev Oct 27, 2024
@a7medev a7medev changed the title feat : Masking private views feat: masking private views Oct 29, 2024
@a7medev a7medev changed the title feat: masking private views feat(android): mask private views Oct 31, 2024
@a7medev a7medev changed the title feat(android): mask private views feat: support masking private views Oct 31, 2024
* feat: add private view page

* fix private view screen
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.

3 participants