File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 11import 'dart:ui' ;
22
3+ import 'package:auto_updater/auto_updater.dart' ;
34import 'package:dipantau_desktop_client/config/flavor_config.dart' ;
45import 'package:dipantau_desktop_client/core/util/enum/appearance_mode.dart' ;
6+ import 'package:dipantau_desktop_client/core/util/enum/global_variable.dart' ;
57import 'package:dipantau_desktop_client/core/util/shared_preferences_manager.dart' ;
68import 'package:dipantau_desktop_client/feature/data/model/user_profile/user_profile_response.dart' ;
79import 'package:dipantau_desktop_client/feature/presentation/bloc/appearance/appearance_bloc.dart' ;
@@ -61,6 +63,11 @@ import 'package:window_manager/window_manager.dart';
6163void main () async {
6264 WidgetsFlutterBinding .ensureInitialized ();
6365
66+ // Auto updater
67+ const feedURL = autoUpdaterUrl;
68+ autoUpdater.setFeedURL (feedURL);
69+ autoUpdater.setScheduledCheckInterval (3600 );
70+
6471 // Easy localization
6572 await EasyLocalization .ensureInitialized ();
6673
You can’t perform that action at this time.
0 commit comments