Commit d97a0822 by Michael Nabil Committed by GitHub

Correct the grammar in the documents and restructure the formatting of all the markdowns (#1184)

* Fix

* Replace `-` to `*`

* Fix
parent 992674fe
......@@ -3,7 +3,7 @@
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
contributors and maintainers pledge to participate in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
......@@ -23,12 +23,12 @@ include:
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
* Publishing others' private information, such as physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
* Other conduct that could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
......@@ -45,8 +45,8 @@ threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
This Code of Conduct applies both within and in public spaces
when an individual represents the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
......@@ -59,10 +59,10 @@ reported by contacting the project team at [hello@baseflow.com](mailto:hello@bas
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
You can post more details of specific enforcement policies separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
Faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
......
Contributing to the Flutter Permission handler plugin
=============================================
# Contributing to the Flutter Permission handler plugin
What you will need
------------------
## What you will need
* A Linux, Mac OS X, or Windows machine (note: to run and compile iOS specific parts you'll need access to a Mac OS X machine);
* git (used for source version control, installation instruction can be found [here](https://git-scm.com/));
* The Flutter SDK (installation instructions can be found [here](https://flutter.io/get-started/install/));
* A personal GitHub account (if you don't have one, you can sign-up for free [here](https://github.com/))
* A Linux, Mac OS X, or Windows machine (note: to run and compile iOS-specific parts you'll need access to a Mac OS X machine);
* git (used for source version control, installation instructions can be found [here](https://git-scm.com/));
* The Flutter SDK (installation instructions can be found [here](https://flutter.io/get-started/install/));
* A personal GitHub account (if you don't have one, you can sign up for free [here](https://github.com/))
Setting up your development environment
---------------------------------------
## Setting up your development environment
* Fork `https://github.com/Baseflow/flutter-permission-handler` into your own GitHub account. If you already have a fork and moving to a new computer, make sure you update you fork.
* If you haven't configured your machine with an SSH key that's known to github, then
follow [GitHub's directions](https://help.github.com/articles/generating-ssh-keys/)
to generate an SSH key.
* Clone your forked repo on your local development machine: `git clone git@github.com:<your_name_here>/flutter-permission-handler.git`
* Change into the `flutter-permission-handler` directory: `cd flutter-permission-handler`
* Add an upstream to the original repo, so that fetch from the master repository and not your clone: `git remote add upstream git@github.com:Baseflow/flutter-permission-handler.git`
* Fork `https://github.com/Baseflow/flutter-permission-handler` into your own GitHub account. If you already have a fork and moving to a new computer, make sure you update your fork.
* If you haven't configured your machine with an SSH key that's known to GitHub, then
follow [GitHub's directions](https://help.github.com/articles/generating-ssh-keys/)
to generate an SSH key.
* Clone your forked repo on your local development machine: `git clone git@github.com:<your_name_here>/flutter-permission-handler.git`
* Change into the `flutter-permission-handler` directory: `cd flutter-permission-handler`
* Add an upstream to the original repo, so that fetches from the master repository and not your clone: `git remote add upstream git@github.com:Baseflow/flutter-permission-handler.git`
Running the example project
---------------------------
## Running the example project
* Change into the example directory: `cd example`
* Run the App: `flutter run`
* Change into the example directory: `cd example`
* Run the App: `flutter run`
Contribute
----------
## Contribute
We really appreciate contributions via GitHub pull requests. To contribute take the following steps:
* Make sure you are up to date with the latest code on the master:
* `git fetch upstream`
* `git checkout upstream/develop -b <name_of_your_branch>`
* Apply your changes
* Verify your changes and fix potential warnings/ errors:
* Check formatting: `flutter format .`
* Run static analyses: `flutter analyze`
* Run unit-tests: `flutter test`
* Commit your changes: `git commit -am "<your informative commit message>"`
* Push changes to your fork: `git push origin <name_of_your_branch>`
* Make sure you are up to date with the latest code on the master:
* `git fetch upstream`
* `git checkout upstream/develop -b <name_of_your_branch>`
* Apply your changes
* Verify your changes and fix potential warnings/ errors:
* Check formatting: `flutter format .`
* Run static analyses: `flutter analyze`
* Run unit-tests: `flutter test`
* Commit your changes: `git commit -am "<your informative commit message>"`
* Push changes to your fork: `git push origin <name_of_your_branch>`
Send us your pull request:
* Go to `https://github.com/Baseflow/flutter-permission-handler` and click the "Compare & pull request" button.
* Go to `https://github.com/Baseflow/flutter-permission-handler` and click the "Compare & pull request" button.
Please make sure you solved all warnings and errors reported by the static code analyses and that you fill in the full pull request template. Failing to do so will result in us asking you to fix it.
Please make sure you solved all warnings and errors reported by the static code analyses and that you fill in the full pull request template. Failing to do so will result in us asking you to fix it.
......@@ -41,8 +41,8 @@
## 10.2.1
* Fixes missing POST_NOTIFICATIONS permission in Android example project.
* Fix missing POST_NOTIFICATIONS permission in the Android example project.
## 10.2.0
* Added support for the new Android 13 permissions: SCHEDULE_EXACT_ALARM, READ_MEDIA_IMAGES, READ_MEDIA_VIDEO and READ_MEDIA_AUDIO
......@@ -57,12 +57,12 @@
## 10.0.1
- Fix PermissionHandlerEnums link in the README.md
* Fix the PermissionHandlerEnums link in the README.md
## 10.0.0
* __BREAKING CHANGE__: Updated Android `compileSdkVersion` to `33` to handle the new `POST_NOTIFICATIONS` permission.
> When updating to version 10.0.0 make sure to update the `android/app/build.gradle` file and set the `compileSdkVersion` to `33`.
* **BREAKING CHANGE**: Updated Android `compileSdkVersion` to `33` to handle the new `POST_NOTIFICATIONS` permission.
> When updating to version 10.0.0 make sure to update the `android/app/build.gradle` file and set the `compileSdkVersion` to `33`.
## 9.2.0
......@@ -84,15 +84,15 @@
## 9.0.0
* iOS: Bluetooth permission dialog now appears when requested instead of when the app is initialized.
Note: Requesting Bluetooth status will also prompt the permission dialog (see issue [#591](https://github.com/Baseflow/flutter-permission-handler/issues/591)).
Note: Requesting Bluetooth status will also prompt the permission dialog (see issue [#591](https://github.com/Baseflow/flutter-permission-handler/issues/591)).
## 8.3.0
* Updated Android Gradle Plugin to 4.1.0 and Gradle Wrapper to 6.7 which is inline with the current Flutter stable version (Flutter 2.5.3).
* Updated Android Gradle Plugin to 4.1.0 and Gradle Wrapper to 6.7 which is in line with the current Flutter stable version (Flutter 2.5.3).
## 8.2.6
* Fixed broken androidx migration link in the README.md.
* Fixed broken Androidx migration link in the README.md.
## 8.2.5
......@@ -100,11 +100,11 @@ Note: Requesting Bluetooth status will also prompt the permission dialog (see is
## 8.2.4
* Solved bug where output would log that there is no permission in manifest for BLUETOOTH_SCAN, BLUETOOTH_ADVERTISE and BLUETOOTH_CONNECT on Android 11 devices and lower(see issue [#691](https://github.com/Baseflow/flutter-permission-handler/issues/691)).
* Solved bug where output would log that there is no permission in the manifest for BLUETOOTH_SCAN, BLUETOOTH_ADVERTISE, and BLUETOOTH_CONNECT on Android 11 devices and lower(see issue [#691](https://github.com/Baseflow/flutter-permission-handler/issues/691)).
## 8.2.3
* iOS: Enhanced the `bluetooth` permission for iOS 13 and up, so the user gets prompted with the "bluetooth" permission dialog (see issue [#591](https://github.com/Baseflow/flutter-permission-handler/issues/591)).
* iOS: Enhanced the `bluetooth` permission for iOS 13 and up, so the user gets prompted with the "Bluetooth" permission dialog (see issue [#591](https://github.com/Baseflow/flutter-permission-handler/issues/591)).
## 8.2.2
......@@ -113,23 +113,24 @@ Note: Requesting Bluetooth status will also prompt the permission dialog (see is
## 8.2.1
* Resolved an issue where checking permissions on pre Android M devices always resolved to `PermissionStatus.denied` (see issue [#60](https://github.com/Baseflow/flutter-permission-plugins/issues/60));
* Resolved an issue where checking permissions on pre-Android M devices always resolved to `PermissionStatus.denied` (see issue [#60](https://github.com/Baseflow/flutter-permission-plugins/issues/60));
* Updated the url_launcher dependency in the example App to `^6.0.12`.
## 8.2.0
> **IMPORTANT:** when updating to version 8.2.0 make sure to also set the `compileSdkVersion` in the `app/build.gradle` file to `31`.
> **IMPORTANT:** When updating to version 8.2.0 make sure to also set the `compileSdkVersion` in the `app/build.gradle` file to `31`.
* Added support for the new Android 12 Bluetooth permissions: BLUETOOTH_SCAN, BLUETOOTH_ADVERTISE and BLUETOOTH_CONNECT.
* Added support for the new Android 12 Bluetooth permissions: BLUETOOTH_SCAN, BLUETOOTH_ADVERTISE, and BLUETOOTH_CONNECT.
* Updated Android compile and target SDK to 31 (Android 12 (S)).
* Updated Gradle and dependencies of Android project.
* Updated applicationID of example app
* Updated Gradle and dependencies of the Android project.
* Updated application of the example app
## 8.1.6
* Android: Fixed a `NullPointerException` when changing permissions in the Location Settings intent.
## 8.1.5
* Android: Fixed deprecation warnings/errors when `compileSdkVersion` was set to 31 (Android S/12).
## 8.1.4+2
......@@ -151,7 +152,7 @@ Note: Requesting Bluetooth status will also prompt the permission dialog (see is
## 8.1.2
* Suppress deprecation warnings on iOS for code that specifically targets older iOS versions (see issue [#607](https://github.com/Baseflow/flutter-permission-handler/issues/607)).
* Suppress deprecation warnings on iOS for code that specifically targets older iOS versions (see issue [#607](https://github.com/Baseflow/flutter-permission-handler/issues/607)).
## 8.1.1
......@@ -160,9 +161,9 @@ Note: Requesting Bluetooth status will also prompt the permission dialog (see is
## 8.1.0
* Added support for iOS 12+ Critical Alerts permission requesting.
* NOTE: This requires applying to Apple and receiving a special entitlement from them inorder to work. See [this article](https://medium.com/@shashidharyamsani/implementing-ios-critical-alerts-7d82b4bb5026) for an explination on how to use Critical Alerts.
* NOTE: This requires applying to Apple and receiving a special entitlement from them in order to work. See [this article](https://medium.com/@shashidharyamsani/implementing-ios-critical-alerts-7d82b4bb5026) for an explanation of how to use Critical Alerts.
* Added support for Android M+ Access Notification Policy permission requesting (ACTION_NOTIFICATION_POLICY_ACCESS_SETTINGS).
* Note: This opens a general page in settings, not specific to the package.
* Note: This opens a general page in settings, not specific to the package.
## 8.0.1
......@@ -179,8 +180,9 @@ Note: Requesting Bluetooth status will also prompt the permission dialog (see is
## 8.0.0
This release contains the following **breaking changes**:
* Starting from this version the permissions on iOS are disabled by default. To enable a permission, specify the correct `GCC_PREPROCESSOR_DEFINITIONS` in the `ios/Podfile` file. For an example check out the [Podfile](permission_handler/example/ios/Podfile) of the example application.
This release contains the following **breaking changes**:
* Starting from this version the permissions on iOS are disabled by default. To enable permission, specify the correct `GCC_PREPROCESSOR_DEFINITIONS` in the `ios/Podfile` file. For an example check out the [Podfile](permission_handler/example/ios/Podfile) of the example application.
* Added support for the "AppTrackingTransparency" permission on iOS.
## 7.2.0
......@@ -189,7 +191,7 @@ This release contains the following **breaking changes**:
## 7.1.1
* Improved the example app by using the Baseflow Plugin Template and move all the functionality to the `main.dart` file.
* Improved the example app by using the Baseflow Plugin Template and moving all the functionality to the `main.dart` file.
## 7.1.0
......@@ -197,29 +199,30 @@ This release contains the following **breaking changes**:
## 7.0.0
This release contains the following **breaking changes**:
This release contains the following **breaking changes**:
* Updated compile SDK version to 30 in the build.gradle for handling the MANAGE_EXTERNAL_STORAGE permission;
* Added the MANAGE_EXTERNAL_STORAGE permission for Android R and up;
* Registered listeners on the plugin level to prevent memory leaks or unwanted behaviour.
* Registered listeners on the plugin level to prevent memory leaks or unwanted behavior.
## 6.1.3
* Implement equality operator on the `Permission` class;
* Updated the README.md with instructions on enabling/ disabling the bluetooth permissions on iOS;
* Updated the README.md with instructions on enabling/ disabling the Bluetooth permissions on iOS;
* Corrected some spelling mistakes in the `CHANGELOG.md`.
## 6.1.2
* Correctly handle the ACCESS_MEDIA_LOCATION and ACCESS_ACTIVITY_RECOGNITION permissions on pre Android Q devices (permissions should be implicitly granted on pre Android Q).
* Correctly handle the ACCESS_MEDIA_LOCATION and ACCESS_ACTIVITY_RECOGNITION permissions on pre-Android Q devices (permissions should be implicitly granted on pre-Android Q).
## 6.1.1
* Added unit-tests to guard API against breaking changes.
* Added unit tests to guard API against breaking changes.
## 6.1.0
* Added support for bluetooth permissions;
* Workaround for ignore battery optimizations on pre-M Android devices (see PR [#376](https://github.com/Baseflow/flutter-permission-handler/pull/376)).
* Added support for Bluetooth permissions;
* Workaround for ignoring battery optimizations on pre-M Android devices (see PR [#376](https://github.com/Baseflow/flutter-permission-handler/pull/376)).
## 6.0.1+1
......@@ -227,26 +230,27 @@ This release contains the following **breaking changes**:
## 6.0.1
* Fixed deprecation warning when building Android project.
* Fixed deprecation warning when building Android projects.
## 6.0.0
This release includes the following **breaking changes**:
* Migrated to null safety
* Migrated to null safety
* Removed PermissionStatus.undetermined, PermissionStatus.denied will be used instead (see our "[Changes in 6.0.0](https://github.com/Baseflow/flutter-permission-handler/wiki/Changes-in-6.0.0)" wiki page for more details).
## 5.1.0+2
* Solve mismatch with permission constants between Dart and Android (due to addition of permission on iOS);
* Fix compile error which occurred when on iOS the "PERMISSION_PHOTOS" macro is deactivated (meaning code dealing with the `PHPhotoLibrary` library is removed from the code base).
* Solve mismatch with permission constants between Dart and Android (due to the addition of permission on iOS);
* Fix the compile error that occurred when on iOS the "PERMISSION_PHOTOS" macro is deactivated (meaning code dealing with the `PHPhotoLibrary` library is removed from the code base).
## 5.1.0+1
* Recreate the iOS part of the example project based on the Flutter stable channel (previous version was accidentally created with the Flutter beta channel).
* Recreate the iOS part of the example project based on the Flutter stable channel (the previous version was accidentally created with the Flutter beta channel).
## 5.1.0
* Added support for the limited photos permission available on iOS 14 and up;
* Added support for the limited photo permission available on iOS 14 and up;
* Fixed deprecated warning on iOS;
* Added support for the "READ_PHONE_NUMBERS" permission on Android;
* Fix a link to the contribution guide in the README.md.
......@@ -258,7 +262,7 @@ This release includes the following **breaking changes**:
## 5.0.1+1
* Fixes Typo
* Issue #233 - on 5.0: Solved a bug that prevented Android applications running in the background to check the permission status.
* Issue #233 * on 5.0: Solved a bug that prevented Android applications running in the background to check the permission status.
## 5.0.1
......@@ -286,7 +290,7 @@ This release includes the following **breaking changes**:
## 5.0.0+hotfix.5
* Remove use of the deprecated pre iOS 8 API causing users compile issues (see issue [#277](https://github.com/Baseflow/flutter-permission-handler/issues/277)).
* Remove the use of the deprecated pre-iOS 8 API causing users to compile issues (see issue [#277](https://github.com/Baseflow/flutter-permission-handler/issues/277)).
## 5.0.0+hotfix.4
......@@ -294,7 +298,7 @@ This release includes the following **breaking changes**:
## 5.0.0+hotfix.3
* Includes the changes of 4.4.0+hotfix.4 (which was released to be backwards compatible).
* Includes the changes of 4.4.0+hotfix.4 (which was released to be backward compatible).
## 5.0.0+hotfix.2
......@@ -318,19 +322,19 @@ IGNORE THIS VERSION, it was released by accident and contains the same code as 4
## 4.4.0+hotfix.2
* Issue #235: Solved a bug which made it impossible to request service status on Android 7;
* Issue #237: Solved a bug which crashes the application when cancelling the "Ignore battery optimizations" request for permissions.
* Issue #235: Solved a bug that made it impossible to request service status on Android 7;
* Issue #237: Solved a bug that crashes the application when canceling the "Ignore battery optimizations" request for permissions.
## 4.4.0+hotfix.1
* Issue #233: Solved a bug that prevented Android applications running in the background to check the permission status.
* Issue #233: Solved a bug that prevented Android applications from running in the background to check the permission status.
## 4.4.0
* Updated plugin structure to confirm to the Flutter federated plugin architecture. This will make it easier to add new platform implementations (see: https://medium.com/flutter/how-to-write-a-flutter-web-plugin-part-2-afdddb69ece6);
* Updated plugin structure to conform to the Flutter federated plugin architecture. This will make it easier to add new platform implementations (see: https://medium.com/flutter/how-to-write-a-flutter-web-plugin-part-2-afdddb69ece6);
* Android: Migrate to FlutterPlugin Android API (better support for Add-to-App);
* Android: Suppress JAVA warnings which are generated to old platform code (only executes on older platforms);
* Android: Fixed issue which sometimes resulting in illegal cast exception.
* Android: Fixed issue which sometimes results in illegal cast exception.
## 4.3.0
......@@ -348,14 +352,13 @@ IGNORE THIS VERSION, it was released by accident and contains the same code as 4
* Android: Fixes a bug where permissions are reported as `neverAskAgain` incorrectly after calling `requestPermissions` method.
## 4.2.0+hotfix.1
* Android: Fixes a bug where permissions are reported as `neverAskAgain` incorrectly.
## 4.2.0
* Android: Methods `checkPermissionStatus` and `requestPermissions` now support addition `neverAskAgain` status.
* Android: Methods `checkPermissionStatus` and `requestPermissions` now support the additional `neverAskAgain` status.
## 4.1.0
......@@ -372,7 +375,7 @@ IGNORE THIS VERSION, it was released by accident and contains the same code as 4
## 3.3.0
* Android: Add support for requesting the background location permission within the `locationAlways` group.
* Android: Update AGP, Gradle and AndroidX dependencies
* Android: Update AGP, Gradle, and AndroidX dependencies
## 3.2.2
......@@ -384,7 +387,7 @@ IGNORE THIS VERSION, it was released by accident and contains the same code as 4
## 3.2.1
* Updated dependency on 'meta' to latest version.
* Updated dependency on 'meta' to the latest version.
## 3.2.0
......@@ -399,7 +402,7 @@ IGNORE THIS VERSION, it was released by accident and contains the same code as 4
## 3.0.2
* Fixed bug when rapidly requesting permissions (#23);
* Rename Enums.h to PermissionHandlerEnums.h to prevent conflicts with geolocator (#104);
* Rename Enums.h to PermissionHandlerEnums.h to prevent conflicts with the geolocator (#104);
* Update the Android permission request code to prevent conflicts with geolocator (#111);
* Update Gradle infrastructure.
......@@ -418,14 +421,14 @@ IGNORE THIS VERSION, it was released by accident and contains the same code as 4
## 2.1.3
* Fixed bug on iOS where result of the `openAppSettings` call always returned `false`;
* Upgrade Android plugin to support AndroidX and latest Gradle and Kotlin versions;
* Fixed bug on iOS where the result of the `openAppSettings` call always returned `false`;
* Upgrade the Android plugin to support AndroidX and the latest Gradle and Kotlin versions;
* Added Swift version number to the Podfile of the plugin;
* Updated flutter static analyzes to conform to latest recommendations.
* Updated flutter static analyses to conform to the latest recommendations.
## 2.1.2
* Make sure the Permission Handler compiles with latest iOS SDK
* Make sure the Permission Handler compiles with the latest iOS SDK
## 2.1.1
......@@ -444,12 +447,12 @@ IGNORE THIS VERSION, it was released by accident and contains the same code as 4
## 2.0.0
* Make methods non static so users can create an instance or override
* Make methods non-static so users can create an instance or override
## 1.0.1
* Converted the plugin into a library so that developers don't have to import additional files;
* Updated the README.md to fix example code.
* Updated the README.md to fix the example code.
## 1.0.0
......
......@@ -11,7 +11,7 @@ See the [FAQ](#faq) section for more information on common questions when using
## Setup
While the permissions are being requested during runtime, you'll still need to tell the OS which permissions your app might potentially use. That requires adding permission configuration to Android- and iOS-specific files.
While the permissions are being requested during runtime, you'll still need to tell the OS which permissions your app might potentially use. That requires adding permission configuration to Android* and iOS-specific files.
<details>
<summary>Android</summary>
......
......@@ -11,6 +11,6 @@ A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook)
For help getting started with Flutter, view our
[online documentation](https://flutter.io/docs), which offers tutorials,
For help getting started with Flutter, view our
[online documentation](https://flutter.io/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
......@@ -29,4 +29,3 @@ flutter:
assets:
- res/images/baseflow_logo_def_light-02.png
- res/images/poweredByBaseflowLogoLight@3x.png
......@@ -45,12 +45,12 @@
## 10.3.5
* Fixes a bug where `Permission.ScheduleExactAlarm` was not opening the settings
screen.
screen.
## 10.3.4
* Fixes a bug where the permission status would return 'permanently denied'
instead of 'denied' when the user would dismiss the permission dialog.
instead of 'denied' when the user dismisses the permission dialog.
## 10.3.3
......@@ -62,7 +62,7 @@ instead of 'denied' when the user would dismiss the permission dialog.
## 10.3.1
* Fixes `java.lang.IllegalStateException: Reply already submitted` when checking status of Bluetooth service.
* Fixes `java.lang.IllegalStateException: Reply already submitted` when checking the status of Bluetooth service.
## 10.3.0
......@@ -70,7 +70,7 @@ instead of 'denied' when the user would dismiss the permission dialog.
## 10.2.3
* Fixes missing POST_NOTIFICATIONS permission in Android example project.
* Fix missing POST_NOTIFICATIONS permission in the Android example project.
## 10.2.2
......@@ -90,8 +90,8 @@ instead of 'denied' when the user would dismiss the permission dialog.
## 10.0.0
* __BREAKING CHANGE__: Updates Android `compileSdkVersion` to `33` to handle the new `POST_NOTIFICATIONS` permission.
> When updating to version 10.0.0 make sure to update the `android/app/build.gradle` file and set the `compileSdkVersion` to `33`.
* **BREAKING CHANGE**: Updates Android `compileSdkVersion` to `33` to handle the new `POST_NOTIFICATIONS` permission.
> When updating to version 10.0.0 make sure to update the `android/app/build.gradle` file and set the `compileSdkVersion` to `33`.
## 9.0.2+1
......
......@@ -12,12 +12,12 @@ More detailed instructions on using the API can be found in the [README.md](../p
## Issues
Please file any issues, bugs or feature requests as an issue on our [GitHub](https://github.com/Baseflow/flutter-permission-handler/issues) page. Commercial support is available, you can contact us at <hello@baseflow.com>.
Please file any issues, bugs, or feature requests as an issue on our [GitHub](https://github.com/Baseflow/flutter-permission-handler/issues) page. Commercial support is available, you can contact us at <hello@baseflow.com>.
## Want to contribute
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our [contribution guide](../CONTRIBUTING.md) and send us your [pull request](https://github.com/Baseflow/flutter-permission-handler/pulls).
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug, or adding a cool new feature), please carefully review our [contribution guide](../CONTRIBUTING.md) and send us your [pull request](https://github.com/Baseflow/flutter-permission-handler/pulls).
## Author
This permission_handler plugin for Flutter is developed by [Baseflow](https://baseflow.com).
\ No newline at end of file
This permission_handler plugin for Flutter is developed by [Baseflow](https://baseflow.com).
......@@ -11,6 +11,6 @@ A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook)
For help getting started with Flutter, view our
[online documentation](https://flutter.io/docs), which offers tutorials,
For help getting started with Flutter, view our
[online documentation](https://flutter.io/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
......@@ -36,11 +36,11 @@
## 9.0.4
* Adds flag inside `UserDefaults` to save whether locationAlways has already been requested and prevent further requests, which would be left unanswered by the system.
* Adds flag inside `UserDefaults` to save whether `locationAlways` has already been requested and prevent further requests, which would be left unanswered by the system.
## 9.0.3
* Ensures a request for `locationAlways` permission returns a result unblocking the permission request and preventing the `ERROR_ALREADY_REQUESTING_PERMISSIONS` error for subsequent permission request.
* Ensures a request for `locationAlways` permission returns a result unblocking the permission request and preventing the `ERROR_ALREADY_REQUESTING_PERMISSIONS` error for subsequent permission requests.
## 9.0.2
......
......@@ -12,12 +12,12 @@ More detailed instructions on using the API can be found in the [README.md](../p
## Issues
Please file any issues, bugs or feature requests as an issue on our [GitHub](https://github.com/Baseflow/flutter-permission-handler/issues) page. Commercial support is available, you can contact us at <hello@baseflow.com>.
Please file any issues, bugs, or feature requests as an issue on our [GitHub](https://github.com/Baseflow/flutter-permission-handler/issues) page. Commercial support is available, you can contact us at <hello@baseflow.com>.
## Want to contribute
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our [contribution guide](../CONTRIBUTING.md) and send us your [pull request](https://github.com/Baseflow/flutter-permission-handler/pulls).
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug, or adding a cool new feature), please carefully review our [contribution guide](../CONTRIBUTING.md) and send us your [pull request](https://github.com/Baseflow/flutter-permission-handler/pulls).
## Author
This permission_handler plugin for Flutter is developed by [Baseflow](https://baseflow.com).
\ No newline at end of file
This permission_handler plugin for Flutter is developed by [Baseflow](https://baseflow.com).
......@@ -11,6 +11,6 @@ A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook)
For help getting started with Flutter, view our
[online documentation](https://flutter.io/docs), which offers tutorials,
For help getting started with Flutter, view our
[online documentation](https://flutter.io/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
......@@ -18,7 +18,7 @@
## 3.11.4
* Clarifies the documentation on requesting background location permission
through `Permission.locationAlways` on Android 10+ (API 29+).
through `Permission.locationAlways` on Android 10+ (API 29+).
## 3.11.3
......@@ -58,7 +58,7 @@ through `Permission.locationAlways` on Android 10+ (API 29+).
## 3.7.0
* Adds support for the new Android 12 Bluetooth permissions: BLUETOOTH_SCAN, BLUETOOTH_ADVERTISE and BLUETOOTH_CONNECT.
* Adds support for the new Android 12 Bluetooth permissions: BLUETOOTH_SCAN, BLUETOOTH_ADVERTISE, and BLUETOOTH_CONNECT.
## 3.6.2
......@@ -71,7 +71,7 @@ through `Permission.locationAlways` on Android 10+ (API 29+).
## 3.6.0
* Adds support for iOS Critical alerts and Android Access Notification Policy.
* Adds support for iOS Critical Alerts and Android Access Notification Policy.
## 3.5.1
......@@ -91,25 +91,25 @@ through `Permission.locationAlways` on Android 10+ (API 29+).
## 3.2.0
* Adds support for manage external storage permission available on Android 10 and up.
* Adds support for managing external storage permission available on Android 10 and up.
## 3.1.3
## 3.1.3
* Implements the equality operator for `Permission` class;
* Reverts the services status check for notification permission. Turns out implementation does not fit with idea's of permission_handler plugin.
* Implements the equality operator for the `Permission` class;
* Reverts the status of the services check for notification permission. Turns out the implementation does not fit with the ideas of the permission_handler plugin.
## 3.1.2
* Allows checking serviceStatus for notification permission.
* Allows checking service status for notification permission.
## 3.1.1
* Fixes conversion issue where `PermissionStatus.denied` was not translated to the correct index.
* Adds unit-tests to guard API against breaking changes.
* Adds unit tests to guard API against breaking changes.
## 3.1.0
* Adds support for bluetooth permissions.
* Adds support for Bluetooth permissions.
## 3.0.0+1
......@@ -121,17 +121,17 @@ through `Permission.locationAlways` on Android 10+ (API 29+).
## 2.0.2
* Adds support for the limited photos permission available on iOS 14 and up.
* Adds support for the limited photo permission available on iOS 14 and up.
## 2.0.1
* Updates to `platform_interface 1.0.2`
* Fixes bug which allows requesting is the device has phone capabilities.
* Fixes bug that allows requesting if the device has phone capabilities.
## 2.0.0
- **BREAKING**: Creates a much more intuitive API using Dart's new extension methods ([#230](https://github.com/Baseflow/flutter-permission-handler/issues/230)). Big thank you to [@marcelgarus](https://github.com/marcelgarus) for the idea and doing all the grunt work.
* **BREAKING**: Creates a much more intuitive API using Dart's new extension methods ([#230](https://github.com/Baseflow/flutter-permission-handler/issues/230)). Big thank you to [@marcelgarus](https://github.com/marcelgarus) for the idea and for doing all the grunt work.
## 1.0.0
- Initial open-source release.
* Initial open-source release.
......@@ -4,25 +4,25 @@
A common platform interface for the [`permission_handler`][1] plugin.
This interface allows platform-specific implementations of the
This interface allows platform-specific implementations of the
`permission_handler` plugin, as well as the plugin itself, to ensure they are
supporting the same interface.
# Usage
To implement a new platform-specific implementation of `permission_handler`,
extend [`PermissionHandlerPlatform`][2] with an implementation that performs
the platform-specific behavior, and when you register your plugin, set the
To implement a new platform-specific implementation of `permission_handler`,
extend [`PermissionHandlerPlatform`][2] with an implementation that performs
the platform-specific behavior, and when you register your plugin, set the
default `PermissionHandlerPlatform` by calling
`PermissionHandlerPlatform.instance = MyPlatformPermissionHandler()`.
# Issues
Please file any issues, bugs or feature request as an issue on our [GitHub](https://github.com/Baseflow/flutter-permission-handler/issues) page.
Please file any issues, bugs, or feature requests as an issue on our [GitHub](https://github.com/Baseflow/flutter-permission-handler/issues) page.
# Want to contribute
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our [contribution guide](../CONTRIBUTING.md) and send us your [pull request](https://github.com/Baseflow/flutter-permission-handler/pulls).
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug, or adding a cool new feature), please carefully review our [contribution guide](../CONTRIBUTING.md) and send us your [pull request](https://github.com/Baseflow/flutter-permission-handler/pulls).
## Note on breaking changes
......@@ -30,11 +30,11 @@ Strongly prefer non-breaking changes (such as adding a method to the interface)
over breaking changes for this package.
See https://flutter.dev/go/platform-interface-breaking-changes for a discussion
on why a less-clean interface is preferable to a breaking change.
on why a less clean interface is preferable to a breaking change.
# Author
This Permission handler plugin for Flutter is developed by [Baseflow](https://baseflow.com). You can contact us at <hello@baseflow.com>
[1]: ../permission_handler
[2]: lib/permission_handler_platform_interface.dart
\ No newline at end of file
[2]: lib/permission_handler_platform_interface.dart
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
# Ignore generated files
- '**/*.g.dart'
- 'lib/src/generated/*.dart'
- "**/*.g.dart"
- "lib/src/generated/*.dart"
linter:
rules:
- public_member_api_docs
\ No newline at end of file
- public_member_api_docs
......@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
\ No newline at end of file
SOFTWARE.
......@@ -12,12 +12,12 @@ More detailed instructions on using the API can be found in the [README.md](../p
## Issues
Please file any issues, bugs or feature requests as an issue on our [GitHub](https://github.com/Baseflow/flutter-permission-handler/issues) page. Commercial support is available, you can contact us at <hello@baseflow.com>.
Please file any issues, bugs, or feature requests as an issue on our [GitHub](https://github.com/Baseflow/flutter-permission-handler/issues) page. Commercial support is available, you can contact us at <hello@baseflow.com>.
## Want to contribute
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our [contribution guide](../CONTRIBUTING.md) and send us your [pull request](https://github.com/Baseflow/flutter-permission-handler/pulls).
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug, or adding a cool new feature), please carefully review our [contribution guide](../CONTRIBUTING.md) and send us your [pull request](https://github.com/Baseflow/flutter-permission-handler/pulls).
## Author
This permission_handler plugin for Flutter is developed by [Baseflow](https://baseflow.com).
\ No newline at end of file
This permission_handler plugin for Flutter is developed by [Baseflow](https://baseflow.com).
name: permission_handler_web_example
description: Demonstrates how to use the permission_handler_web plugin..
description: Demonstrates how to use the permission_handler_web plugin..
environment:
sdk: '>=3.0.5 <4.0.0'
sdk: ">=3.0.5 <4.0.0"
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
......@@ -38,7 +38,6 @@ dev_dependencies:
# The following section is specific to Flutter packages.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
......
......@@ -4,7 +4,7 @@ version: 0.0.1
homepage:
environment:
sdk: '>=3.0.5 <4.0.0'
sdk: ">=3.0.5 <4.0.0"
flutter: ">=3.3.0"
dependencies:
......@@ -27,7 +27,6 @@ dev_dependencies:
# The following section is specific to Flutter packages.
flutter:
plugin:
implements: permission_handler
platforms:
......
......@@ -11,6 +11,6 @@ A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook)
For help getting started with Flutter, view our
[online documentation](https://flutter.io/docs), which offers tutorials,
For help getting started with Flutter, view our
[online documentation](https://flutter.io/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
......@@ -22,7 +22,7 @@ dev_dependencies:
path: ../
url_launcher: ^6.0.12
flutter:
uses-material-design: true
......@@ -31,4 +31,3 @@ flutter:
- res/images/poweredByBaseflowLogoLight@3x.png
- packages/baseflow_plugin_template/logo.png
- packages/baseflow_plugin_template/poweredByBaseflow.png
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment