Skip to content

Commit 08b37c1

Browse files
author
Michael Lehenbauer
committed
Merge branch 'master' into mikelehen/pojo-field-writes
2 parents 2823a98 + 24ae317 commit 08b37c1

File tree

4 files changed

+24
-11
lines changed

4 files changed

+24
-11
lines changed

firebase-database/src/androidTest/java/com/google/firebase/database/snapshot/CompoundHashingIntegrationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ private static Path randomPath(int maxLen) {
6363
// client. Since this is parsed as empty node without priority on the client, the range merge
6464
// fails. For simplicity (and because priority has a whole bunch of other broken edge cases) we
6565
// will ignore it for now
66-
if (false && addPriority) {
66+
// if (addPriority) {
67+
if (false) {
6768
path = path.child(ChildKey.getPriorityKey());
6869
}
6970
return path;

firebase-firestore/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Unreleased
2+
3+
# 17.1.2
24
- [changed] Changed the internal handling for locally updated documents that
35
haven't yet been read back from Cloud Firestore. This can lead to slight
46
behavior changes and may affect the `SnapshotMetadata.hasPendingWrites()`

firebase-firestore/src/proto/google/firebase/firestore/proto/maybe_document.proto

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ message NoDocument {
3434
google.protobuf.Timestamp read_time = 2;
3535
}
3636

37-
// A message indicating that the document that is known to exist but its data is unknown.
37+
// A message indicating that the document that is known to exist but its data
38+
// is unknown.
3839
message UnknownDocument {
3940
// The name of the document that is known to exist, in the standard format:
4041
// `projects/{project_id}/databases/{database_id}/documents/{document_path}`
@@ -44,8 +45,9 @@ message UnknownDocument {
4445
google.protobuf.Timestamp version = 2;
4546
}
4647

47-
// Represents either an existing document, the explicitly known absence of a document, or a document
48-
// that is known to exist (at some version) but whose contents are unknown
48+
// Represents either an existing document, the explicitly known absence of a
49+
// document, or a document that is known to exist (at some version) but whose
50+
// contents are unknown.
4951
message MaybeDocument {
5052
oneof document_type {
5153
// Used if the document is known to not exist.
@@ -54,12 +56,13 @@ message MaybeDocument {
5456
// The document (if it exists).
5557
google.firestore.v1beta1.Document document = 2;
5658

57-
// Used if the document is known to exist but its data is unknown
59+
// Used if the document is known to exist but its data is unknown.
5860
UnknownDocument unknown_document = 3;
5961
}
6062

61-
// `hasCommittedMutations` marks documents that were written to the remote socument store based
62-
// on a write acknowledgment. These documents are potentially inconsistent with the backend's
63-
// copy and use the write's commit version as their document version.
64-
bool hasCommittedMutations = 4;
63+
// `has_committed_mutations` marks documents that were written to the remote
64+
// document store based on a write acknowledgment. These documents are
65+
// potentially inconsistent with the backend's copy and use the write's
66+
// commit version as their document version.
67+
bool has_committed_mutations = 4;
6568
}

root-project.gradle

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ buildscript {
2929
dependencies {
3030
classpath 'com.android.tools.build:gradle:3.0.1'
3131
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
32-
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.13'
32+
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.6'
3333
classpath 'org.jsoup:jsoup:1.11.2'
3434
classpath 'gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.6'
3535
classpath 'com.google.gms:google-services:4.1.0'
@@ -41,6 +41,8 @@ buildscript {
4141
ext {
4242
playServicesVersion = '16.0.1'
4343
supportAnnotationsVersion = '26.1.0'
44+
errorproneVersion = '2.3.2'
45+
errorproneJavacVersion = '9+181-r4173-1'
4446
}
4547

4648
apply plugin: com.google.firebase.gradle.plugins.publish.PublishingPlugin
@@ -55,6 +57,11 @@ configure(subprojects) {
5557
}
5658
}
5759
apply plugin: 'net.ltgt.errorprone'
60+
dependencies {
61+
errorprone "com.google.errorprone:error_prone_core:$errorproneVersion"
62+
errorproneJavac "com.google.errorprone:javac:$errorproneJavacVersion"
63+
64+
}
5865
apply plugin: 'com.github.sherter.google-java-format'
5966
googleJavaFormat {
6067
toolVersion = '1.6'
@@ -77,7 +84,7 @@ configure(subprojects) {
7784
}
7885

7986
tasks.withType(JavaCompile) {
80-
options.compilerArgs += ['-XepExcludedPaths:.*/build/generated/.*']
87+
options.errorprone.excludedPaths = '.*/build/generated/.*'
8188
}
8289

8390
// Adds firebase custom errorprone checks to the annotation processor classpath.

0 commit comments

Comments
 (0)