This repository has been archived on 2023-11-18. You can view files and clone it, but cannot push or open issues or pull requests.
ha_client/tool/secrets.dart

12 lines
362 B
Dart
Raw Normal View History

2020-04-09 20:10:21 +03:00
import 'dart:convert';
import 'dart:io';
Future<void> main() async {
final config = {
'syncfusion_license_key': Platform.environment['SYNCFUSION_LICENSE_KEY'],
2020-05-06 21:22:17 +03:00
'version_type': Platform.environment['HA_CLIENT_VERSION_TYPE'] ?? ''
2020-04-09 20:10:21 +03:00
};
final filename = 'lib/.secrets.dart';
File(filename).writeAsString('final secrets = ${json.encode(config)};');
}