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-10-01 08:54:14 +02:00
|
|
|
'podcastIndexApiKey': Platform.environment['PI_API_KEY'],
|
|
|
|
'podcastIndexApiSecret': Platform.environment['PI_API_SECRET']
|
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-08-06 16:18:32 +02:00
|
|
|
}
|