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,
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', () {

0 commit comments

Comments
 (0)