2019-11-25 01:42:27 +01:00
|
|
|
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 21:22:31 +02:00
|
|
|
final filename = 'example/integration_test/env.dart';
|
2021-03-01 20:26:57 +01:00
|
|
|
await File(filename)
|
|
|
|
.writeAsString('final environment = ${json.encode(config)};');
|
|
|
|
}
|