You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates the README for the new location permissions. (#1297)
* Updates the README for the new location permissions
* Update permission_handler/CHANGELOG.md
Co-authored-by: TimHoogstrate <tim566@hotmail.com>
---------
Co-authored-by: TimHoogstrate <tim566@hotmail.com>
Copy file name to clipboardExpand all lines: permission_handler/README.md
+74-74Lines changed: 74 additions & 74 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ See the [FAQ](#faq) section for more information on common questions when using
14
14
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.
15
15
16
16
<details>
17
-
<summary>Android</summary>
17
+
<summary>Android (click to expand)</summary>
18
18
19
19
**Upgrade pre-1.12 Android projects**
20
20
@@ -52,7 +52,7 @@ In general, it's sufficient to add permission only to the `main` version.
52
52
</details>
53
53
54
54
<details>
55
-
<summary>iOS</summary>
55
+
<summary>iOS (click to expand)</summary>
56
56
57
57
Add permission to your `Info.plist` file.
58
58
[Here](https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler/example/ios/Runner/Info.plist)'s an example `Info.plist` with a complete list of all possible permissions.
@@ -65,78 +65,76 @@ You must list the permission you want to use in your application:
65
65
66
66
1. Add the following to your `Podfile` file:
67
67
68
-
```ruby
69
-
post_install do |installer|
70
-
installer.pods_project.targets.each do |target|
71
-
... # Here are some configurations automatically generated by flutter
72
-
73
-
# Start of the permission_handler configuration
74
-
target.build_configurations.each do |config|
75
-
76
-
# You can enable the permissions needed here. For example to enable camera
77
-
# permission, just remove the `#` character in front so it looks like this:
78
-
#
79
-
# ## dart: PermissionGroup.camera
80
-
# 'PERMISSION_CAMERA=1'
81
-
#
82
-
# Preprocessor definitions can be found at: https://github.com/Baseflow/flutter-permission-handler/blob/master/permission_handler_apple/ios/Classes/PermissionHandlerEnums.h
2. Remove the `#` character in front of the permission you want to use. For example, if you need access to the calendar make sure the code looks like this:
142
140
@@ -149,21 +147,23 @@ You must list the permission you want to use in your application:
149
147
e.g. when you don't need camera permission, just delete 'NSCameraUsageDescription'
150
148
The following lists the relationship between `Permission` and `The key of Info.plist`:
0 commit comments