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: add proactive bug reporting #559

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

Conversation

ahmedAlaaInstabug
Copy link
Contributor

Description of the change

feat: add proactive bug reporting

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

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 and others added 2 commits January 2, 2025 15:55
* fix: add support for newer gradle versions (#512)

* feat: attach w3c header (#481)

* feat: add android feature flag

* fix: test cases

* fix: test cases

* fix: test cases

* fix: test cases

* fix: add more test cases

* fix: add more test cases

* fix: add more test cases

* fix: add more test cases

* Release: v14.0.0 (#532)

* chore(android): bump sdk to v14.0.0

* chore(ios): bump sdk to v14.0.0

* Release: v14.0.0

* Release: v14.0.0

* Release: v14.0.0

* chore: change release date (#535)

* Release: 14.1.0 (#539)

* release:  14.1.0

* release:  14.1.0

* release: v14.1.0

* release: v14.1.0

---------

Co-authored-by: kholood <[email protected]>
@ahmedAlaaInstabug ahmedAlaaInstabug self-assigned this Mar 9, 2025
@ahmedAlaaInstabug ahmedAlaaInstabug changed the base branch from master to dev March 9, 2025 21:18
# Conflicts:
#	CHANGELOG.md
#	example/ios/Podfile.lock
@InstabugCI
Copy link
Collaborator

InstabugCI commented Mar 9, 2025

Coverage Report

Label Coverage Status
Dart 84.2%

Generated by 🚫 dangerJS against dbee490

}

// Builder class for ProactiveReportingConfigs
class ProactiveReportingConfigsBuilder {
Copy link
Contributor

Choose a reason for hiding this comment

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

would you please tell me why have we opted into Builder pattern here instead of named parameters with default value?


@Override
public void setProactiveReportingConfigurations(@NonNull Boolean enabled, @NonNull Long gapBetweenModals, @NonNull Long modalDelayAfterDetection) {
ThreadManager.runOnMainThread(new Runnable() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please explain to me why are we explicitly running our logic using the ThreadManager.runOnMainThread(...) api?

public void testSetProactiveReportingConfigurations() {
// given
boolean enabled = true;
long gapBetweekDialogs = 20;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe there's a small typo here. It should be gapBetweenDialogs instead of gapBetweekDialogs, right?

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.

5 participants