Skip to content

feat: support masking screen names #500

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

Merged
merged 12 commits into from
Sep 5, 2024
Merged

feat: support masking screen names #500

merged 12 commits into from
Sep 5, 2024

Conversation

a7medev
Copy link
Contributor

@a7medev a7medev commented Aug 11, 2024

Description of the change

Support masking screen names using Instabug.setScreenNameMaskingCallback.

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-15531

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

@InstabugCI
Copy link
Collaborator

InstabugCI commented Aug 11, 2024

Coverage Report

Label Coverage Status
Dart 85.3%

Generated by 🚫 dangerJS against 1914942

@a7medev a7medev force-pushed the feat/mask-screen-names branch from 7a5c6df to 6181dcf Compare August 11, 2024 14:58
@a7medev a7medev changed the base branch from dev to test/navigator-observer August 11, 2024 14:58
@a7medev a7medev self-assigned this Aug 11, 2024
Base automatically changed from test/navigator-observer to dev August 12, 2024 11:19
@a7medev a7medev force-pushed the feat/mask-screen-names branch from 68eb671 to ebfb74b Compare August 12, 2024 11:20
routePath: trace.screenName,
actualPath: currentUiTrace?.screenName,
);
final isSameScreen = currentUiTrace?.matches(trace.screenName) == true;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced the direct RouteMatcher call with UiTrace.matches as the matching screen name is not exposed on the UiTrace object to avoid misuse.

@a7medev a7medev marked this pull request as ready for review August 12, 2024 11:36
@a7medev a7medev requested a review from kholood-ea August 12, 2024 11:37
@a7medev a7medev merged commit 40d38f9 into dev Sep 5, 2024
11 checks passed
@a7medev a7medev deleted the feat/mask-screen-names branch September 5, 2024 13:45
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.

4 participants