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

Commit 5218c0a

Browse files
committed
Merge remote-tracking branch 'upstream/master' into webview_load_file_wkwebview
2 parents b945839 + d22be76 commit 5218c0a

File tree

146 files changed

+5766
-1566
lines changed

Some content is hidden

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

146 files changed

+5766
-1566
lines changed

.cirrus.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,11 @@ task:
174174
- name: android-platform_tests
175175
env:
176176
matrix:
177-
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 4"
178-
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 4"
179-
PLUGIN_SHARDING: "--shardIndex 2 --shardCount 4"
180-
PLUGIN_SHARDING: "--shardIndex 3 --shardCount 4"
177+
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 5"
178+
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 5"
179+
PLUGIN_SHARDING: "--shardIndex 2 --shardCount 5"
180+
PLUGIN_SHARDING: "--shardIndex 3 --shardCount 5"
181+
PLUGIN_SHARDING: "--shardIndex 4 --shardCount 5"
181182
matrix:
182183
CHANNEL: "master"
183184
CHANNEL: "stable"
@@ -228,6 +229,9 @@ task:
228229
### Web tasks ###
229230
- name: web-platform_tests
230231
env:
232+
matrix:
233+
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 2"
234+
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2"
231235
matrix:
232236
CHANNEL: "master"
233237
CHANNEL: "stable"

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
- [ ] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
1010
- [ ] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
11-
- [ ] I read and followed the [relevant style guides] and ran [the auto-formatter]. (Note that unlike the flutter/flutter repo, the flutter/plugins repo does use `dart format`.)
11+
- [ ] I read and followed the [relevant style guides] and ran [the auto-formatter]. (Unlike the flutter/flutter repo, the flutter/plugins repo does use `dart format`.)
1212
- [ ] I signed the [CLA].
1313
- [ ] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. `[shared_preferences]`
1414
- [ ] I listed at least one issue that this PR fixes in the description above.
15-
- [ ] I [updated pubspec.yaml](https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#version-and-changelog-updates) with an appropriate new version according to the [pub versioning philosophy].
16-
- [ ] I updated CHANGELOG.md to add a description of the change.
15+
- [ ] I updated `pubspec.yaml` with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes].
16+
- [ ] I updated `CHANGELOG.md` to add a description of the change.
1717
- [ ] I updated/added relevant documentation (doc comments with `///`).
18-
- [ ] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test exempt.
18+
- [ ] I added new tests to check the change I am making, or this PR is [test-exempt].
1919
- [ ] All existing and new tests are passing.
2020

