buildApkWithMakeFile function

Future<void> buildApkWithMakeFile(
  1. String env
)

Implementation

Future<void> buildApkWithMakeFile(String env) async {
  // Validate the environment
  if (!['dev', 'uat', 'prod'].contains(env)) {
    print('Invalid environment: $env. Must be one of: dev, uat, prod');
    return;
  }

  Process.run(
    "make",
    ["build-apk", "env=$env"],
    runInShell: true,
  );
}