Skip to content

Commit

Permalink
⬆️ Upgrade dependencies
Browse files Browse the repository at this point in the history
major: google_fonts, package_info_plus, device_info_plus, share_plus, flutter_local_notifications

Update Android Manifest fln implementations
  • Loading branch information
iqfareez committed Oct 9, 2023
1 parent e7905ad commit b0f19a1
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 18 deletions.
14 changes: 14 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

<!-- Notification permission: https://pub.dev/packages/flutter_local_notifications#androidmanifestxml-setup -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />

<application
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
Expand All @@ -33,6 +37,16 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Notification receiver -->
<receiver android:exported="false" android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" />
<receiver android:exported="false" android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/>
</intent-filter>
</receiver>
<!-- AdMob App ID -->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
Expand Down
12 changes: 9 additions & 3 deletions lib/views/onboarding_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,17 @@ class _OnboardingPageState extends State<OnboardingPage>
/// 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(
Expand Down
20 changes: 10 additions & 10 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0f19a1

Please sign in to comment.