Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit db8a9b5

Browse files
committed
Update version number
2 parents 38c13e7 + 0c6ed04 commit db8a9b5

File tree

185 files changed

+2120
-1196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+2120
-1196
lines changed

.cirrus.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ task:
132132
osx_instance:
133133
image: catalina-xcode-11.3.1-flutter
134134
upgrade_script:
135+
- sudo gem install cocoapods
135136
- flutter channel stable
136137
- flutter upgrade
137138
- flutter channel master
@@ -190,6 +191,7 @@ task:
190191
setup_script:
191192
- flutter config --enable-macos-desktop
192193
upgrade_script:
194+
- sudo gem install cocoapods
193195
- flutter channel master
194196
- flutter upgrade
195197
- git fetch origin master

CONTRIBUTING.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[![Build Status](https://api.cirrus-ci.com/github/flutter/plugins.svg)](https://cirrus-ci.com/github/flutter/plugins/master)
55

6-
_See also: [Flutter's code of conduct](https://flutter.io/design-principles/#code-of-conduct)_
6+
_See also: [Flutter's code of conduct](https://github.com/flutter/flutter/blob/master/CODE_OF_CONDUCT.md)_
77

88
## Things you will need
99

@@ -131,17 +131,16 @@ pub global run flutter_plugin_tools xctest --target RunnerUITests --skip <plugin
131131
We gladly accept contributions via GitHub pull requests.
132132

133133
Please peruse our
134-
[style guide](https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo) and
135-
[design principles](https://flutter.io/design-principles/) before
136-
working on anything non-trivial. These guidelines are intended to
134+
[style guide](https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo)
135+
before working on anything non-trivial. These guidelines are intended to
137136
keep the code consistent and avoid common pitfalls.
138137

139138
To start working on a patch:
140139

141140
* `git fetch upstream`
142141
* `git checkout upstream/master -b <name_of_your_branch>`
143142
* Hack away.
144-
* Verify changes with [flutter_plugin_tools](https://pub.dartlang.org/packages/flutter_plugin_tools)
143+
* Verify changes with [flutter_plugin_tools](https://pub.dev/packages/flutter_plugin_tools)
145144
```
146145
pub global activate flutter_plugin_tools
147146
pub global run flutter_plugin_tools format --plugins plugin_name

packages/android_alarm_manager/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.5+19
2+
3+
* Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276))
4+
15
## 0.4.5+18
26

37
* Update Flutter SDK constraint.

packages/android_alarm_manager/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# android_alarm_manager
22

3-
[![pub package](https://img.shields.io/pub/v/android_alarm_manager.svg)](https://pub.dartlang.org/packages/android_alarm_manager)
3+
[![pub package](https://img.shields.io/pub/v/android_alarm_manager.svg)](https://pub.dev/packages/android_alarm_manager)
44

55
A Flutter plugin for accessing the Android AlarmManager service, and running
66
Dart code in the background when alarms fire.
@@ -121,6 +121,6 @@ register plugins. This can be resolved by running `flutter upgrade` to upgrade
121121
to the latest Flutter version.**
122122

123123
For help getting started with Flutter, view our online
124-
[documentation](http://flutter.io/).
124+
[documentation](https://flutter.dev/).
125125

126-
For help on editing plugin code, view the [documentation](https://flutter.io/platform-plugins/#edit-code).
126+
For help on editing plugin code, view the [documentation](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin).

packages/android_alarm_manager/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Flutter plugin for accessing the Android AlarmManager service, and
44
# 0.4.y+z is compatible with 1.0.0, if you land a breaking change bump
55
# the version to 2.0.0.
66
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
7-
version: 0.4.5+18
7+
version: 0.4.5+19
88
homepage: https://github.com/flutter/plugins/tree/master/packages/android_alarm_manager
99

1010
dependencies:

packages/android_intent/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 2.0.0-nullsafety.1
2+
3+
* Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276))
4+
5+
## 2.0.0-nullsafety
6+
7+
* Migrate to null safety.
8+
19
## 0.3.7+8
210

311
* Update Flutter SDK constraint.

packages/android_intent/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,20 @@ if (platform.isAndroid) {
5353
Feel free to add support for additional Android intents.
5454

5555
The Dart values supported for the arguments parameter, and their corresponding
56-
Android values, are listed [here](https://flutter.io/platform-channels/#codec).
56+
Android values, are listed [here](https://flutter.dev/docs/development/platform-integration/platform-channels#codec).
5757
On the Android side, the arguments are used to populate an Android `Bundle`
5858
instance. This process currently restricts the use of lists to homogeneous lists
5959
of integers or strings.
6060

6161
> Note that a similar method does not currently exist for iOS. Instead, the
62-
[url_launcher](https://pub.dartlang.org/packages/url_launcher) plugin
62+
[url_launcher](https://pub.dev/packages/url_launcher) plugin
6363
can be used for deep linking. Url launcher can also be used for creating
6464
ACTION_VIEW intents for Android, however this intent plugin also allows
6565
clients to set extra parameters for the intent.
6666

6767
## Getting Started
6868

6969
For help getting started with Flutter, view our online
70-
[documentation](http://flutter.io/).
70+
[documentation](https://flutter.dev/).
7171

72-
For help on editing plugin code, view the [documentation](https://flutter.io/platform-plugins/#edit-code).
72+
For help on editing plugin code, view the [documentation](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin).

packages/android_intent/lib/android_intent.dart

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AndroidIntent {
3636
this.arguments,
3737
this.package,
3838
this.componentName,
39-
Platform platform,
39+
Platform? platform,
4040
this.type,
4141
}) : assert(action != null || componentName != null,
4242
'action or component (or both) must be specified'),
@@ -47,8 +47,8 @@ class AndroidIntent {
4747
/// app code, it may break without warning.
4848
@visibleForTesting
4949
AndroidIntent.private({
50-
@required Platform platform,
51-
@required MethodChannel channel,
50+
required Platform platform,
51+
required MethodChannel channel,
5252
this.action,
5353
this.flags,
5454
this.category,
@@ -66,47 +66,47 @@ class AndroidIntent {
6666
/// includes constants like `ACTION_VIEW`.
6767
///
6868
/// See https://developer.android.com/reference/android/content/Intent.html#intent-structure.
69-
final String action;
69+
final String? action;
7070

7171
/// Constants that can be set on an intent to tweak how it is finally handled.
7272
/// Some of the constants are mirrored to Dart via [Flag].
7373
///
7474
/// See https://developer.android.com/reference/android/content/Intent.html#setFlags(int).
75-
final List<int> flags;
75+
final List<int>? flags;
7676

7777
/// An optional additional constant qualifying the given [action].
7878
///
7979
/// See https://developer.android.com/reference/android/content/Intent.html#intent-structure.
80-
final String category;
80+
final String? category;
8181

8282
/// The Uri that the [action] is pointed towards.
8383
///
8484
/// See https://developer.android.com/reference/android/content/Intent.html#intent-structure.
85-
final String data;
85+
final String? data;
8686

8787
/// The equivalent of `extras`, a generic `Bundle` of data that the Intent can
8888
/// carry. This is a slot for extraneous data that the listener may use.
8989
///
9090
/// See https://developer.android.com/reference/android/content/Intent.html#intent-structure.
91-
final Map<String, dynamic> arguments;
91+
final Map<String, dynamic>? arguments;
9292

9393
/// Sets the [data] to only resolve within this given package.
9494
///
9595
/// See https://developer.android.com/reference/android/content/Intent.html#setPackage(java.lang.String).
96-
final String package;
96+
final String? package;
9797

9898
/// Set the exact `ComponentName` that should handle the intent. If this is
9999
/// set [package] should also be non-null.
100100
///
101101
/// See https://developer.android.com/reference/android/content/Intent.html#setComponent(android.content.ComponentName).
102-
final String componentName;
102+
final String? componentName;
103103
final MethodChannel _channel;
104104
final Platform _platform;
105105

106106
/// Set an explicit MIME data type.
107107
///
108108
/// See https://developer.android.com/reference/android/content/Intent.html#intent-structure.
109-
final String type;
109+
final String? type;
110110

111111
bool _isPowerOfTwo(int x) {
112112
/* First x in the below expression is for the case when x is 0 */
@@ -146,17 +146,18 @@ class AndroidIntent {
146146
return false;
147147
}
148148

149-
return await _channel.invokeMethod<bool>(
149+
final result = await _channel.invokeMethod<bool>(
150150
'canResolveActivity',
151151
_buildArguments(),
152152
);
153+
return result!;
153154
}
154155

155156
/// Constructs the map of arguments which is passed to the plugin.
156157
Map<String, dynamic> _buildArguments() {
157158
return {
158159
if (action != null) 'action': action,
159-
if (flags != null) 'flags': convertFlags(flags),
160+
if (flags != null) 'flags': convertFlags(flags!),
160161
if (category != null) 'category': category,
161162
if (data != null) 'data': data,
162163
if (arguments != null) 'arguments': arguments,

packages/android_intent/pubspec.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: android_intent
22
description: Flutter plugin for launching Android Intents. Not supported on iOS.
33
homepage: https://github.com/flutter/plugins/tree/master/packages/android_intent
4-
# 0.3.y+z is compatible with 1.0.0, if you land a breaking change bump
5-
# the version to 2.0.0.
6-
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
7-
version: 0.3.7+8
4+
version: 2.0.0-nullsafety.1
85

96
flutter:
107
plugin:
@@ -16,15 +13,15 @@ flutter:
1613
dependencies:
1714
flutter:
1815
sdk: flutter
19-
platform: ">=2.0.0 <4.0.0"
20-
meta: ^1.0.5
16+
platform: ^3.0.0-nullsafety.4
17+
meta: ^1.3.0-nullsafety.6
2118
dev_dependencies:
22-
test: ^1.3.0
23-
mockito: ^3.0.0
19+
test: ^1.16.0-nullsafety.13
20+
mockito: ^4.1.3
2421
flutter_test:
2522
sdk: flutter
26-
pedantic: ^1.8.0
23+
pedantic: ^1.10.0-nullsafety.1
2724

2825
environment:
29-
sdk: ">=2.3.0 <3.0.0"
26+
sdk: ">=2.12.0-0 <3.0.0"
3027
flutter: ">=1.12.13+hotfix.5"

packages/android_intent/test/android_intent_test.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ import 'package:platform/platform.dart';
1111

1212
void main() {
1313
AndroidIntent androidIntent;
14-
MockMethodChannel mockChannel;
14+
late MockMethodChannel mockChannel;
1515
setUp(() {
1616
mockChannel = MockMethodChannel();
17+
when(mockChannel.invokeMethod<bool>('canResolveActivity', any))
18+
.thenAnswer((realInvocation) async => true);
1719
});
1820

1921
group('AndroidIntent', () {

packages/battery/battery/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.10
2+
3+
* Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276))
4+
15
## 1.0.9
26

37
* Update Flutter SDK constraint.

packages/battery/battery/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Battery
22

3-
[![pub package](https://img.shields.io/pub/v/battery.svg)](https://pub.dartlang.org/packages/battery)
3+
[![pub package](https://img.shields.io/pub/v/battery.svg)](https://pub.dev/packages/battery)
44

55
A Flutter plugin to access various information about the battery of the device the app is running on.
66

77
## Usage
8-
To use this plugin, add `battery` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).
8+
To use this plugin, add `battery` as a [dependency in your pubspec.yaml file](https://flutter.dev/docs/development/platform-integration/platform-channels).
99

1010
### Example
1111

packages/battery/battery/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: battery
22
description: Flutter plugin for accessing information about the battery state
33
(full, charging, discharging) on Android and iOS.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/battery/battery
5-
version: 1.0.9
5+
version: 1.0.10
66

77
flutter:
88
plugin:

packages/camera/camera/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,23 @@
22

33
* Adds torch mode as a flash mode for Android and iOS implementations.
44

5+
## 0.6.1+1
6+
7+
* Added implementation of the `didFinishProcessingPhoto` on iOS which allows saving image metadata (EXIF) on iOS 11 and up.
8+
59
## 0.6.1
610

711
* Add flash support for Android and iOS implementations.
812

13+
## 0.6.0+2
14+
15+
* Fix outdated links across a number of markdown files ([#3276](https://github.com/flutter/plugins/pull/3276))
16+
17+
## 0.6.0+1
18+
19+
Updated README to inform users that iOS 10.0+ is needed for use
20+
21+
>>>>>>> master
922
## 0.6.0
1023

1124
As part of implementing federated architecture and making the interface compatible with the web this version contains the following **breaking changes**:

packages/camera/camera/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Camera Plugin
22

3-
[![pub package](https://img.shields.io/pub/v/camera.svg)](https://pub.dartlang.org/packages/camera)
3+
[![pub package](https://img.shields.io/pub/v/camera.svg)](https://pub.dev/packages/camera)
44

55
A Flutter plugin for iOS and Android allowing access to the device cameras.
66

@@ -15,10 +15,12 @@ A Flutter plugin for iOS and Android allowing access to the device cameras.
1515

1616
## Installation
1717

18-
First, add `camera` as a [dependency in your pubspec.yaml file](https://flutter.io/using-packages/).
18+
First, add `camera` as a [dependency in your pubspec.yaml file](https://flutter.dev/using-packages/).
1919

2020
### iOS
2121

22+
iOS 10.0 of higher is needed to use the camera plugin. If compiling for any version lower than 10.0 make sure to check the iOS version before using the camera plugin. For example, using the [device_info](https://pub.dev/packages/device_info) plugin.
23+
2224
Add two rows to the `ios/Runner/Info.plist`:
2325

2426
* one with the key `Privacy - Camera Usage Description` and a usage description.

packages/camera/camera/android/src/test/java/io/flutter/plugins/camera/types/FlashModeTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public void getValueForString_returns_correct_values() {
1717
FlashMode.getValueForString("always"),
1818
FlashMode.always);
1919
assertEquals(
20-
"Returns FlashMode.torch for 'torch'",
21-
FlashMode.getValueForString("torch"),
22-
FlashMode.torch);
20+
"Returns FlashMode.torch for 'torch'",
21+
FlashMode.getValueForString("torch"),
22+
FlashMode.torch);
2323
}
2424

2525
@Test

0 commit comments

Comments
 (0)