main.dart 903 B

123456789101112131415161718192021222324252627282930
  1. import 'package:keystore_generator/src/arguments.dart';
  2. import 'package:keystore_generator/src/build_gradle.dart';
  3. import 'package:keystore_generator/src/key_properties.dart';
  4. import 'package:keystore_generator/src/keystore.dart';
  5. import 'package:keystore_generator/src/keytool_process.dart';
  6. import 'package:keystore_generator/src/sign.dart';
  7. /// main function that does all the work
  8. Future<void> main(List<String> args) async {
  9. final Arguments arguments = Arguments(args: args);
  10. Sign(
  11. keystore: Keystore(
  12. keysDir: KeysDir(),
  13. keytoolProcess: KeytoolProcess(
  14. arguments: arguments,
  15. keystoreFile: KeystoreFile(
  16. arguments: arguments,
  17. ),
  18. ),
  19. ),
  20. keyProperties: KeyProperties(
  21. androidDir: AndroidDir(),
  22. keyPropertiesFile: KeyPropertiesFile(),
  23. arguments: arguments,
  24. ),
  25. buildGradle: BuildGradle(),
  26. ).generate();
  27. }