From cd2ffd5c930aeb85a33093d08ecb25de8cbd13fe Mon Sep 17 00:00:00 2001 From: atavism Date: Thu, 15 Aug 2024 20:29:46 -0700 Subject: [PATCH] update flutter_local_notifications (#1149) --- desktop/increase_nofiles.go | 35 ----------------------------------- pubspec.lock | 12 ++++++------ pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 42 deletions(-) delete mode 100644 desktop/increase_nofiles.go diff --git a/desktop/increase_nofiles.go b/desktop/increase_nofiles.go deleted file mode 100644 index 5c285308f..000000000 --- a/desktop/increase_nofiles.go +++ /dev/null @@ -1,35 +0,0 @@ -//go:build !windows -// +build !windows - -package main - -import ( - "syscall" -) - -const ( - // 1024 is the default hard limit on Ubuntu, so let's not get greedier than - // that. On OS X, the default hard limit is unlimited. - DesiredNoFilesLimit = 1024 -) - -func init() { - // We increase the nofiles limit on UNIX platforms to avoid running out of - // file descriptors - var rLimit syscall.Rlimit - err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rLimit) - if err != nil { - log.Errorf("Error getting nofiles limit %v", err) - return - } - if rLimit.Cur > DesiredNoFilesLimit { - log.Debugf("Current nofiles soft limit of %d is enough", rLimit.Cur) - return - } - rLimit.Cur = DesiredNoFilesLimit - err = syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit) - if err != nil { - log.Errorf("Unable to increase nofiles limit: %v", err) - } - log.Debugf("Changed nofiles soft limit to %d", rLimit.Cur) -} diff --git a/pubspec.lock b/pubspec.lock index 1cf487f79..55fdca485 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -816,26 +816,26 @@ packages: dependency: "direct main" description: name: flutter_local_notifications - sha256: "40e6fbd2da7dcc7ed78432c5cdab1559674b4af035fddbfb2f9a8f9c2112fcef" + sha256: c500d5d9e7e553f06b61877ca6b9c8b92c570a4c8db371038702e8ce57f8a50f url: "https://pub.dev" source: hosted - version: "17.1.2" + version: "17.2.2" flutter_local_notifications_linux: dependency: transitive description: name: flutter_local_notifications_linux - sha256: "33f741ef47b5f63cc7f78fe75eeeac7e19f171ff3c3df054d84c1e38bedb6a03" + sha256: c49bd06165cad9beeb79090b18cd1eb0296f4bf4b23b84426e37dd7c027fc3af url: "https://pub.dev" source: hosted - version: "4.0.0+1" + version: "4.0.1" flutter_local_notifications_platform_interface: dependency: transitive description: name: flutter_local_notifications_platform_interface - sha256: "340abf67df238f7f0ef58f4a26d2a83e1ab74c77ab03cd2b2d5018ac64db30b7" + sha256: "85f8d07fe708c1bdcf45037f2c0109753b26ae077e9d9e899d55971711a4ea66" url: "https://pub.dev" source: hosted - version: "7.1.0" + version: "7.2.0" flutter_localizations: dependency: "direct main" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index f88fd7b2e..2cee9aa5c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -109,7 +109,7 @@ dependencies: flutter_dotenv: ^5.1.0 # Notifications & Logging - flutter_local_notifications: ^17.1.2 + flutter_local_notifications: ^17.2.2 logger: ^2.3.0 # Error handling