From b0f19a154f2276c321bb3da8ba82754f12a34c0f Mon Sep 17 00:00:00 2001
From: Fareez Iqmal <60868965+iqfareez@users.noreply.github.com>
Date: Tue, 10 Oct 2023 06:51:24 +0800
Subject: [PATCH] :arrow_up: Upgrade dependencies
major: google_fonts, package_info_plus, device_info_plus, share_plus, flutter_local_notifications
Update Android Manifest fln implementations
---
android/app/src/main/AndroidManifest.xml | 14 ++++++++++++++
lib/views/onboarding_page.dart | 12 +++++++++---
pubspec.lock | 20 ++++++++++----------
pubspec.yaml | 10 +++++-----
4 files changed, 38 insertions(+), 18 deletions(-)
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index ed8e8a4..101dd16 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -9,6 +9,10 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
/// ask NotificationPermission
FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin =
FlutterLocalNotificationsPlugin();
- var res = await flutterLocalNotificationsPlugin
+ var perm1 = await flutterLocalNotificationsPlugin
.resolvePlatformSpecificImplementation<
AndroidFlutterLocalNotificationsPlugin>()
- ?.requestPermission();
- print('res is $res');
+ ?.requestNotificationsPermission();
+ // requst permission to schedule exact alarms (API 33+)
+ var perm2 = await flutterLocalNotificationsPlugin
+ .resolvePlatformSpecificImplementation<
+ AndroidFlutterLocalNotificationsPlugin>()
+ ?.requestExactAlarmsPermission();
+
+ debugPrint('perm1: $perm1, perm2: $perm2');
}
},
overrideNext: TextButton(
diff --git a/pubspec.lock b/pubspec.lock
index 631fb61..5842b42 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -134,10 +134,10 @@ packages:
dependency: "direct main"
description:
name: device_info_plus
- sha256: "86add5ef97215562d2e090535b0a16f197902b10c369c558a100e74ea06e8659"
+ sha256: "093b02a284b4969bb641a6236bbb8e626e4035c6ec9e30c20b65d505c24b3080"
url: "https://pub.dev"
source: hosted
- version: "9.0.3"
+ version: "10.0.0"
device_info_plus_platform_interface:
dependency: transitive
description:
@@ -340,10 +340,10 @@ packages:
dependency: "direct main"
description:
name: flutter_local_notifications
- sha256: "501ed9d54f1c8c0535b7991bade36f9e7e3b45a2346401f03775c1ec7a3c06ae"
+ sha256: "6d11ea777496061e583623aaf31923f93a9409ef8fcaeeefdd6cd78bf4fe5bb3"
url: "https://pub.dev"
source: hosted
- version: "15.1.2"
+ version: "16.1.0"
flutter_local_notifications_linux:
dependency: transitive
description:
@@ -539,10 +539,10 @@ packages:
dependency: "direct main"
description:
name: google_fonts
- sha256: e20ff62b158b96f392bfc8afe29dee1503c94fbea2cbe8186fd59b756b8ae982
+ sha256: f0b8d115a13ecf827013ec9fc883390ccc0e87a96ed5347a3114cac177ef18e8
url: "https://pub.dev"
source: hosted
- version: "5.1.0"
+ version: "6.1.0"
google_mobile_ads:
dependency: "direct main"
description:
@@ -675,10 +675,10 @@ packages:
dependency: "direct main"
description:
name: package_info_plus
- sha256: "6ff267fcd9d48cb61c8df74a82680e8b82e940231bb5f68356672fde0397334a"
+ sha256: "0351aaba3b267c4962ed73058a5f62a84de7e39670a20e2916a6baff2ffcfbe5"
url: "https://pub.dev"
source: hosted
- version: "4.1.0"
+ version: "5.0.0"
package_info_plus_platform_interface:
dependency: transitive
description:
@@ -835,10 +835,10 @@ packages:
dependency: "direct main"
description:
name: share_plus
- sha256: "6cec740fa0943a826951223e76218df002804adb588235a8910dc3d6b0654e11"
+ sha256: f86c5acc512b20e074137075824fc29e29b2cf395dcbfcc371e96e3e6290cce1
url: "https://pub.dev"
source: hosted
- version: "7.1.0"
+ version: "8.0.0"
share_plus_platform_interface:
dependency: transitive
description:
diff --git a/pubspec.yaml b/pubspec.yaml
index 023082f..c723bef 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -15,20 +15,20 @@ dependencies:
sdk: flutter
http: ^1.1.0
intl: ^0.18.0
- google_fonts: ^5.1.0
+ google_fonts: ^6.1.0
badges: ^3.1.1
fluttertoast: ^8.0.3
- package_info_plus: ^4.0.0
+ package_info_plus: ^5.0.0
get_storage: ^2.0.1
cached_network_image: ^3.0.0
url_launcher: ^6.0.3
- device_info_plus: ^9.0.0
- share_plus: ^7.0.0
+ device_info_plus: ^10.0.0
+ share_plus: ^8.0.0
geolocator: ^9.0.2
flutter_spinkit: ^5.0.0
flutter_svg: ^2.0.0
provider: ^6.0.0
- flutter_local_notifications: ^15.1.0+1
+ flutter_local_notifications: ^16.1.0
app_settings: ^5.0.0
flutter_web_browser: ^0.17.0
geocoding: ^2.0.0