Skip to content

Commit fe66176

Browse files
author
Chris Yang
committed
merge master
2 parents 7284d68 + 002149d commit fe66176

File tree

151 files changed

+1795
-635
lines changed

Some content is hidden

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

151 files changed

+1795
-635
lines changed

.ci/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11

22
FROM cirrusci/flutter:latest
33

4+
RUN sudo apt-get update -y
5+
6+
RUN sudo apt-get install -y --no-install-recommends gnupg
7+
8+
# Add repo for gcloud sdk and install it
9+
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | \
10+
sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
11+
12+
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \
13+
sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
14+
15+
RUN sudo apt-get update && sudo apt-get install -y google-cloud-sdk && \
16+
gcloud config set core/disable_usage_reporting true && \
17+
gcloud config set component_manager/disable_update_check true
18+
419
RUN yes | sdkmanager \
520
"platforms;android-27" \
621
"build-tools;27.0.3" \

.cirrus.yml

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,45 @@ task:
55
cpu: 8
66
memory: 16G
77
upgrade_script:
8+
- flutter channel stable
9+
- flutter upgrade
810
- flutter channel master
911
- flutter upgrade
1012
- git fetch origin master
1113
activate_script: pub global activate flutter_plugin_tools
1214
matrix:
1315
- name: publishable
14-
script: ./script/check_publish.sh
15-
- name: test+format
16+
script:
17+
- flutter channel stable
18+
- ./script/check_publish.sh
19+
- name: format
1620
install_script:
1721
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
1822
- sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main"
1923
- sudo apt-get update
2024
- sudo apt-get install -y --allow-unauthenticated clang-format-7
2125
format_script: ./script/incremental_build.sh format --travis --clang-format=clang-format-7
22-
test_script: ./script/incremental_build.sh test
26+
- name: test
27+
env:
28+
matrix:
29+
CHANNEL: "master"
30+
CHANNEL: "stable"
31+
test_script:
32+
- flutter channel $CHANNEL
33+
- ./script/incremental_build.sh test
2334
- name: analyze
2435
script: ./script/incremental_build.sh analyze
25-
- name: build-apks+java-test+drive-examples
36+
- name: build-apks+java-test+firebase-test-lab
2637
env:
2738
matrix:
2839
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 2"
2940
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2"
30-
MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
31-
create_device_script:
32-
echo no | avdmanager -v create avd -n test -k "system-images;android-21;default;armeabi-v7a"
41+
matrix:
42+
CHANNEL: "master"
43+
CHANNEL: "stable"
44+
GCLOUD_FIREBASE_TESTLAB_KEY: ENCRYPTED[fd81ffb7c44af2f8a1ae55e470c69690c1ec7e90aba49d18635fa4f3c72b6807034287e9e697f64e37ab836a66ba9eab]
3345
script:
46+
- flutter channel $CHANNEL
3447
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
3548
# might include non-ASCII characters which makes Gradle crash.
3649
# See: https://github.com/flutter/flutter/issues/24935
@@ -43,24 +56,31 @@ task:
4356
- export CIRRUS_COMMIT_MESSAGE=""
4457
- ./script/incremental_build.sh build-examples --apk
4558
- ./script/incremental_build.sh java-test # must come after apk build
59+
- if [[ $GCLOUD_FIREBASE_TESTLAB_KEY == ENCRYPTED* ]]; then
60+
- echo "This user does not have permission to run Firebase Test Lab tests."
61+
- else
62+
- echo $GCLOUD_FIREBASE_TESTLAB_KEY > ${HOME}/gcloud-service-key.json
63+
- ./script/incremental_build.sh firebase-test-lab
64+
- fi
4665
- export CIRRUS_CHANGE_MESSAGE=`cat /tmp/cirrus_change_message.txt`
4766
- export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt`
4867

4968
task:
5069
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
5170
osx_instance:
52-
image: mojave-xcode-10.2-flutter
71+
image: mojave-xcode-11.2.1-flutter
5372
setup_script:
5473
- pod repo update
5574
upgrade_script:
75+
- flutter channel stable
76+
- flutter upgrade
5677
- flutter channel master
5778
- flutter upgrade
5879
- git fetch origin master
59-
activate_script:
60-
- pub global activate flutter_plugin_tools
80+
activate_script: pub global activate flutter_plugin_tools
6181
create_simulator_script:
6282
- xcrun simctl list
63-
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-12-2 | xargs xcrun simctl boot
83+
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-13-2 | xargs xcrun simctl boot
6484
matrix:
6585
- name: build-ipas+drive-examples
6686
env:
@@ -70,7 +90,10 @@ task:
7090
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 4"
7191
PLUGIN_SHARDING: "--shardIndex 2 --shardCount 4"
7292
PLUGIN_SHARDING: "--shardIndex 3 --shardCount 4"
73-
SIMCTL_CHILD_MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
93+
matrix:
94+
CHANNEL: "master"
95+
CHANNEL: "stable"
7496
build_script:
97+
- flutter channel $CHANNEL
7598
- ./script/incremental_build.sh build-examples --ipa
7699
- ./script/incremental_build.sh drive-examples

packages/cloud_firestore/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
## 0.12.10
2+
3+
* Added `FieldPath` class and `FieldPath.documentId` to refer to the document id in queries.
4+
* Added assertions and exceptions that help you building correct queries.
5+
6+
## 0.12.9+8
7+
8+
* Updated README instructions for contributing for consistency with other Flutterfire plugins.
9+
10+
## 0.12.9+7
11+
12+
* Remove AndroidX warning.
13+
14+
## 0.12.9+6
15+
16+
* Cast error.code to long to avoid using NSInteger as %ld format warnings.
17+
18+
## 0.12.9+5
19+
20+
* Fixes a crash on Android when running a transaction without an internet connection.
21+
122
## 0.12.9+4
223

324
* Fix integer conversion warnings on iOS.

packages/cloud_firestore/README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ A Flutter plugin to use the [Cloud Firestore API](https://firebase.google.com/do
66

77
For Flutter plugins for other Firebase products, see [README.md](https://github.com/FirebaseExtended/flutterfire/blob/master/README.md).
88

9-
*Note*: This plugin is still under development, and some APIs might not be available yet. [Feedback](https://github.com/FirebaseExtended/flutterfire/issues) and [Pull Requests](https://github.com/FirebaseExtended/flutterfire/pulls) are most welcome!
10-
119
## Setup
1210

1311
To use this plugin:
@@ -102,3 +100,13 @@ Firestore.instance.runTransaction((Transaction tx) async {
102100
## Getting Started
103101

104102
See the `example` directory for a complete sample app using Cloud Firestore.
103+
104+
## Issues and feedback
105+
106+
Please file Flutterfire specific issues, bugs, or feature requests in our [issue tracker](https://github.com/FirebaseExtended/flutterfire/issues/new).
107+
108+
Plugin issues that are not specific to Flutterfire can be filed in the [Flutter issue tracker](https://github.com/flutter/flutter/issues/new).
109+
110+
To contribute a change to this plugin,
111+
please review our [contribution guide](https://github.com/FirebaseExtended/flutterfire/blob/master/CONTRIBUTING.md),
112+
and send a [pull request](https://github.com/FirebaseExtended/flutterfire/pulls).

packages/cloud_firestore/android/build.gradle

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
def PLUGIN = "cloud_firestore";
2-
def ANDROIDX_WARNING = "flutterPluginsAndroidXWarning";
3-
gradle.buildFinished { buildResult ->
4-
if (buildResult.failure && !rootProject.ext.has(ANDROIDX_WARNING)) {
5-
println ' *********************************************************'
6-
println 'WARNING: This version of ' + PLUGIN + ' will break your Android build if it or its dependencies aren\'t compatible with AndroidX.'
7-
println ' See https://goo.gl/CP92wY for more information on the problem and how to fix it.'
8-
println ' This warning prints for all Android build failures. The real root cause of the error may be unrelated.'
9-
println ' *********************************************************'
10-
rootProject.ext.set(ANDROIDX_WARNING, true);
11-
}
12-
}
13-
141
group 'io.flutter.plugins.firebase.cloudfirestore'
152
version '1.0-SNAPSHOT'
163

0 commit comments

Comments
 (0)