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

15 lines
419 B
Dart
Raw Normal View History

import 'dart:convert';
import 'dart:io';
Future<void> main() async {
final config = {
'apiKey': Platform.environment['API_KEY'],
2020-10-01 08:54:14 +02:00
'podcastIndexApiKey': Platform.environment['PI_API_KEY'],
'podcastIndexApiSecret': Platform.environment['PI_API_SECRET']
};
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
}