mirror of
https://github.com/stonega/tsacdop
synced 2024-12-15 18:00:10 +01:00
13 lines
339 B
Dart
13 lines
339 B
Dart
import 'dart:convert';
|
|
import 'dart:io';
|
|
|
|
Future<void> main() async {
|
|
final config = {
|
|
'apiKey': Platform.environment['API_KEY'],
|
|
'shareKey': Platform.environment['SHARE_KEY']
|
|
};
|
|
|
|
final filename = 'lib/.env.dart';
|
|
File(filename).writeAsString('final environment = ${json.encode(config)};');
|
|
print('Write successfully');
|
|
} |