Jelajahi Sumber

CMake: Upgrade nanopb to 0.3.9.2 (#2985)

* Update nanopb to 0.3.9.2

This matches google3, even though 0.3.9.3 is out

* Regenerate protos with nanopb 0.3.9.2
Gil 6 tahun lalu
induk
melakukan
53d3ca199a
40 mengubah file dengan 52 tambahan dan 50 penghapusan
  1. 2 2
      CMakeLists.txt
  2. 1 1
      Firestore/Protos/CMakeLists.txt
  3. 1 1
      Firestore/Protos/nanopb/firestore/local/maybe_document.nanopb.cc
  4. 2 2
      Firestore/Protos/nanopb/firestore/local/maybe_document.nanopb.h
  5. 1 1
      Firestore/Protos/nanopb/firestore/local/mutation.nanopb.cc
  6. 1 1
      Firestore/Protos/nanopb/firestore/local/mutation.nanopb.h
  7. 1 1
      Firestore/Protos/nanopb/firestore/local/target.nanopb.cc
  8. 1 1
      Firestore/Protos/nanopb/firestore/local/target.nanopb.h
  9. 1 1
      Firestore/Protos/nanopb/google/api/annotations.nanopb.cc
  10. 1 1
      Firestore/Protos/nanopb/google/api/annotations.nanopb.h
  11. 1 1
      Firestore/Protos/nanopb/google/api/http.nanopb.cc
  12. 1 1
      Firestore/Protos/nanopb/google/api/http.nanopb.h
  13. 1 1
      Firestore/Protos/nanopb/google/firestore/v1/common.nanopb.cc
  14. 2 2
      Firestore/Protos/nanopb/google/firestore/v1/common.nanopb.h
  15. 1 1
      Firestore/Protos/nanopb/google/firestore/v1/document.nanopb.cc
  16. 1 1
      Firestore/Protos/nanopb/google/firestore/v1/document.nanopb.h
  17. 1 1
      Firestore/Protos/nanopb/google/firestore/v1/firestore.nanopb.cc
  18. 2 2
      Firestore/Protos/nanopb/google/firestore/v1/firestore.nanopb.h
  19. 1 1
      Firestore/Protos/nanopb/google/firestore/v1/query.nanopb.cc
  20. 5 5
      Firestore/Protos/nanopb/google/firestore/v1/query.nanopb.h
  21. 1 1
      Firestore/Protos/nanopb/google/firestore/v1/write.nanopb.cc
  22. 1 1
      Firestore/Protos/nanopb/google/firestore/v1/write.nanopb.h
  23. 1 1
      Firestore/Protos/nanopb/google/protobuf/any.nanopb.cc
  24. 1 1
      Firestore/Protos/nanopb/google/protobuf/any.nanopb.h
  25. 1 1
      Firestore/Protos/nanopb/google/protobuf/empty.nanopb.cc
  26. 1 1
      Firestore/Protos/nanopb/google/protobuf/empty.nanopb.h
  27. 1 1
      Firestore/Protos/nanopb/google/protobuf/struct.nanopb.cc
  28. 1 1
      Firestore/Protos/nanopb/google/protobuf/struct.nanopb.h
  29. 1 1
      Firestore/Protos/nanopb/google/protobuf/timestamp.nanopb.cc
  30. 1 1
      Firestore/Protos/nanopb/google/protobuf/timestamp.nanopb.h
  31. 1 1
      Firestore/Protos/nanopb/google/protobuf/wrappers.nanopb.cc
  32. 1 1
      Firestore/Protos/nanopb/google/protobuf/wrappers.nanopb.h
  33. 1 1
      Firestore/Protos/nanopb/google/rpc/status.nanopb.cc
  34. 1 1
      Firestore/Protos/nanopb/google/rpc/status.nanopb.h
  35. 1 1
      Firestore/Protos/nanopb/google/type/latlng.nanopb.cc
  36. 1 1
      Firestore/Protos/nanopb/google/type/latlng.nanopb.h
  37. 2 2
      Firestore/core/src/firebase/firestore/local/CMakeLists.txt
  38. 1 1
      Firestore/core/src/firebase/firestore/nanopb/CMakeLists.txt
  39. 1 1
      Firestore/core/src/firebase/firestore/remote/CMakeLists.txt
  40. 4 2
      cmake/external/nanopb.cmake

+ 2 - 2
CMakeLists.txt

@@ -202,12 +202,12 @@ set(nanopb_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries")
 add_external_subdirectory(nanopb)
 
 target_compile_definitions(
-  protobuf-nanopb
+  protobuf-nanopb-static
   PUBLIC -DPB_FIELD_32BIT -DPB_ENABLE_MALLOC
 )
 
 target_include_directories(
-  protobuf-nanopb
+  protobuf-nanopb-static
   INTERFACE $<BUILD_INTERFACE:${FIREBASE_EXTERNAL_SOURCE_DIR}/nanopb>
 )
 

+ 1 - 1
Firestore/Protos/CMakeLists.txt

@@ -144,7 +144,7 @@ cc_library(
   SOURCES
     ${NANOPB_GENERATED_SOURCES}
   DEPENDS
-    protobuf-nanopb
+    protobuf-nanopb-static
 )
 
 target_include_directories(

+ 1 - 1
Firestore/Protos/nanopb/firestore/local/maybe_document.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "maybe_document.nanopb.h"
 

+ 2 - 2
Firestore/Protos/nanopb/firestore/local/maybe_document.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_FIRESTORE_CLIENT_MAYBE_DOCUMENT_NANOPB_H_INCLUDED
 #define PB_FIRESTORE_CLIENT_MAYBE_DOCUMENT_NANOPB_H_INCLUDED
@@ -86,7 +86,7 @@ extern const pb_field_t firestore_client_MaybeDocument_fields[5];
 /* Maximum encoded size of messages (where known) */
 /* firestore_client_NoDocument_size depends on runtime parameters */
 /* firestore_client_UnknownDocument_size depends on runtime parameters */
-#define firestore_client_MaybeDocument_size      (2 + (((firestore_client_NoDocument_size > firestore_client_UnknownDocument_size ? firestore_client_NoDocument_size : firestore_client_UnknownDocument_size) > google_firestore_v1_Document_size ? (firestore_client_NoDocument_size > firestore_client_UnknownDocument_size ? firestore_client_NoDocument_size : firestore_client_UnknownDocument_size) : google_firestore_v1_Document_size) > 0 ? ((firestore_client_NoDocument_size > firestore_client_UnknownDocument_size ? firestore_client_NoDocument_size : firestore_client_UnknownDocument_size) > google_firestore_v1_Document_size ? (firestore_client_NoDocument_size > firestore_client_UnknownDocument_size ? firestore_client_NoDocument_size : firestore_client_UnknownDocument_size) : google_firestore_v1_Document_size) : 0))
+/* firestore_client_MaybeDocument_size depends on runtime parameters */
 
 /* Message IDs (where set with "msgid" option) */
 #ifdef PB_MSGID

+ 1 - 1
Firestore/Protos/nanopb/firestore/local/mutation.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "mutation.nanopb.h"
 

+ 1 - 1
Firestore/Protos/nanopb/firestore/local/mutation.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_FIRESTORE_CLIENT_MUTATION_NANOPB_H_INCLUDED
 #define PB_FIRESTORE_CLIENT_MUTATION_NANOPB_H_INCLUDED

+ 1 - 1
Firestore/Protos/nanopb/firestore/local/target.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "target.nanopb.h"
 

+ 1 - 1
Firestore/Protos/nanopb/firestore/local/target.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_FIRESTORE_CLIENT_TARGET_NANOPB_H_INCLUDED
 #define PB_FIRESTORE_CLIENT_TARGET_NANOPB_H_INCLUDED

+ 1 - 1
Firestore/Protos/nanopb/google/api/annotations.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "annotations.nanopb.h"
 

+ 1 - 1
Firestore/Protos/nanopb/google/api/annotations.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_API_ANNOTATIONS_NANOPB_H_INCLUDED
 #define PB_GOOGLE_API_ANNOTATIONS_NANOPB_H_INCLUDED

+ 1 - 1
Firestore/Protos/nanopb/google/api/http.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "http.nanopb.h"
 

+ 1 - 1
Firestore/Protos/nanopb/google/api/http.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_API_HTTP_NANOPB_H_INCLUDED
 #define PB_GOOGLE_API_HTTP_NANOPB_H_INCLUDED

+ 1 - 1
Firestore/Protos/nanopb/google/firestore/v1/common.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "common.nanopb.h"
 

+ 2 - 2
Firestore/Protos/nanopb/google/firestore/v1/common.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_FIRESTORE_V1_COMMON_NANOPB_H_INCLUDED
 #define PB_GOOGLE_FIRESTORE_V1_COMMON_NANOPB_H_INCLUDED
@@ -105,7 +105,7 @@ extern const pb_field_t google_firestore_v1_TransactionOptions_ReadOnly_fields[2
 /* Maximum encoded size of messages (where known) */
 /* google_firestore_v1_DocumentMask_size depends on runtime parameters */
 #define google_firestore_v1_Precondition_size    24
-#define google_firestore_v1_TransactionOptions_size (0 + (google_firestore_v1_TransactionOptions_ReadWrite_size > 26 ? google_firestore_v1_TransactionOptions_ReadWrite_size : 26))
+/* google_firestore_v1_TransactionOptions_size depends on runtime parameters */
 /* google_firestore_v1_TransactionOptions_ReadWrite_size depends on runtime parameters */
 #define google_firestore_v1_TransactionOptions_ReadOnly_size 24
 

+ 1 - 1
Firestore/Protos/nanopb/google/firestore/v1/document.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "document.nanopb.h"
 

+ 1 - 1
Firestore/Protos/nanopb/google/firestore/v1/document.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_FIRESTORE_V1_DOCUMENT_NANOPB_H_INCLUDED
 #define PB_GOOGLE_FIRESTORE_V1_DOCUMENT_NANOPB_H_INCLUDED

+ 1 - 1
Firestore/Protos/nanopb/google/firestore/v1/firestore.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "firestore.nanopb.h"
 

+ 2 - 2
Firestore/Protos/nanopb/google/firestore/v1/firestore.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_FIRESTORE_V1_FIRESTORE_NANOPB_H_INCLUDED
 #define PB_GOOGLE_FIRESTORE_V1_FIRESTORE_NANOPB_H_INCLUDED
@@ -513,7 +513,7 @@ extern const pb_field_t google_firestore_v1_ListCollectionIdsResponse_fields[3];
 /* google_firestore_v1_WriteResponse_size depends on runtime parameters */
 /* google_firestore_v1_ListenRequest_size depends on runtime parameters */
 /* google_firestore_v1_ListenRequest_LabelsEntry_size depends on runtime parameters */
-#define google_firestore_v1_ListenResponse_size  (0 + ((((google_firestore_v1_TargetChange_size > google_firestore_v1_DocumentChange_size ? google_firestore_v1_TargetChange_size : google_firestore_v1_DocumentChange_size) > google_firestore_v1_DocumentRemove_size ? (google_firestore_v1_TargetChange_size > google_firestore_v1_DocumentChange_size ? google_firestore_v1_TargetChange_size : google_firestore_v1_DocumentChange_size) : google_firestore_v1_DocumentRemove_size) > google_firestore_v1_DocumentDelete_size ? ((google_firestore_v1_TargetChange_size > google_firestore_v1_DocumentChange_size ? google_firestore_v1_TargetChange_size : google_firestore_v1_DocumentChange_size) > google_firestore_v1_DocumentRemove_size ? (google_firestore_v1_TargetChange_size > google_firestore_v1_DocumentChange_size ? google_firestore_v1_TargetChange_size : google_firestore_v1_DocumentChange_size) : google_firestore_v1_DocumentRemove_size) : google_firestore_v1_DocumentDelete_size) > 24 ? (((google_firestore_v1_TargetChange_size > google_firestore_v1_DocumentChange_size ? google_firestore_v1_TargetChange_size : google_firestore_v1_DocumentChange_size) > google_firestore_v1_DocumentRemove_size ? (google_firestore_v1_TargetChange_size > google_firestore_v1_DocumentChange_size ? google_firestore_v1_TargetChange_size : google_firestore_v1_DocumentChange_size) : google_firestore_v1_DocumentRemove_size) > google_firestore_v1_DocumentDelete_size ? ((google_firestore_v1_TargetChange_size > google_firestore_v1_DocumentChange_size ? google_firestore_v1_TargetChange_size : google_firestore_v1_DocumentChange_size) > google_firestore_v1_DocumentRemove_size ? (google_firestore_v1_TargetChange_size > google_firestore_v1_DocumentChange_size ? google_firestore_v1_TargetChange_size : google_firestore_v1_DocumentChange_size) : google_firestore_v1_DocumentRemove_size) : google_firestore_v1_DocumentDelete_size) : 24))
+/* google_firestore_v1_ListenResponse_size depends on runtime parameters */
 /* google_firestore_v1_Target_size depends on runtime parameters */
 /* google_firestore_v1_Target_DocumentsTarget_size depends on runtime parameters */
 /* google_firestore_v1_Target_QueryTarget_size depends on runtime parameters */

+ 1 - 1
Firestore/Protos/nanopb/google/firestore/v1/query.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "query.nanopb.h"
 

+ 5 - 5
Firestore/Protos/nanopb/google/firestore/v1/query.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_FIRESTORE_V1_QUERY_NANOPB_H_INCLUDED
 #define PB_GOOGLE_FIRESTORE_V1_QUERY_NANOPB_H_INCLUDED
@@ -221,11 +221,11 @@ extern const pb_field_t google_firestore_v1_Cursor_fields[3];
 /* Maximum encoded size of messages (where known) */
 /* google_firestore_v1_StructuredQuery_size depends on runtime parameters */
 /* google_firestore_v1_StructuredQuery_CollectionSelector_size depends on runtime parameters */
-#define google_firestore_v1_StructuredQuery_Filter_size (0 + (((google_firestore_v1_StructuredQuery_UnaryFilter_size > google_firestore_v1_StructuredQuery_CompositeFilter_size ? google_firestore_v1_StructuredQuery_UnaryFilter_size : google_firestore_v1_StructuredQuery_CompositeFilter_size) > google_firestore_v1_StructuredQuery_FieldFilter_size ? (google_firestore_v1_StructuredQuery_UnaryFilter_size > google_firestore_v1_StructuredQuery_CompositeFilter_size ? google_firestore_v1_StructuredQuery_UnaryFilter_size : google_firestore_v1_StructuredQuery_CompositeFilter_size) : google_firestore_v1_StructuredQuery_FieldFilter_size) > 0 ? ((google_firestore_v1_StructuredQuery_UnaryFilter_size > google_firestore_v1_StructuredQuery_CompositeFilter_size ? google_firestore_v1_StructuredQuery_UnaryFilter_size : google_firestore_v1_StructuredQuery_CompositeFilter_size) > google_firestore_v1_StructuredQuery_FieldFilter_size ? (google_firestore_v1_StructuredQuery_UnaryFilter_size > google_firestore_v1_StructuredQuery_CompositeFilter_size ? google_firestore_v1_StructuredQuery_UnaryFilter_size : google_firestore_v1_StructuredQuery_CompositeFilter_size) : google_firestore_v1_StructuredQuery_FieldFilter_size) : 0))
+/* google_firestore_v1_StructuredQuery_Filter_size depends on runtime parameters */
 /* google_firestore_v1_StructuredQuery_CompositeFilter_size depends on runtime parameters */
-#define google_firestore_v1_StructuredQuery_FieldFilter_size (14 + google_firestore_v1_StructuredQuery_FieldReference_size + google_firestore_v1_Value_size)
-#define google_firestore_v1_StructuredQuery_UnaryFilter_size (2 + (google_firestore_v1_StructuredQuery_FieldReference_size > 0 ? google_firestore_v1_StructuredQuery_FieldReference_size : 0))
-#define google_firestore_v1_StructuredQuery_Order_size (8 + google_firestore_v1_StructuredQuery_FieldReference_size)
+/* google_firestore_v1_StructuredQuery_FieldFilter_size depends on runtime parameters */
+/* google_firestore_v1_StructuredQuery_UnaryFilter_size depends on runtime parameters */
+/* google_firestore_v1_StructuredQuery_Order_size depends on runtime parameters */
 /* google_firestore_v1_StructuredQuery_FieldReference_size depends on runtime parameters */
 /* google_firestore_v1_StructuredQuery_Projection_size depends on runtime parameters */
 /* google_firestore_v1_Cursor_size depends on runtime parameters */

+ 1 - 1
Firestore/Protos/nanopb/google/firestore/v1/write.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "write.nanopb.h"
 

+ 1 - 1
Firestore/Protos/nanopb/google/firestore/v1/write.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_FIRESTORE_V1_WRITE_NANOPB_H_INCLUDED
 #define PB_GOOGLE_FIRESTORE_V1_WRITE_NANOPB_H_INCLUDED

+ 1 - 1
Firestore/Protos/nanopb/google/protobuf/any.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "any.nanopb.h"
 

+ 1 - 1
Firestore/Protos/nanopb/google/protobuf/any.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_PROTOBUF_ANY_NANOPB_H_INCLUDED
 #define PB_GOOGLE_PROTOBUF_ANY_NANOPB_H_INCLUDED

+ 1 - 1
Firestore/Protos/nanopb/google/protobuf/empty.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "empty.nanopb.h"
 

+ 1 - 1
Firestore/Protos/nanopb/google/protobuf/empty.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_PROTOBUF_EMPTY_NANOPB_H_INCLUDED
 #define PB_GOOGLE_PROTOBUF_EMPTY_NANOPB_H_INCLUDED

+ 1 - 1
Firestore/Protos/nanopb/google/protobuf/struct.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "struct.nanopb.h"
 

+ 1 - 1
Firestore/Protos/nanopb/google/protobuf/struct.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_PROTOBUF_STRUCT_NANOPB_H_INCLUDED
 #define PB_GOOGLE_PROTOBUF_STRUCT_NANOPB_H_INCLUDED

+ 1 - 1
Firestore/Protos/nanopb/google/protobuf/timestamp.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "timestamp.nanopb.h"
 

+ 1 - 1
Firestore/Protos/nanopb/google/protobuf/timestamp.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_PROTOBUF_TIMESTAMP_NANOPB_H_INCLUDED
 #define PB_GOOGLE_PROTOBUF_TIMESTAMP_NANOPB_H_INCLUDED

+ 1 - 1
Firestore/Protos/nanopb/google/protobuf/wrappers.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "wrappers.nanopb.h"
 

+ 1 - 1
Firestore/Protos/nanopb/google/protobuf/wrappers.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_PROTOBUF_WRAPPERS_NANOPB_H_INCLUDED
 #define PB_GOOGLE_PROTOBUF_WRAPPERS_NANOPB_H_INCLUDED

+ 1 - 1
Firestore/Protos/nanopb/google/rpc/status.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "status.nanopb.h"
 

+ 1 - 1
Firestore/Protos/nanopb/google/rpc/status.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_RPC_STATUS_NANOPB_H_INCLUDED
 #define PB_GOOGLE_RPC_STATUS_NANOPB_H_INCLUDED

+ 1 - 1
Firestore/Protos/nanopb/google/type/latlng.nanopb.cc

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb constant definitions */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #include "latlng.nanopb.h"
 

+ 1 - 1
Firestore/Protos/nanopb/google/type/latlng.nanopb.h

@@ -15,7 +15,7 @@
  */
 
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.1 */
+/* Generated by nanopb-0.3.9.2 */
 
 #ifndef PB_GOOGLE_TYPE_LATLNG_NANOPB_H_INCLUDED
 #define PB_GOOGLE_TYPE_LATLNG_NANOPB_H_INCLUDED

+ 2 - 2
Firestore/core/src/firebase/firestore/local/CMakeLists.txt

@@ -34,7 +34,7 @@ if(HAVE_LEVELDB)
       leveldb_util.h
     DEPENDS
       # TODO(b/111328563) Force nanopb first to work around ODR violations
-      protobuf-nanopb
+      protobuf-nanopb-static
 
       LevelDB::LevelDB
       absl_strings
@@ -79,7 +79,7 @@ cc_library(
     remote_document_cache.h
   DEPENDS
     # TODO(b/111328563) Force nanopb first to work around ODR violations
-    protobuf-nanopb
+    protobuf-nanopb-static
 
     ${FIREBASE_FIRESTORE_LOCAL_PERSISTENCE}
     absl_strings

+ 1 - 1
Firestore/core/src/firebase/firestore/nanopb/CMakeLists.txt

@@ -23,7 +23,7 @@ cc_library(
     writer.cc
   DEPENDS
     # TODO(b/111328563) Force nanopb first to work around ODR violations
-    protobuf-nanopb
+    protobuf-nanopb-static
 
     firebase_firestore_util
     firebase_firestore_protos_nanopb

+ 1 - 1
Firestore/core/src/firebase/firestore/remote/CMakeLists.txt

@@ -100,7 +100,7 @@ cc_library(
 
   DEPENDS
     # TODO(b/111328563) Force nanopb first to work around ODR violations
-    protobuf-nanopb
+    protobuf-nanopb-static
 
     firebase_firestore_model
     firebase_firestore_nanopb

+ 4 - 2
cmake/external/nanopb.cmake

@@ -19,12 +19,14 @@ if(TARGET nanopb)
   return()
 endif()
 
+set(version 0.3.9.2)
+
 ExternalProject_Add(
   nanopb
 
   DOWNLOAD_DIR ${FIREBASE_DOWNLOAD_DIR}
-  URL https://github.com/nanopb/nanopb/archive/nanopb-0.3.9.1.tar.gz
-  URL_HASH SHA256=67460d0c0ad331ef4d5369ad337056d0cd2f900c94887628d287eb56c69324bc
+  URL https://github.com/nanopb/nanopb/archive/nanopb-${version}.tar.gz
+  URL_HASH SHA256=9a5a67e5be384803c9d09ffd4fc04d9a1a9fad10d4e30390134cea216e958251
 
   PREFIX ${PROJECT_BINARY_DIR}