mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-17 18:49:55 +08:00
13 lines
325 B
Dart
13 lines
325 B
Dart
import 'dart:convert';
|
|
import 'dart:io';
|
|
|
|
Future<void> main() async {
|
|
final config = {
|
|
'sentry': Platform.environment['SENTRY_DSN'],
|
|
'revenueCat': Platform.environment['REVENUE_CAT_API_KEY'],
|
|
};
|
|
|
|
final filename = 'lib/.env.dart';
|
|
File(filename).writeAsString('final environment = ${json.encode(config)};');
|
|
}
|