Skip to content

Commit

Permalink
refactor: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
denysvitali committed Apr 6, 2024
1 parent 056b2d7 commit 5ab6a59
Show file tree
Hide file tree
Showing 6 changed files with 251 additions and 190 deletions.
6 changes: 3 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (keystorePropertiesFile.exists()) {
}

android {
compileSdkVersion 33
compileSdkVersion 34

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand All @@ -41,8 +41,8 @@ android {

defaultConfig {
applicationId "io.vikunja.app"
minSdkVersion 21
targetSdkVersion 33
minSdkVersion 33
targetSdkVersion 34
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.7.20'
ext.kotlin_version = '1.9.23'
repositories {
google()
mavenCentral()
Expand Down
Empty file modified android/gradlew
100644 → 100755
Empty file.
13 changes: 7 additions & 6 deletions lib/managers/notifications.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class NotificationClass {
channelDescription: "description",
icon: 'vikunja_notification_logo',
importance: notifs.Importance.high);
late notifs.IOSNotificationDetails iOSSpecifics;
late notifs.DarwinNotificationDetails iOSSpecifics;
late notifs.NotificationDetails platformChannelSpecificsDueDate;
late notifs.NotificationDetails platformChannelSpecificsReminders;

Expand All @@ -48,7 +48,7 @@ class NotificationClass {
Future<void> _initNotifications() async {
var initializationSettingsAndroid =
notifs.AndroidInitializationSettings('vikunja_logo');
var initializationSettingsIOS = notifs.IOSInitializationSettings(
var initializationSettingsIOS = notifs.DarwinInitializationSettings(
requestAlertPermission: false,
requestBadgePermission: false,
requestSoundPermission: false,
Expand All @@ -60,17 +60,18 @@ class NotificationClass {
var initializationSettings = notifs.InitializationSettings(
android: initializationSettingsAndroid, iOS: initializationSettingsIOS);
await notificationsPlugin.initialize(initializationSettings,
onSelectNotification: (String? payload) async {
onDidReceiveNotificationResponse:
(notifs.NotificationResponse resp) async {
if (payload != null) {
print('notification payload: ' + payload);
selectNotificationSubject.add(payload);
print('notification payload: ' + resp.payload!);
selectNotificationSubject.add(resp.payload!);
}
});
print("Notifications initialised successfully");
}

Future<void> notificationInitializer() async {
iOSSpecifics = notifs.IOSNotificationDetails();
iOSSpecifics = notifs.DarwinNotificationDetails();
platformChannelSpecificsDueDate = notifs.NotificationDetails(
android: androidSpecificsDueDate, iOS: iOSSpecifics);
platformChannelSpecificsReminders = notifs.NotificationDetails(
Expand Down
Loading

0 comments on commit 5ab6a59

Please sign in to comment.