2020-03-19 20:58:30 +01:00
|
|
|
import 'dart:convert';
|
|
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
Future<void> main() async {
|
|
|
|
final config = {
|
|
|
|
'apiKey': Platform.environment['API_KEY'],
|
2020-05-18 19:03:45 +02:00
|
|
|
'shareKey': Platform.environment['SHARE_KEY']
|
2020-03-19 20:58:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
final filename = 'lib/.env.dart';
|
|
|
|
File(filename).writeAsString('final environment = ${json.encode(config)};');
|
2020-05-18 21:04:04 +02:00
|
|
|
print('Write successfully');
|
2020-03-19 20:58:30 +01:00
|
|
|
}
|