flutter_deploy 0.0.1
flutter_deploy: ^0.0.1 copied to clipboard
A Dart CLI tool for Flutter developers — auto-increments build numbers, syncs iOS project files, and optionally stamps a deploy timestamp constant.
// Example of using flutter_deploy programmatically.
// For most users, the CLI (`flutter_deploy` command) is all you need.
import 'package:flutter_deploy/flutter_deploy.dart';
void main() {
// Parse and bump a version
final current = FlutterVersion.parse('1.0.0+79');
final next = current.withIncrementedBuild();
print('$current → $next'); // 1.0.0+79 → 1.0.0+80
// Format a build timestamp
final ts = BuildStamper.formatTimestamp(DateTime(2026, 4, 24, 15, 41));
print(ts); // 240420261541
// Run the full interactive deploy workflow (reads pubspec.yaml from cwd)
// await DeployRunner().run();
// Or non-interactive CI bump
// await DeployRunner(autoBump: true).run();
}