Skip to content

Commit 8627373

Browse files
authored
Update dependencies (#1448)
1 parent 1dd6dc2 commit 8627373

File tree

7 files changed

+63
-65
lines changed

7 files changed

+63
-65
lines changed
Lines changed: 48 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,161 +1,165 @@
1+
## 4.3.0
2+
3+
- Updates project dependencies.
4+
15
## 4.2.3
26

3-
* Fixes class name references in the API documentation.
7+
- Fixes class name references in the API documentation.
48

59
## 4.2.2
610

7-
* Adds limited access permission for Android 14+.
11+
- Adds limited access permission for Android 14+.
812

913
## 4.2.1
1014

11-
* Resolves an error that occurred when calling the `shouldShowRequestPermissionRationale` on iOS.
15+
- Resolves an error that occurred when calling the `shouldShowRequestPermissionRationale` on iOS.
1216

1317
## 4.2.0
1418

15-
* Adds a new permission `Permission.backgroundRefresh` to check the background refresh permission status on iOS & macOS platforms. This is a no-op on all other platforms.
19+
- Adds a new permission `Permission.backgroundRefresh` to check the background refresh permission status on iOS & macOS platforms. This is a no-op on all other platforms.
1620

1721
## 4.1.0
1822

19-
* Adds the `Permission.assistant` which allows users to request permissions to access SiriKit on iOS and macOS platforms. This is a no-op on all other platforms.
23+
- Adds the `Permission.assistant` which allows users to request permissions to access SiriKit on iOS and macOS platforms. This is a no-op on all other platforms.
2024

2125
## 4.0.2
2226

23-
* Improved the documentation around the `PermissionStatus`, `PermissionStatusGetters` and `FuturePermissionStatusGetters`.
27+
- Improved the documentation around the `PermissionStatus`, `PermissionStatusGetters` and `FuturePermissionStatusGetters`.
2428

2529
## 4.0.1
2630

27-
* Updates Android documentation on how to use `permission.photo` on Android 12 (API 32) and below and Android 13 (API 33) and above.
31+
- Updates Android documentation on how to use `permission.photo` on Android 12 (API 32) and below and Android 13 (API 33) and above.
2832

2933
## 4.0.0
3034

31-
* **BREAKING CHANGE**: Replaces `Permission.calendarReadOnly` with `Permission.calendarWriteOnly`.
35+
- **BREAKING CHANGE**: Replaces `Permission.calendarReadOnly` with `Permission.calendarWriteOnly`.
3236

3337
## 3.12.0
3438

35-
* Adds `Permission.calendarReadOnly` and `Permission.calendarFullAccess`.
36-
* Deprecates `Permission.calendar`. Developers should use `Permission.calendarReadOnly` and `Permission.calendarFullAccess` instead.
39+
- Adds `Permission.calendarReadOnly` and `Permission.calendarFullAccess`.
40+
- Deprecates `Permission.calendar`. Developers should use `Permission.calendarReadOnly` and `Permission.calendarFullAccess` instead.
3741

3842
## 3.11.5
3943

40-
* Updates the mentions of Android versions throughout the plugin, now following a format of 'Android {name} (API {number})'. For example: 'Android 13 (API 33)'.
44+
- Updates the mentions of Android versions throughout the plugin, now following a format of 'Android {name} (API {number})'. For example: 'Android 13 (API 33)'.
4145

4246
## 3.11.4
4347

44-
* Clarifies the documentation on requesting background location permission
48+
- Clarifies the documentation on requesting background location permission
4549
through `Permission.locationAlways` on Android 10+ (API 29+).
4650

4751
## 3.11.3
4852

49-
* Updates the documentation for the `Permission.bluetooth` permission regarding the limitations of the permission on iOS.
53+
- Updates the documentation for the `Permission.bluetooth` permission regarding the limitations of the permission on iOS.
5054

5155
## 3.11.2
5256

53-
* Changes `Permission.bluetooth` into an instance of `PermissionWithService` instead of `Permission` in order to determine iOS native's `CBManagerStatePoweredOn`.
57+
- Changes `Permission.bluetooth` into an instance of `PermissionWithService` instead of `Permission` in order to determine iOS native's `CBManagerStatePoweredOn`.
5458

5559
## 3.11.1
5660

57-
* Updates the documentation for the `Permission.storage` permission regarding its use on Android.
61+
- Updates the documentation for the `Permission.storage` permission regarding its use on Android.
5862

5963
## 3.11.0+1
6064

61-
* **HOTFIX**: Fixes misalignment in the `Permission` enum after adding the new BODY_SENSORS_BACKGROUND permission.
65+
- **HOTFIX**: Fixes misalignment in the `Permission` enum after adding the new BODY_SENSORS_BACKGROUND permission.
6266

6367
## 3.11.0
6468

65-
* Adds support for the new Android 13 permission: BODY_SENSORS_BACKGROUND.
69+
- Adds support for the new Android 13 permission: BODY_SENSORS_BACKGROUND.
6670

6771
## 3.10.0
6872

69-
* Adds support for the "Provisional" permission status introduced with iOS 12+.
73+
- Adds support for the "Provisional" permission status introduced with iOS 12+.
7074

7175
## 3.9.0
7276

73-
* Adds support for the new Android 13 permissions: SCHEDULE_EXACT_ALARM, READ_MEDIA_IMAGES, READ_MEDIA_VIDEO and READ_MEDIA_AUDIO
77+
- Adds support for the new Android 13 permissions: SCHEDULE_EXACT_ALARM, READ_MEDIA_IMAGES, READ_MEDIA_VIDEO and READ_MEDIA_AUDIO
7478

7579
## 3.8.0
7680

77-
* Adds support for the new Android 13 permission: NEARBY_WIFI_DEVICES.
81+
- Adds support for the new Android 13 permission: NEARBY_WIFI_DEVICES.
7882

7983
## 3.7.1
8084

81-
* Updates the documentation on permissions in `permission_status.dart`
85+
- Updates the documentation on permissions in `permission_status.dart`
8286

8387
## 3.7.0
8488

85-
* Adds support for the new Android 12 Bluetooth permissions: BLUETOOTH_SCAN, BLUETOOTH_ADVERTISE, and BLUETOOTH_CONNECT.
89+
- Adds support for the new Android 12 Bluetooth permissions: BLUETOOTH_SCAN, BLUETOOTH_ADVERTISE, and BLUETOOTH_CONNECT.
8690

8791
## 3.6.2
8892

89-
* Updates the MethodChannelMock due to breaking changes in the platform channel test interface.
93+
- Updates the MethodChannelMock due to breaking changes in the platform channel test interface.
9094

9195
## 3.6.1
9296

93-
* Updates the `meta` dependency to version `^1.3.0`.
94-
* Updates documentation for the `locationAlways` permission
97+
- Updates the `meta` dependency to version `^1.3.0`.
98+
- Updates documentation for the `locationAlways` permission
9599

96100
## 3.6.0
97101

98-
* Adds support for iOS Critical Alerts and Android Access Notification Policy.
102+
- Adds support for iOS Critical Alerts and Android Access Notification Policy.
99103

100104
## 3.5.1
101105

102-
* Updates API documentation for the `PermissionStatus.permanentlyDenied` status.
106+
- Updates API documentation for the `PermissionStatus.permanentlyDenied` status.
103107

104108
## 3.5.0
105109

106-
* Adds support for app tracking transparency permission.
110+
- Adds support for app tracking transparency permission.
107111

108112
## 3.4.0
109113

110-
* Adds support request install packages permission.
114+
- Adds support request install packages permission.
111115

112116
## 3.3.0
113117

114-
* Adds support for system alert window permission.
118+
- Adds support for system alert window permission.
115119

116120
## 3.2.0
117121

118-
* Adds support for managing external storage permission available on Android 10 and up.
122+
- Adds support for managing external storage permission available on Android 10 and up.
119123

120124
## 3.1.3
121125

122-
* Implements the equality operator for the `Permission` class;
123-
* 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.
126+
- Implements the equality operator for the `Permission` class;
127+
- 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.
124128

125129
## 3.1.2
126130

127-
* Allows checking service status for notification permission.
131+
- Allows checking service status for notification permission.
128132

129133
## 3.1.1
130134

131-
* Fixes conversion issue where `PermissionStatus.denied` was not translated to the correct index.
132-
* Adds unit tests to guard API against breaking changes.
135+
- Fixes conversion issue where `PermissionStatus.denied` was not translated to the correct index.
136+
- Adds unit tests to guard API against breaking changes.
133137

134138
## 3.1.0
135139

136-
* Adds support for Bluetooth permissions.
140+
- Adds support for Bluetooth permissions.
137141

138142
## 3.0.0+1
139143

140-
* **BREAKING**: Removes the PermissionStatus.undetermined. This is now replaced by PermissionStatus.denied.
144+
- **BREAKING**: Removes the PermissionStatus.undetermined. This is now replaced by PermissionStatus.denied.
141145

142146
## 3.0.0
143147

144-
* Migrates to null safety.
148+
- Migrates to null safety.
145149

146150
## 2.0.2
147151

148-
* Adds support for the limited photo permission available on iOS 14 and up.
152+
- Adds support for the limited photo permission available on iOS 14 and up.
149153

150154
## 2.0.1
151155

152-
* Updates to `platform_interface 1.0.2`
153-
* Fixes bug that allows requesting if the device has phone capabilities.
156+
- Updates to `platform_interface 1.0.2`
157+
- Fixes bug that allows requesting if the device has phone capabilities.
154158

155159
## 2.0.0
156160

157-
* **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.
161+
- **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.
158162

159163
## 1.0.0
160164

161-
* Initial open-source release.
165+
- Initial open-source release.

permission_handler_platform_interface/lib/permission_handler_platform_interface.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
library permission_handler_platform_interface;
2-
31
import 'dart:async';
42
import 'package:meta/meta.dart';
53
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

permission_handler_platform_interface/lib/src/permission_handler_platform_interface.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of permission_handler_platform_interface;
1+
part of '../permission_handler_platform_interface.dart';
22

33
/// The interface that implementations of `permission_handler` must implement.
44
///

permission_handler_platform_interface/lib/src/permission_status.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of permission_handler_platform_interface;
1+
part of '../permission_handler_platform_interface.dart';
22

33
/// Defines the state of a [Permission].
44
enum PermissionStatus {
@@ -60,8 +60,6 @@ extension PermissionStatusValue on PermissionStatus {
6060
return 4;
6161
case PermissionStatus.provisional:
6262
return 5;
63-
default:
64-
throw UnimplementedError();
6563
}
6664
}
6765

permission_handler_platform_interface/lib/src/permissions.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
part of permission_handler_platform_interface;
1+
part of '../permission_handler_platform_interface.dart';
22

33
/// A special kind of permission, used to access a service.
44
///
55
/// Additionally to the actions that normal [Permission]s have, you can also
66
/// query the status of the related service.
77
class PermissionWithService extends Permission {
8-
const PermissionWithService._(int value) : super._(value);
8+
const PermissionWithService._(super.value) : super._();
99

1010
/// Creates a [PermissionWithService] instance.
1111
///
1212
/// This constructor is marked public for testing purposes only.
1313
@visibleForTesting
14-
const PermissionWithService.private(int value) : super._(value);
14+
const PermissionWithService.private(super.value) : super._();
1515
}
1616

1717
/// Defines the permissions which can be checked and requested.
@@ -102,8 +102,8 @@ class Permission {
102102
/// - Devices running Android 13 (API level 33) and above: Should use [Permission.photos].
103103
///
104104
/// EXAMPLE: in Manifest:
105-
/// <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32"/>
106-
/// <uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
105+
/// &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32"/&gt;
106+
/// &lt;uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/&gt;
107107
///
108108
/// In Flutter to check the status:
109109
///

permission_handler_platform_interface/lib/src/service_status.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of permission_handler_platform_interface;
1+
part of '../permission_handler_platform_interface.dart';
22

33
/// Defines the different states a service can be in.
44
enum ServiceStatus {
@@ -24,8 +24,6 @@ extension ServiceStatusValue on ServiceStatus {
2424
return 1;
2525
case ServiceStatus.notApplicable:
2626
return 2;
27-
default:
28-
throw UnimplementedError();
2927
}
3028
}
3129

permission_handler_platform_interface/pubspec.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ description: A common platform interface for the permission_handler plugin.
33
homepage: https://github.com/baseflow/flutter-permission-handler/tree/master/permission_handler_platform_interface
44
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
55
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
6-
version: 4.2.3
6+
version: 4.3.0
7+
8+
environment:
9+
sdk: ^3.5.0
10+
flutter: ">=3.24.0"
711

812
dependencies:
913
flutter:
@@ -14,9 +18,5 @@ dependencies:
1418
dev_dependencies:
1519
flutter_test:
1620
sdk: flutter
17-
mockito: ^5.0.0
18-
flutter_lints: ^1.0.4
19-
20-
environment:
21-
sdk: ">=2.14.0 <4.0.0"
22-
flutter: ">=2.5.0"
21+
mockito: ^5.4.5
22+
flutter_lints: ^5.0.0

0 commit comments

Comments
 (0)