tsacdop-podcast-app-android/tool/env.dart

13 lines
339 B
Dart
Raw Normal View History

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']
};
final filename = 'lib/.env.dart';
File(filename).writeAsString('final environment = ${json.encode(config)};');
2020-05-18 21:04:04 +02:00
print('Write successfully');
}