Skip to content

Commit a03ee88

Browse files
authored
Merge pull request #3 from flutter/master
Update from master
2 parents bb12418 + 90aaca8 commit a03ee88

File tree

1,433 files changed

+3484
-64017
lines changed

Some content is hidden

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

1,433 files changed

+3484
-64017
lines changed

.ci/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ RUN yes | sdkmanager \
55
"platforms;android-27" \
66
"build-tools;27.0.3" \
77
"extras;google;m2repository" \
8-
"extras;android;m2repository" \
9-
"system-images;android-21;default;armeabi-v7a"
8+
"extras;android;m2repository"
109

1110
RUN yes | sdkmanager --licenses

.cirrus.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ task:
3030
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 2"
3131
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2"
3232
MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
33-
create_device_script:
34-
echo no | avdmanager -v create avd -n test -k "system-images;android-21;default;armeabi-v7a"
35-
start_emulator_background_script:
36-
- $ANDROID_HOME/emulator/emulator -avd test -no-audio -no-window
37-
wait_for_emulator_script: adb wait-for-device
3833
script:
3934
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
4035
# might include non-ASCII characters which makes Gradle crash.
@@ -48,9 +43,6 @@ task:
4843
- export CIRRUS_COMMIT_MESSAGE=""
4944
- ./script/incremental_build.sh build-examples --apk
5045
- ./script/incremental_build.sh java-test # must come after apk build
51-
# TODO(jackson): Re-enable once Android emulators support Firebase
52-
# https://github.com/flutter/flutter/issues/29571
53-
# - ./script/incremental_build.sh drive-examples
5446
- export CIRRUS_CHANGE_MESSAGE=`cat /tmp/cirrus_change_message.txt`
5547
- export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt`
5648

AUTHORS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@ Jose Sanchez <[email protected]>
4141
Debkanchan Samadder <[email protected]>
4242
Audrius Karosevicius <[email protected]>
4343
Lukasz Piliszczuk <[email protected]>
44-
SoundReply Solutions GmbH <[email protected]>
44+
SoundReply Solutions GmbH <[email protected]>
45+
Rafal Wachol <[email protected]>
46+
Pau Picas <[email protected]>

CODEOWNERS

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,12 @@ packages/android_alarm_manager/* @bkonyi
88
packages/android_intent/* @mklim
99
packages/battery/* @amirh
1010
packages/camera/* @bparrishMines @mklim
11-
packages/cloud_firestore/* @collinjackson @kroikie
12-
packages/cloud_functions/* @collinjackson @kroikie
1311
packages/connectivity/* @cyanglaz
14-
packages/firebase_admob/* @amirh @bparrishMines
15-
packages/firebase_analytics/* @collinjackson @kroikie
16-
packages/firebase_auth/* @collinjackson @kroikie
17-
packages/firebase_core/* @collinjackson @kroikie
18-
packages/firebase_crashlytics/* @kroikie @collinjackson
19-
packages/firebase_database/* @collinjackson @kroikie
20-
packages/firebase_dynamic_links/* @bparrishMines
21-
packages/firebase_in_app_messaging/* @collinjackson
22-
packages/firebase_messaging/* @collinjackson @kroikie
23-
packages/firebase_ml_vision/* @bparrishMines
24-
packages/firebase_performance/* @bparrishMines @collinjackson
25-
packages/firebase_remote_config/* @collinjackson @kroikie
26-
packages/firebase_storage/* @collinjackson @kroikie
2712
packages/google_maps_flutter/* @iskakaushik
2813
packages/google_sign_in/* @cyanglaz @mehmetf
2914
packages/image_picker/* @cyanglaz
3015
packages/in_app_purchase/* @mklim @cyanglaz
16+
packages/instrumentation_adapter/* @collinjackson @digiter
3117
packages/package_info/* @cyanglaz
3218
packages/path_provider/* @collinjackson
3319
packages/quick_actions/* @collinjackson

CONTRIBUTING.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,20 @@ To run the unit tests:
5050
flutter test test/<name_of_plugin>_test.dart
5151
```
5252

