1.0.1 #3
@@ -12,6 +12,11 @@ import 'package:alarm/alarm.dart';
|
|||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
|
// For trusting Let's Encrypt on older devices (SDK 24, Android 7)
|
||||||
|
//import 'dart:io';
|
||||||
|
//import 'package:http/http.dart' as http;
|
||||||
|
import 'package:flutter/services.dart' show rootBundle;
|
||||||
|
|
||||||
/// TBD:
|
/// TBD:
|
||||||
/// - Add other languages (Spanish, Croatian)
|
/// - Add other languages (Spanish, Croatian)
|
||||||
/// v1.1.0
|
/// v1.1.0
|
||||||
@@ -22,6 +27,14 @@ import 'dart:convert';
|
|||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
|
||||||
|
final certData = await rootBundle.load(
|
||||||
|
'media/certs/open-meteo-com_isrg-root-x1.pem',
|
||||||
|
);
|
||||||
|
SecurityContext.defaultContext.setTrustedCertificatesBytes(
|
||||||
|
certData.buffer.asUint8List(),
|
||||||
|
);
|
||||||
|
|
||||||
tz.initializeTimeZones();
|
tz.initializeTimeZones();
|
||||||
await Alarm.init();
|
await Alarm.init();
|
||||||
runApp(const SunsetAlarmApp());
|
runApp(const SunsetAlarmApp());
|
||||||
|
|||||||
Reference in new issue
Block a user