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'],
|
|
|
|
};
|
|
|
|
|
2023-11-28 01:37:48 +00:00
|
|
|
final filename = 'flutter_inappwebview/example/integration_test/env.dart';
|
2021-03-01 19:26:57 +00:00
|
|
|
await File(filename)
|
|
|
|
.writeAsString('final environment = ${json.encode(config)};');
|
|
|
|
}
|