2019-11-25 00:42:27 +00:00
|
|
|
import 'dart:async';
|
|
|
|
import 'dart:convert';
|
|
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
Future<void> main() async {
|
|
|
|
final config = {
|
|
|
|
'NODE_SERVER_IP': Platform.environment['NODE_SERVER_IP'],
|
|
|
|
};
|
|
|
|
|
2021-01-28 16:10:15 +00:00
|
|
|
final filename = 'example/integration_test/.env.dart';
|
2020-05-30 21:13:28 +00:00
|
|
|
await File(filename).writeAsString('final environment = ${json.encode(config)};');
|
2019-11-25 00:42:27 +00:00
|
|
|
}
|