gamif_scanner 1.0.8 copy "gamif_scanner: ^1.0.8" to clipboard
gamif_scanner: ^1.0.8 copied to clipboard

A Dart CLI tool that scans Flutter projects using AST analysis, detects all Dart methods automatically.

example/main.dart

// example/main.dart
/// Example of using gamif_scanner programmatically.
///
/// Normally you run it via the command line:
/// ```sh
/// dart pub global activate gamif_scanner
/// dart pub global run gamif_scanner:setup .
/// ```
library;

import 'package:gamif_scanner/gamif_scanner.dart';

Future<void> main() async {
  const projectPath = '/path/to/your/flutter/project';

  // 1. Scan the project
  final scanner = ProjectScanner(projectPath: projectPath);
  final methods = await scanner.scanProject();
  print('Found ${methods.length} methods');

  // 2. Inject tracking into selected methods
  final injector = CodeInjector(projectPath: projectPath);
  final result = await injector.inject(
    selectedMethods: methods.take(3).toList(),
    apiKey: 'your_api_key_here',
  );
  print('Injected: ${result.injectedCount}');
}
1
likes
150
points
484
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Dart CLI tool that scans Flutter projects using AST analysis, detects all Dart methods automatically.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analyzer, path

More

Packages that depend on gamif_scanner