2121
If you need help, consider asking for advice on the #hackers-new channel on [Discord].
@@ -29,4 +29,6 @@ If you need help, consider asking for advice on the #hackers-new channel on [Dis
2929
[breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
3030
[Discord]: https://github.com/flutter/flutter/wiki/Chat
3131
[pub versioning philosophy]: https://dart.dev/tools/pub/versioning
32+
[exempt from version changes]: https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#version-and-changelog-updates
3233
[the auto-formatter]: https://github.com/flutter/plugins/blob/master/script/tool/README.md#format-code
34+
[test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests

packages/google_maps_flutter/google_maps_flutter/example/ios/RunnerUITests/GoogleMapsUITests.m

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ - (void)setUp {
1717
self.app = [[XCUIApplication alloc] init];
1818
[self.app launch];
1919

20+
// The location permission interception is currently not working.
21+
// See: https://github.com/flutter/flutter/issues/93325.
2022
[self
2123
addUIInterruptionMonitorWithDescription:@"Permission popups"
2224
handler:^BOOL(XCUIElement* _Nonnull interruptingElement) {
@@ -42,7 +44,8 @@ - (void)setUp {
4244
}];
4345
}
4446

45-
- (void)testUserInterface {
47+
// Temporarily disabled due to https://github.com/flutter/flutter/issues/93325
48+
- (void)skip_testUserInterface {
4649
XCUIApplication* app = self.app;
4750
XCUIElement* userInteface = app.staticTexts[@"User interface"];
4851
if (![userInteface waitForExistenceWithTimeout:30.0]) {
@@ -63,4 +66,59 @@ - (void)testUserInterface {
6366
[compass tap];
6467
}
6568

69+
- (void)testMapCoordinatesPage {
70+
XCUIApplication* app = self.app;
71+
XCUIElement* mapCoordinates = app.staticTexts[@"Map coordinates"];
72+
if (![mapCoordinates waitForExistenceWithTimeout:30.0]) {
73+
os_log_error(OS_LOG_DEFAULT, "%@", app.debugDescription);
74+
XCTFail(@"Failed due to not able to find 'Map coordinates''");
75+
}
76+
[mapCoordinates tap];
77+
78+
XCUIElement* platformView = app.otherElements[@"platform_view[0]"];
79+
if (![platformView waitForExistenceWithTimeout:30.0]) {
80+
os_log_error(OS_LOG_DEFAULT, "%@", app.debugDescription);
81+
XCTFail(@"Failed due to not able to find platform view");
82+
}
83+
84+
XCUIElement* getVisibleRegionBoundsButton = app.buttons[@"Get Visible Region Bounds"];
85+
if (![getVisibleRegionBoundsButton waitForExistenceWithTimeout:30.0]) {
86+
os_log_error(OS_LOG_DEFAULT, "%@", app.debugDescription);
87+
XCTFail(@"Failed due to not able to find 'Get Visible Region Bounds''");
88+
}
89+
[getVisibleRegionBoundsButton tap];
90+
}
91+
92+
- (void)testMapClickPage {
93+
XCUIApplication* app = self.app;
94+
XCUIElement* mapClick = app.staticTexts[@"Map click"];
95+
if (![mapClick waitForExistenceWithTimeout:30.0]) {
96+
os_log_error(OS_LOG_DEFAULT, "%@", app.debugDescription);
97+
XCTFail(@"Failed due to not able to find 'Map click''");
98+
}
99+
[mapClick tap];
100+
101+
XCUIElement* platformView = app.otherElements[@"platform_view[0]"];
102+
if (![platformView waitForExistenceWithTimeout:30.0]) {
103+
os_log_error(OS_LOG_DEFAULT, "%@", app.debugDescription);
104+
XCTFail(@"Failed due to not able to find platform view");
105+
}
106+
107+
[platformView tap];
108+
109+
XCUIElement* tapped = app.staticTexts[@"Tapped"];
110+
if (![tapped waitForExistenceWithTimeout:30.0]) {
111+
os_log_error(OS_LOG_DEFAULT, "%@", app.debugDescription);
112+
XCTFail(@"Failed due to not able to find 'tapped''");
113+
}
114+
115+
[platformView pressForDuration:5.0];
116+
117+
XCUIElement* longPressed = app.staticTexts[@"Long pressed"];
118+
if (![longPressed waitForExistenceWithTimeout:30.0]) {
119+
os_log_error(OS_LOG_DEFAULT, "%@", app.debugDescription);
120+
XCTFail(@"Failed due to not able to find 'longPressed''");
121+
}
122+
}
123+
66124
@end

packages/google_maps_flutter/google_maps_flutter/example/lib/map_click.dart

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,27 @@ class _MapClickBodyState extends State<_MapClickBody> {
6868
if (mapController != null) {
6969
final String lastTap = 'Tap:\n${_lastTap ?? ""}\n';
7070
final String lastLongPress = 'Long press:\n${_lastLongPress ?? ""}';
71-
columnChildren
72-
.add(Center(child: Text(lastTap, textAlign: TextAlign.center)));
71+
columnChildren.add(Center(
72+
child: Text(
73+
lastTap,
74+
textAlign: TextAlign.center,
75+
)));
76+
columnChildren.add(Center(
77+
child: Text(
78+
_lastTap != null ? 'Tapped' : '',
79+
textAlign: TextAlign.center,
80+
)));
7381
columnChildren.add(Center(
7482
child: Text(
7583
lastLongPress,
7684
textAlign: TextAlign.center,
7785
)));
86+
columnChildren.add(Center(
87+
child: Text(
88+
_lastLongPress != null ? 'Long pressed' : '',
89+
textAlign: TextAlign.center,
90+
)));
7891
}
79-
8092
return Column(
8193
mainAxisAlignment: MainAxisAlignment.start,
8294
crossAxisAlignment: CrossAxisAlignment.stretch,

packages/package_info/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* Remove references to the Android v1 embedding.
44
* Updated Android lint settings.
5+
* Update Android compileSdkVersion to 30.
56

67
## 2.0.2
78

@@ -30,7 +31,7 @@
3031

3132
## 0.4.3+1
3233

33-
* Update android compileSdkVersion to 29.
34+
* Update Android compileSdkVersion to 29.
3435

3536
## 0.4.3
3637

packages/package_info/example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
2525
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2626

2727
android {
28-
compileSdkVersion 29
28+
compileSdkVersion 30
2929

3030
lintOptions {
3131
disable 'InvalidPackage'

packages/path_provider/path_provider/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.7
2+
3+
* Moved Android and iOS implementations to federated packages.
4+
15
## 2.0.6
26

37
* Added support for Background Platform Channels on Android when it is

packages/path_provider/path_provider/android/settings.gradle

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/path_provider/path_provider/pubspec.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: path_provider
22
description: Flutter plugin for getting commonly used locations on host platform file systems, such as the temp and app data directories.
33
repository: https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+path_provider%22
5-
version: 2.0.6
5+
version: 2.0.7
6+
# Temporarily disable publishing to allow moving Android and iOS
7+
# implementations.
8+
publish_to: none
69

710
environment:
811
sdk: ">=2.14.0 <3.0.0"
@@ -12,10 +15,9 @@ flutter:
1215
plugin:
1316
platforms:
1417
android:
15-
package: io.flutter.plugins.pathprovider
16-
pluginClass: PathProviderPlugin
18+
default_package: path_provider_android
1719
ios:
18-
pluginClass: FLTPathProviderPlugin
20+
default_package: path_provider_ios
1921
macos:
2022
default_package: path_provider_macos
2123
linux:
@@ -26,6 +28,11 @@ flutter:
2628
dependencies:
2729
flutter:
2830
sdk: flutter
31+
# Temporary path dependencies to allow moving Android and iOS implementations.
32+
path_provider_android:
33+
path: ../path_provider_android
34+
path_provider_ios:
35+
path: ../path_provider_ios
2936
path_provider_linux: ^2.0.0
3037
path_provider_macos: ^2.0.0
3138
path_provider_platform_interface: ^2.0.0
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Below is a list of people and organizations that have contributed
2+
# to the Flutter project. Names should be added to the list like so:
3+
#
4+
# Name/Organization <email address>
5+
6+
Google Inc.
7+
The Chromium Authors
8+
German Saprykin <[email protected]>
9+
Benjamin Sauer <[email protected]>
10+
11+
Ali Bitek <[email protected]>
12+
Pol Batlló <[email protected]>
13+
Anatoly Pulyaevskiy
14+
Hayden Flinner <[email protected]>
15+
Stefano Rodriguez <[email protected]>
16+
Salvatore Giordano <[email protected]>
17+
Brian Armstrong <[email protected]>
18+
Paul DeMarco <[email protected]>
19+
Fabricio Nogueira <[email protected]>
20+
Simon Lightfoot <[email protected]>
21+
Ashton Thomas <[email protected]>
22+
Thomas Danner <[email protected]>
23+
Diego Velásquez <[email protected]>
24+
Hajime Nakamura <[email protected]>
25+
Tuyển Vũ Xuân <[email protected]>
26+
Miguel Ruivo <[email protected]>
27+
Sarthak Verma <[email protected]>
28+
Mike Diarmid <[email protected]>
29+
Invertase <[email protected]>
30+
Elliot Hesp <[email protected]>
31+
Vince Varga <[email protected]>
32+
Aawaz Gyawali <[email protected]>
33+
EUI Limited <[email protected]>
34+
Katarina Sheremet <[email protected]>
35+
Thomas Stockx <[email protected]>
36+
Sarbagya Dhaubanjar <[email protected]>
37+
Ozkan Eksi <[email protected]>
38+
Rishab Nayak <[email protected]>
39+
40+
Jonathan Younger <[email protected]>
41+
Jose Sanchez <[email protected]>
42+
Debkanchan Samadder <[email protected]>
43+
Audrius Karosevicius <[email protected]>
44+
Lukasz Piliszczuk <[email protected]>
45+
SoundReply Solutions GmbH <[email protected]>
46+
Rafal Wachol <[email protected]>
47+
Pau Picas <[email protected]>
48+
Christian Weder <[email protected]>
49+
Alexandru Tuca <[email protected]>
50+
Christian Weder <[email protected]>
51+
Rhodes Davis Jr. <[email protected]>
52+
Luigi Agosti <[email protected]>
53+
Quentin Le Guennec <[email protected]>
54+
Koushik Ravikumar <[email protected]>
55+
Nissim Dsilva <[email protected]>
56+
Giancarlo Rocha <[email protected]>
57+
Ryo Miyake <[email protected]>
58+
Théo Champion <[email protected]>
59+
Kazuki Yamaguchi <[email protected]>
60+
Eitan Schwartz <[email protected]>
61+
Chris Rutkowski <[email protected]>
62+
Juan Alvarez <[email protected]>
63+
Aleksandr Yurkovskiy <[email protected]>
64+
Anton Borries <[email protected]>
65+
66+
Rahul Raj <[email protected]>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 2.0.6
2+
3+
* Split from `path_provider` as a federated implementation.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright 2013 The Flutter Authors. All rights reserved.
2+
3+
Redistribution and use in source and binary forms, with or without modification,
4+
are permitted provided that the following conditions are met:
5+
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above
9+
copyright notice, this list of conditions and the following
10+
disclaimer in the documentation and/or other materials provided
11+
with the distribution.
12+
* Neither the name of Google Inc. nor the names of its
13+
contributors may be used to endorse or promote products derived
14+
from this software without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
20+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
23+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# path\_provider\_android
2+
3+
The Android implementation of [`path_provider`].
4+
5+
## Usage
6+
7+
This package is [endorsed][2], which means you can simply use `path_provider`
8+
normally. This package will be automatically included in your app when you do.
9+
10+
[1]: https://pub.dev/packages/path_provider
11+
[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'path_provider_android'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# path_provider_example
2+
3+
Demonstrates how to use the path_provider plugin.
4+
5+
## Getting Started
6+
7+
For help getting started with Flutter, view our online
8+
[documentation](https://flutter.dev/).

0 commit comments

Comments
 (0)