53-
To run the integration tests:
53+
To run the integration tests using Flutter driver:
5454

5555
```
5656
cd example
5757
flutter drive test/<name_of_plugin>.dart
5858
```
5959

60+
To run integration tests as instrumentation tests on a local Android device:
61+
62+
```
63+
cd example
64+
(cd android && ./gradlew -Ptarget=$(pwd)/../test_live/<name_of_plugin>_test.dart connectedAndroidTest)
65+
```
66+
6067
## Contributing code
6168

6269
We gladly accept contributions via GitHub pull requests.

FlutterFire.md

Lines changed: 0 additions & 107 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,3 @@ These are the available plugins in this repository.
5858
| [url_launcher](./packages/url_launcher/) | [![pub package](https://img.shields.io/pub/v/url_launcher.svg)](https://pub.dev/packages/url_launcher) |
5959
| [video_player](./packages/video_player/) | [![pub package](https://img.shields.io/pub/v/video_player.svg)](https://pub.dev/packages/video_player) |
6060
| [webview_flutter](./packages/webview_flutter/) | [![pub package](https://img.shields.io/pub/v/webview_flutter.svg)](https://pub.dev/packages/webview_flutter) |
61-
| | |
62-
| **FlutterFire Plugins** | |
63-
| [cloud_firestore](./packages/cloud_firestore/) | [![pub package](https://img.shields.io/pub/v/cloud_firestore.svg)](https://pub.dev/packages/cloud_firestore)
64-
| [cloud_functions](./packages/cloud_functions/) | [![pub package](https://img.shields.io/pub/v/cloud_functions.svg)](https://pub.dev/packages/cloud_functions) |
65-
| [firebase_admob](./packages/firebase_admob/) | [![pub package](https://img.shields.io/pub/v/firebase_admob.svg)](https://pub.dev/packages/firebase_admob) |
66-
| [firebase_analytics](./packages/firebase_analytics/) | [![pub package](https://img.shields.io/pub/v/firebase_analytics.svg)](https://pub.dev/packages/firebase_analytics) |
67-
| [firebase_auth](./packages/firebase_auth/) | [![pub package](https://img.shields.io/pub/v/firebase_auth.svg)](https://pub.dev/packages/firebase_auth) |
68-
| [firebase_core](./packages/firebase_core/) | [![pub package](https://img.shields.io/pub/v/firebase_core.svg)](https://pub.dev/packages/firebase_core) |
69-
| [firebase_crashlytics](./packages/firebase_crashlytics/) | [![pub package](https://img.shields.io/pub/v/firebase_crashlytics.svg)](https://pub.dev/packages/firebase_crashlytics) |
70-
| [firebase_database](./packages/firebase_database/) | [![pub package](https://img.shields.io/pub/v/firebase_database.svg)](https://pub.dev/packages/firebase_database) |
71-
| [firebase_dynamic_links](./packages/firebase_dynamic_links/) | [![pub package](https://img.shields.io/pub/v/firebase_dynamic_links.svg)](https://pub.dev/packages/firebase_dynamic_links) |
72-
| [firebase_in_app_messaging](./packages/firebase_in_app_messaging/) | [![pub package](https://img.shields.io/pub/v/firebase_in_app_messaging.svg)](https://pub.dev/packages/firebase_in_app_messaging) |
73-
| [firebase_messaging](./packages/firebase_messaging/) | [![pub package](https://img.shields.io/pub/v/firebase_messaging.svg)](https://pub.dev/packages/firebase_messaging) |
74-
| [firebase_ml_vision](./packages/firebase_ml_vision/) | [![pub package](https://img.shields.io/pub/v/firebase_ml_vision.svg)](https://pub.dev/packages/firebase_ml_vision) |
75-
| [firebase_performance](./packages/firebase_performance/) | [![pub package](https://img.shields.io/pub/v/firebase_performance.svg)](https://pub.dev/packages/firebase_performance) |
76-
| [firebase_remote_config](./packages/firebase_remote_config/) | [![pub package](https://img.shields.io/pub/v/firebase_remote_config.svg)](https://pub.dev/packages/firebase_remote_config) |
77-
| [firebase_storage](./packages/firebase_storage/) | [![pub package](https://img.shields.io/pub/v/firebase_storage.svg)](https://pub.dev/packages/firebase_storage) |
78-
79-
Learn more about [FlutterFire](https://github.com/flutter/plugins/blob/master/FlutterFire.md).

examples/all_plugins/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ flutter {
5959

6060
dependencies {
6161
testImplementation 'junit:junit:4.12'
62+
implementation 'com.google.guava:guava:27.0.1-android'
6263
androidTestImplementation 'androidx.test:runner:1.1.0'
6364
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
6465
api 'androidx.exifinterface:exifinterface:1.0.0'

examples/all_plugins/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
}
88

99
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.2.1'
10+
classpath 'com.android.tools.build:gradle:3.3.1'
1111
}
1212
}
1313

packages/android_alarm_manager/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.4.4
2+
3+
* Add `id` to `callback` if it is of type `Function(int)`
4+
5+
## 0.4.3
6+
7+
* Added `oneShotAt` method to run `callback` at a given DateTime `time`.
8+
19
## 0.4.2
210

311
* Added support for setting alarms which work when the phone is in doze mode.

packages/android_alarm_manager/android/src/main/java/io/flutter/plugins/androidalarmmanager/AlarmService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ public void notImplemented() {
211211
// provided.
212212
// TODO(mattcarroll): consider giving a method name anyway for the purpose of developer discoverability
213213
// when reading the source code. Especially on the Dart side.
214-
sBackgroundChannel.invokeMethod("", new Object[] {callbackHandle}, result);
214+
sBackgroundChannel.invokeMethod(
215+
"", new Object[] {callbackHandle, intent.getIntExtra("id", -1)}, result);
215216
}
216217

217218
private static void scheduleAlarm(
@@ -242,6 +243,7 @@ private static void scheduleAlarm(
242243

243244
// Create an Intent for the alarm and set the desired Dart callback handle.
244245
Intent alarm = new Intent(context, AlarmBroadcastReceiver.class);
246+
alarm.putExtra("id", requestCode);
245247
alarm.putExtra("callbackHandle", callbackHandle);
246248
PendingIntent pendingIntent =
247249
PendingIntent.getBroadcast(context, requestCode, alarm, PendingIntent.FLAG_UPDATE_CURRENT);

packages/android_alarm_manager/android/src/main/java/io/flutter/plugins/androidalarmmanager/AndroidAlarmManagerPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static void registerWith(Registrar registrar) {
5050
// alarmManagerPluginChannel is the channel responsible for receiving the following messages
5151
// from the main Flutter app:
5252
// - "AlarmService.start"
53-
// - "Alarm.oneShot"
53+
// - "Alarm.oneShotAt"
5454
// - "Alarm.periodic"
5555
// - "Alarm.cancel"
5656
final MethodChannel alarmManagerPluginChannel =
@@ -125,7 +125,7 @@ public void onMethodCall(MethodCall call, Result result) {
125125
PeriodicRequest periodicRequest = PeriodicRequest.fromJson((JSONArray) arguments);
126126
AlarmService.setPeriodic(mContext, periodicRequest);
127127
result.success(true);
128-
} else if (method.equals("Alarm.oneShot")) {
128+
} else if (method.equals("Alarm.oneShotAt")) {
129129
// This message indicates that the Flutter app would like to schedule a one-time
130130
// task.
131131
OneShotRequest oneShotRequest = OneShotRequest.fromJson((JSONArray) arguments);

0 commit comments

Comments
 (0)