smf_hooks 1.0.0 copy "smf_hooks: ^1.0.0" to clipboard
smf_hooks: ^1.0.0 copied to clipboard

Lightweight typed hook SDK for SMF release automation.

example/smf_hooks_example.dart

import 'package:smf_hooks/smf_hooks.dart';

final class WriteStoreReleaseNotes extends SmfHook {
  @override
  Future<void> run(SmfBeforeCreatePrContext context) async {
    final ios = context.release.ios;
    if (ios != null) {
      ios.storeReleaseNotes.write(
        locale: 'en-US',
        message: ios.changes.map((change) => '- ${change.description}').join('\n'),
      );
    }

    final android = context.release.android;
    if (android != null) {
      android.storeReleaseNotes.write(
        locale: 'en-US',
        message: android.changes.map((change) => '- ${change.description}').join('\n'),
      );
    }
  }
}

Future<void> main() => runSmfHook(WriteStoreReleaseNotes());
0
likes
0
points
355
downloads

Publisher

verified publisherventairy.com

Weekly Downloads

Lightweight typed hook SDK for SMF release automation.

Repository (GitHub)
View/report issues

Topics

#release #automation #hooks

License

unknown (license)

More

Packages that depend on smf_hooks