cherylEnkidu 584a72661b Update copy right year suto generated by script (#15298) 6 月之前
..
FrameworkMaker.xcodeproj a0fd16d383 [Infra] Bump podspec min. versions (#15015) 9 月之前
cpp 584a72661b Update copy right year suto generated by script (#15298) 6 月之前
lib 34b729d3ed Fix name collision with "result" in pretty printing logic in generated proto code. (#10169) 3 年之前
nanopb 584a72661b Update copy right year suto generated by script (#15298) 6 月之前
protos d7894f660c docs: fix `bidirectional` (#15084) 8 月之前
CMakeLists.txt 3f5972f920 Firestore: Optimize local cache sync when resuming a query that had docs deleted (#11457) 2 年之前
Podfile a0fd16d383 [Infra] Bump podspec min. versions (#15015) 9 月之前
README.md 29a737f882 Review Firestore Protos (#13380) 1 年之前
build_protos.py bffb108542 Fix cmake build for macOS 12.3 where `python` no longer exists. (#9477) 4 年之前
nanopb_cpp_generator.py a7ab2ca184 the the typos (#9726) 3 年之前

README.md

Usage

First, make sure you have necessary prereqs for building:

brew install automake libtool protobuf golang cmake

Take a nap while that completes. Then, build the protos:

cd firebase-ios-sdk  # the root of this repo, not Firestore/Protos
mkdir -p build
cd build
cmake ..
make -j generate_protos

Verify diffs, make sure tests still pass, and create a PR.

Updating to a new nanopb version:

Script Details

Get the protoc and the gRPC plugin. See here. The easiest way I found was to add pod '!ProtoCompiler-gRPCPlugin' to a Podfile and do pod update.

After running the protoc, shell commands run to fix up the generated code:

  • Flatten import paths for CocoaPods library build.
  • Remove unneeded extensionRegistry functions.
  • Remove non-buildable code from Annotations.pbobjc.*.