Skip to content

SleepTimer/flutter_local_notifications

 
 

Repository files navigation

Contributing to flutter_local_notifications

Contributions are welcome by submitting a PR for to be reviewed. If it's to add new features, appreciate it if you could try to maintain the architecture or try to improve on it. If you are looking to add platform-specific functionality do not add this to the cross-platform facing API (i.e. the FlutterLocalNotificationsPlugin class. The recommended approaches in this scenario are:

  1. see if it can be passed as platform-specific configuration or
  2. add methods to the platform-specific implementations. For example, on iOS there is an IOSFlutterLocalNotificationsPlugin class. You may notice there's a requestPermissions() method that only exists there

Please ensure that no analysis issues are found and all tests continue to pass and add/update the tests as appropriate. Most of the tests are around verifying the details sent via the platform channel.

For API docs, please try to adhere to the effective Dart documentation guidelines that can be found here.

Managing the monorepo is through the use of melos. Currently the minimum Flutter SDK version supported is 3.0 with a corresponding minimum Dart SDK version of 2.17. This isn't compatible with melos versions 3.0 or newer due to incompatible Dart SDK version constraints. To avoid bumping the plugin's minimum Flutter and Dart SDK version constraints just for the sake of being able to use newer versions of melos, version 2.9.0 used. For local development purposes you can activate 2.9.0 by running dart pub global activate melos 2.9.0. The cirrus build scripts run the same command to specify melos version 2.9.0

About

A Flutter plugin for displaying local notifications on Android, iOS, macOS and Linux

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 67.9%
  • Java 18.5%
  • Objective-C 6.8%
  • Swift 4.7%
  • CMake 0.8%
  • Ruby 0.5%
  • Other 0.8%