exec method

  1. @override
Future<void> exec(
  1. ExecContext context
)
override

Run command.

The contents of katana.yaml and the arguments of the command are passed to context.

コマンドを実行します。

contextkatana.yamlの内容やコマンドの引数が渡されます。

Implementation

@override
Future<void> exec(ExecContext context) async {
  final stgEnvFile = File("${Directory.current.path}/dart_defines/stg.env");
  if (!stgEnvFile.existsSync()) {
    // ignore: avoid_print
    print("Skipping because the stg.env file was not found.");
    return;
  }
  await stgEnvFile
      .copy("${Directory.current.path}/ios/Flutter/DartDefine.xcconfig");
  await stgEnvFile.copy("${Directory.current.path}/android/env.properties");
}