diff --git a/android/app/build.gradle b/android/app/build.gradle index 76ba87c..ee4b9a9 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -32,7 +32,8 @@ if (keystorePropertiesFile.exists()) { } android { - compileSdkVersion 30 + // compileSdkVersion 31 + compileSdkVersion flutter.compileSdkVersion sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -45,7 +46,8 @@ android { defaultConfig { applicationId "com.kmac5dev.mindfulnotifier" minSdkVersion 21 - targetSdkVersion 30 + // targetSdkVersion 31 + targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName } diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 67f3d13..4857238 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,12 +1,7 @@ - - - diff --git a/android/app/src/main/kotlin/com/example/remindful/MainActivity.kt b/android/app/src/main/kotlin/com/kmac5dev/mindfulnofier/MainActivity.kt similarity index 100% rename from android/app/src/main/kotlin/com/example/remindful/MainActivity.kt rename to android/app/src/main/kotlin/com/kmac5dev/mindfulnofier/MainActivity.kt diff --git a/android/build.gradle b/android/build.gradle index f05df98..714549c 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,12 +1,12 @@ buildscript { - ext.kotlin_version = '1.3.50' + ext.kotlin_version = '1.6.10' repositories { google() jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.5.4' + classpath 'com.android.tools.build:gradle:4.1.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 63f18a4..bc6a58a 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -3,5 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip -distributionSha256Sum=abc10bcedb58806e8654210f96031db541bcd2d6fc3161e81cb0572d6a15e821 +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip diff --git a/lib/components/datastore.dart b/lib/components/datastore.dart index 7f695d8..8dcc88c 100644 --- a/lib/components/datastore.dart +++ b/lib/components/datastore.dart @@ -1,7 +1,6 @@ import 'dart:convert'; import 'dart:math'; import 'package:flutter/foundation.dart'; -import 'package:hive/hive.dart'; import 'package:hive_flutter/hive_flutter.dart'; import 'package:shared_preferences/shared_preferences.dart'; @@ -250,7 +249,8 @@ abstract class ScheduleDataStoreBase { static const int defaultQuietHoursEndHour = 9; static const int defaultQuietHoursEndMinute = 0; static const bool defaultNotifyQuietHours = false; - static const String defaultReminderMessage = constants.reminderMessageDisabled; + static const String defaultReminderMessage = + constants.reminderMessageDisabled; static const String defaultInfoMessage = constants.infoMessageDisabled; static const String defaultControlMessage = ''; static const String defaultTheme = 'Default'; diff --git a/lib/components/scheduler.dart b/lib/components/scheduler.dart index 0f3281a..c7f90c3 100644 --- a/lib/components/scheduler.dart +++ b/lib/components/scheduler.dart @@ -7,6 +7,8 @@ import 'dart:ui'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:package_info_plus/package_info_plus.dart'; +import 'package:path_provider_android/path_provider_android.dart'; +import 'package:shared_preferences_android/shared_preferences_android.dart'; import 'package:mindfulnotifier/components/alarmservice.dart'; import 'package:mindfulnotifier/components/constants.dart' as constants; @@ -78,6 +80,11 @@ class Scheduler { Future init() async { logger.i("Initializing scheduler ${getCurrentIsolate()}"); + // TEMPORARY: fix eof SharedPreferences and PathProvider + // https://github.com/flutter/flutter/issues/99155#issuecomment-1052023743: + // This will be replaced with 'DartPluginRegistrant.ensureInitialized()' + SharedPreferencesAndroid.registerWith(); + PathProviderAndroid.registerWith(); try { PackageInfo info = await PackageInfo.fromPlatform(); Get.put(info); @@ -85,7 +92,7 @@ class Scheduler { // throws during testing } - ds = await ScheduleDataStore.getInstance(); + ds ??= await ScheduleDataStore.getInstance(); Get.delete(); Get.put(ds, permanent: true); @@ -191,6 +198,7 @@ class Scheduler { } Future sendDataStoreUpdate() async { + ds ??= await ScheduleDataStore.getInstance(); sendValueToUI('syncDataStore', ds.getInMemoryInstance()); } diff --git a/lib/main.dart b/lib/main.dart index afbe1ea..baeb0e3 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,5 +1,4 @@ import 'package:device_info_plus/device_info_plus.dart'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:mindfulnotifier/components/utils.dart'; @@ -12,7 +11,6 @@ import 'package:mindfulnotifier/components/router.dart' as router; import 'package:mindfulnotifier/components/alarmservice.dart'; import 'package:mindfulnotifier/theme/themes.dart'; - void main() async { // needed if you intend to initialize in the `main` function WidgetsFlutterBinding.ensureInitialized(); diff --git a/lib/screens/about.dart b/lib/screens/about.dart index d0081a6..191c843 100644 --- a/lib/screens/about.dart +++ b/lib/screens/about.dart @@ -1,6 +1,4 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; import 'package:flutter_markdown/flutter_markdown.dart'; import 'package:url_launcher/url_launcher.dart'; import 'package:mindfulnotifier/components/constants.dart'; @@ -87,13 +85,9 @@ This project is licensed under the terms of the [GNU General Public License v3.0 """; Future launchInBrowser(String url) async { - if (await canLaunch(url)) { - await launch( - url, - forceSafariVC: false, - forceWebView: false, - headers: {'my_header_key': 'my_header_value'}, - ); + Uri uri = Uri.parse(url); + if (await canLaunchUrl(uri)) { + await launchUrl(uri, mode: LaunchMode.platformDefault); } else { throw 'Could not launch $url'; } diff --git a/lib/screens/general.dart b/lib/screens/general.dart index 84f69e1..2672115 100644 --- a/lib/screens/general.dart +++ b/lib/screens/general.dart @@ -2,12 +2,10 @@ import 'dart:io'; import 'dart:convert'; import 'dart:typed_data'; -import 'package:battery_optimization/battery_optimization.dart'; +import 'package:optimization_battery/optimization_battery.dart'; import 'package:device_info_plus/device_info_plus.dart'; import 'package:file_picker/file_picker.dart'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; import 'package:get/get.dart'; import 'package:rflutter_alert/rflutter_alert.dart'; import 'package:share_plus/share_plus.dart'; @@ -104,8 +102,7 @@ class GeneralWidgetController extends GetxController { InMemoryScheduleDataStore mds = Get.find(); // update alarm service with new memory store - Get.find() - .updatePermanentDataStore(mds); + Get.find().updatePermanentDataStore(mds); scheduleDirty.value = false; } @@ -273,7 +270,7 @@ class GeneralWidget extends StatelessWidget { } void _checkBatteryOptimization(var context) { - BatteryOptimization.isIgnoringBatteryOptimizations().then((onValue) { + OptimizationBattery.isIgnoringBatteryOptimizations().then((onValue) { if (onValue) { // Ignoring Battery Optimization utils.showInfoAlert( @@ -295,7 +292,7 @@ class GeneralWidget extends StatelessWidget { buttons: [ DialogButton( onPressed: () { - BatteryOptimization.openBatteryOptimizationSettings(); + OptimizationBattery.openBatteryOptimizationSettings(); Navigator.pop(context); }, child: Text( diff --git a/lib/screens/mindfulnotifier.dart b/lib/screens/mindfulnotifier.dart index bffd12d..2312233 100644 --- a/lib/screens/mindfulnotifier.dart +++ b/lib/screens/mindfulnotifier.dart @@ -2,7 +2,6 @@ import 'dart:async'; import 'dart:ui'; import 'dart:isolate'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:minimize_app/minimize_app.dart'; diff --git a/lib/screens/reminderview.dart b/lib/screens/reminderview.dart index f0686cc..ff23e1b 100644 --- a/lib/screens/reminderview.dart +++ b/lib/screens/reminderview.dart @@ -1,9 +1,4 @@ -import 'dart:ui'; - -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; -import 'package:flutter/widgets.dart'; import 'package:get/get.dart'; import 'package:mindfulnotifier/components/datastore.dart'; import 'package:dropdown_search/dropdown_search.dart'; diff --git a/lib/screens/schedulesview.dart b/lib/screens/schedulesview.dart index c2ed7ef..c7163f8 100644 --- a/lib/screens/schedulesview.dart +++ b/lib/screens/schedulesview.dart @@ -1,10 +1,7 @@ -import 'dart:ui'; import 'dart:async'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:flutter/widgets.dart'; import 'package:get/get.dart'; import 'package:mindfulnotifier/components/datastore.dart'; diff --git a/lib/screens/sound.dart b/lib/screens/sound.dart index 172592f..bd32337 100644 --- a/lib/screens/sound.dart +++ b/lib/screens/sound.dart @@ -1,8 +1,6 @@ import 'dart:io'; -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; import 'package:file_picker/file_picker.dart'; import 'package:rflutter_alert/rflutter_alert.dart'; import 'package:get/get.dart'; @@ -112,8 +110,7 @@ class SoundWidgetController extends GetxController { void _updateAlarmService(InMemoryScheduleDataStore mds) { // update alarm service with new memory store - Get.find() - .updatePermanentDataStore(mds); + Get.find().updatePermanentDataStore(mds); } } diff --git a/pubspec.lock b/pubspec.lock index b92d0e3..1bb5070 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,7 +7,7 @@ packages: name: android_alarm_manager_plus url: "https://pub.dartlang.org" source: hosted - version: "2.0.3" + version: "2.0.5" args: dependency: transitive description: @@ -21,7 +21,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.8.1" + version: "2.8.2" audio_session: dependency: "direct main" description: @@ -29,13 +29,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.1.6+1" - battery_optimization: - dependency: "direct main" - description: - name: battery_optimization - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.0" boolean_selector: dependency: transitive description: @@ -49,7 +42,7 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.2.0" charcode: dependency: transitive description: @@ -77,7 +70,7 @@ packages: name: crypto url: "https://pub.dartlang.org" source: hosted - version: "3.0.1" + version: "3.0.2" cupertino_icons: dependency: "direct main" description: @@ -91,42 +84,42 @@ packages: name: date_format url: "https://pub.dartlang.org" source: hosted - version: "2.0.4" + version: "2.0.6" dbus: dependency: transitive description: name: dbus url: "https://pub.dartlang.org" source: hosted - version: "0.5.6" + version: "0.7.3" device_info_plus: dependency: "direct main" description: name: device_info_plus url: "https://pub.dartlang.org" source: hosted - version: "3.1.1" + version: "3.2.3" device_info_plus_linux: dependency: transitive description: name: device_info_plus_linux url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.1.1" device_info_plus_macos: dependency: transitive description: name: device_info_plus_macos url: "https://pub.dartlang.org" source: hosted - version: "2.2.0" + version: "2.2.3" device_info_plus_platform_interface: dependency: transitive description: name: device_info_plus_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.2.1" + version: "2.3.0+1" device_info_plus_web: dependency: transitive description: @@ -140,14 +133,14 @@ packages: name: device_info_plus_windows url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.1.1" dropdown_search: dependency: "direct main" description: name: dropdown_search url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "3.0.1" equatable: dependency: "direct main" description: @@ -182,26 +175,33 @@ packages: name: file_picker url: "https://pub.dartlang.org" source: hosted - version: "4.2.1" + version: "4.5.1" flutter: dependency: "direct main" description: flutter source: sdk version: "0.0.0" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.4" flutter_local_notifications: dependency: "direct main" description: name: flutter_local_notifications url: "https://pub.dartlang.org" source: hosted - version: "9.0.2" + version: "9.5.2" flutter_local_notifications_linux: dependency: transitive description: name: flutter_local_notifications_linux url: "https://pub.dartlang.org" source: hosted - version: "0.3.0" + version: "0.4.2" flutter_local_notifications_platform_interface: dependency: transitive description: @@ -215,7 +215,7 @@ packages: name: flutter_markdown url: "https://pub.dartlang.org" source: hosted - version: "0.6.8" + version: "0.6.10" flutter_native_timezone: dependency: "direct main" description: @@ -229,7 +229,7 @@ packages: name: flutter_plugin_android_lifecycle url: "https://pub.dartlang.org" source: hosted - version: "2.0.4" + version: "2.0.5" flutter_test: dependency: "direct dev" description: flutter @@ -246,14 +246,14 @@ packages: name: get url: "https://pub.dartlang.org" source: hosted - version: "4.3.8" + version: "4.6.1" hive: dependency: "direct main" description: name: hive url: "https://pub.dartlang.org" source: hosted - version: "2.0.4" + version: "2.1.0" hive_flutter: dependency: "direct main" description: @@ -288,21 +288,28 @@ packages: name: just_audio url: "https://pub.dartlang.org" source: hosted - version: "0.9.16" + version: "0.9.21" just_audio_platform_interface: dependency: transitive description: name: just_audio_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "4.0.0" + version: "4.1.0" just_audio_web: dependency: transitive description: name: just_audio_web url: "https://pub.dartlang.org" source: hosted - version: "0.4.2" + version: "0.4.7" + lints: + dependency: transitive + description: + name: lints + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" logger: dependency: "direct main" description: @@ -316,14 +323,21 @@ packages: name: markdown url: "https://pub.dartlang.org" source: hosted - version: "4.0.0" + version: "5.0.0" matcher: dependency: transitive description: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.10" + version: "0.12.11" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.3" meta: dependency: transitive description: @@ -337,7 +351,7 @@ packages: name: mime url: "https://pub.dartlang.org" source: hosted - version: "1.0.1" + version: "1.0.2" minimize_app: dependency: "direct main" description: @@ -345,20 +359,27 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.1.1" + optimization_battery: + dependency: "direct main" + description: + name: optimization_battery + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.5" package_info_plus: dependency: "direct main" description: name: package_info_plus url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.4.2" package_info_plus_linux: dependency: transitive description: name: package_info_plus_linux url: "https://pub.dartlang.org" source: hosted - version: "1.0.3" + version: "1.0.5" package_info_plus_macos: dependency: transitive description: @@ -379,14 +400,14 @@ packages: name: package_info_plus_web url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "1.0.5" package_info_plus_windows: dependency: transitive description: name: package_info_plus_windows url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "1.0.5" path: dependency: transitive description: @@ -400,42 +421,49 @@ packages: name: path_provider url: "https://pub.dartlang.org" source: hosted - version: "2.0.6" + version: "2.0.9" + path_provider_android: + dependency: "direct main" + description: + name: path_provider_android + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.13" + path_provider_ios: + dependency: transitive + description: + name: path_provider_ios + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.8" path_provider_linux: dependency: transitive description: name: path_provider_linux url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.1.5" path_provider_macos: dependency: transitive description: name: path_provider_macos url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.5" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "2.0.3" path_provider_windows: dependency: transitive description: name: path_provider_windows url: "https://pub.dartlang.org" source: hosted - version: "2.0.3" - pedantic: - dependency: transitive - description: - name: pedantic - url: "https://pub.dartlang.org" - source: hosted - version: "1.11.1" + version: "2.0.5" petitparser: dependency: transitive description: @@ -449,14 +477,14 @@ packages: name: platform url: "https://pub.dartlang.org" source: hosted - version: "3.0.2" + version: "3.1.0" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.1.2" process: dependency: transitive description: @@ -477,70 +505,84 @@ packages: name: rxdart url: "https://pub.dartlang.org" source: hosted - version: "0.27.2" + version: "0.27.3" share_plus: dependency: "direct main" description: name: share_plus url: "https://pub.dartlang.org" source: hosted - version: "3.0.4" + version: "4.0.4" share_plus_linux: dependency: transitive description: name: share_plus_linux url: "https://pub.dartlang.org" source: hosted - version: "2.0.4" + version: "3.0.0" share_plus_macos: dependency: transitive description: name: share_plus_macos url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "3.0.0" share_plus_platform_interface: dependency: transitive description: name: share_plus_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "3.0.2" share_plus_web: dependency: transitive description: name: share_plus_web url: "https://pub.dartlang.org" source: hosted - version: "2.0.4" + version: "3.0.0" share_plus_windows: dependency: transitive description: name: share_plus_windows url: "https://pub.dartlang.org" source: hosted - version: "2.0.3" + version: "3.0.0" shared_preferences: dependency: "direct main" description: name: shared_preferences url: "https://pub.dartlang.org" source: hosted - version: "2.0.8" + version: "2.0.13" + shared_preferences_android: + dependency: "direct main" + description: + name: shared_preferences_android + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.11" + shared_preferences_ios: + dependency: transitive + description: + name: shared_preferences_ios + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" shared_preferences_linux: dependency: transitive description: name: shared_preferences_linux url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.1.0" shared_preferences_macos: dependency: transitive description: name: shared_preferences_macos url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" shared_preferences_platform_interface: dependency: transitive description: @@ -554,14 +596,14 @@ packages: name: shared_preferences_web url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" shared_preferences_windows: dependency: transitive description: name: shared_preferences_windows url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.1.0" sky_engine: dependency: transitive description: flutter @@ -573,7 +615,7 @@ packages: name: sound_mode url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "2.0.2" source_span: dependency: transitive description: @@ -615,7 +657,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.2" + version: "0.4.8" timezone: dependency: transitive description: @@ -636,70 +678,84 @@ packages: name: url_launcher url: "https://pub.dartlang.org" source: hosted - version: "6.0.12" + version: "6.1.0" + url_launcher_android: + dependency: transitive + description: + name: url_launcher_android + url: "https://pub.dartlang.org" + source: hosted + version: "6.0.16" + url_launcher_ios: + dependency: transitive + description: + name: url_launcher_ios + url: "https://pub.dartlang.org" + source: hosted + version: "6.0.15" url_launcher_linux: dependency: transitive description: name: url_launcher_linux url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "3.0.0" url_launcher_macos: dependency: transitive description: name: url_launcher_macos url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "3.0.0" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.0.4" + version: "2.0.5" url_launcher_web: dependency: transitive description: name: url_launcher_web url: "https://pub.dartlang.org" source: hosted - version: "2.0.4" + version: "2.0.9" url_launcher_windows: dependency: transitive description: name: url_launcher_windows url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "3.0.0" uuid: dependency: transitive description: name: uuid url: "https://pub.dartlang.org" source: hosted - version: "3.0.5" + version: "3.0.6" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.1.1" win32: dependency: transitive description: name: win32 url: "https://pub.dartlang.org" source: hosted - version: "2.2.10" + version: "2.5.2" xdg_directories: dependency: transitive description: name: xdg_directories url: "https://pub.dartlang.org" source: hosted - version: "0.2.0" + version: "0.2.0+1" xml: dependency: transitive description: @@ -708,5 +764,5 @@ packages: source: hosted version: "5.3.1" sdks: - dart: ">=2.14.0 <3.0.0" - flutter: ">=2.5.0" + dart: ">=2.15.0 <3.0.0" + flutter: ">=2.10.0" diff --git a/pubspec.yaml b/pubspec.yaml index b5f3650..cb4dd9c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -21,7 +21,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # This number is used only to determine whether one version is more recent than another, # with higher numbers indicating more recent versions # versionName: Customer-visible version string -version: 1.0.23+43 +version: 1.0.23+44 environment: # sdk: ">=2.12.0 <3.0.0" @@ -37,41 +37,45 @@ dependencies: # https://pub.dev/packages/ - android_alarm_manager_plus: ^2.0.3 - flutter_local_notifications: ^9.0.2 - date_format: ^2.0.4 - device_info_plus: ^3.1.1 - rxdart: ^0.27.2 + android_alarm_manager_plus: ^2.0.5 + flutter_local_notifications: ^9.5.2 + date_format: ^2.0.6 + device_info_plus: ^3.2.3 + rxdart: ^0.27.3 flutter_native_timezone: ^2.0.0 - shared_preferences: ^2.0.8 - get: ^4.3.8 + shared_preferences: ^2.0.13 + # TEMPORARY: workaround for SharedPreferences in isolates (see scheduler.dart): + shared_preferences_android: ^2.0.11 + get: ^4.6.1 logger: ^1.1.0 equatable: ^2.0.3 - hive: ^2.0.4 + hive: ^2.1.0 hive_flutter: ^1.1.0 # For audio: - just_audio: ^0.9.16 + just_audio: ^0.9.21 audio_session: ^0.1.6+1 # audio_service: ^0.15.3 - sound_mode: ^2.0.1 + sound_mode: ^2.0.2 - - file_picker: ^4.2.1 - package_info_plus: ^1.3.0 - path_provider: ^2.0.6 - share_plus: ^3.0.4 - dropdown_search: ^2.0.0 + file_picker: ^4.5.1 + package_info_plus: ^1.4.2 + path_provider: ^2.0.9 + # TEMPORARY: workaround for PathProvider in isolates (see scheduler.dart): + path_provider_android: ^2.0.13 + share_plus: ^4.0.4 + dropdown_search: ^3.0.1 # flutter_background_service: ^0.0.1+19 rflutter_alert: ^2.0.4 - flutter_markdown: ^0.6.8 - url_launcher: ^6.0.12 - battery_optimization: ^0.1.0 + flutter_markdown: ^0.6.10 + url_launcher: ^6.1.0 + optimization_battery: ^0.0.5 minimize_app: ^0.1.1 dev_dependencies: + flutter_lints: ^1.0.4 flutter_test: sdk: flutter