iosWebViewFix/tool/env.dart

14 lines
328 B
Dart
Raw Normal View History

import 'dart:async';
import 'dart:convert';
import 'dart:io';
Future<void> main() async {
final config = {
'NODE_SERVER_IP': Platform.environment['NODE_SERVER_IP'],
};
2022-04-30 19:22:31 +00:00
final filename = 'example/integration_test/env.dart';
2021-03-01 19:26:57 +00:00
await File(filename)
.writeAsString('final environment = ${json.encode(config)};');
}