github_snitch 0.0.1-beta copy "github_snitch: ^0.0.1-beta" to clipboard
github_snitch: ^0.0.1-beta copied to clipboard

outdated

Package for report app crashes & issues to it github repo

Package for open github issue for crashes, issues & proposals #

Features #

  • Create labels for package
    • GhSnitch-external for Errors not caught by Flutter Framework
      • GhSnitch-internal for Errors caught by Flutter Framework
    • Reported by GhSnitch Package for know which issues reported from this package
  • Report bugs on github issues with specific labels,assignees, milestone
    • Automaticlly when call listenToExceptions method in main as in example
    • Manually with report method
  • Support offline case (save locally & send later when connection exist)

TODO #

  • ❌ Fetch issue comments & give user to discuss his issue/proposal from app with repo contributors

💡 Feel free to add any idea

Getting started #

After install package you need to generate Personal access token We need also owner username & repo name

We will use Environment variables for save this sensive keys

Usage #

For run or build app just pass --dart-define for every key as example :

flutter build apk --split-per-abi --dart-define owner=owner --dart-define repo=repo --dart-define token=token

Then Add this code before runApp method As you see we used keys from Environment

WidgetsFlutterBinding.ensureInitialized();
  const String owner = String.fromEnvironment('owner');
  GhSnitch.initialize(
      owner: owner,
      token: const String.fromEnvironment('token'),
      repo: const String.fromEnvironment("repo"));
  if (!kReleaseMode) {
    // For report exceptions & bugs Automaticlly
    GhSnitch.listenToExceptions(assignees: [owner]);
  }
  runApp(const MyApp());

For report issues Manually (from users) check _report method on example

If you want to test it in debug mode you can remove ReleaseMode condition

⚙️ Finally feel free to contribute ⚙️

5
likes
0
pub points
42%
popularity

Publisher

verified publisherbixat.dev

Package for report app crashes & issues to it github repo

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, shared_preferences

More

Packages that depend on github_snitch