Instabug-Flutter icon indicating copy to clipboard operation
Instabug-Flutter copied to clipboard

feat: update cr setup

Open MoKamall opened this issue 5 months ago • 3 comments

Description of the change

Added InstabugWidget, a wrapper used to wrap the main application to provide out of the box automatic Crash Reporting support.

Example:

void main() {
  WidgetsFlutterBinding.ensureInitialized();

      Instabug.init(
        token: 'APP_TOKEN',
        invocationEvents: [InvocationEvent.floatingButton],
        debugLogsLevel: LogLevel.verbose,
      );

  final app = InstabugWidget(
    child: const MyApp(),
  );

  runApp(app);
}

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

https://instabug.atlassian.net/browse/MOB-19013

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

MoKamall avatar Jul 07 '25 16:07 MoKamall

Coverage Report

Label Coverage Status
Dart 83.8%

Generated by :no_entry_sign: dangerJS against 52108778838c46c80866bc01539bbfb62713f928

InstabugCI avatar Jul 07 '25 16:07 InstabugCI

@MoKamall This PR seems to include more changes than intended. It should focus solely on adding the InstabugWidget wrapper, but it also contains commits related to the network body size and crashes. Could you separate the necessary commits to make it easier to review?

andrewdanieldev avatar Jul 08 '25 09:07 andrewdanieldev

@AndrewAminInstabug Please check again now.

MoKamall avatar Jul 08 '25 16:07 MoKamall