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

13 lines
290 B
Dart
Raw Normal View History

import 'dart:convert';
import 'dart:io';
Future<void> main() async {
final config = {
'apiKey': Platform.environment['API_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');
2020-08-06 16:18:32 +02:00
}