buildApkWithMakeFile function
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,
);
}