Konstantin Varlamov 41020e6d78 Bump the nanopb version to 0.3.9.8 (#7789) преди 5 години
..
FrameworkMaker.xcodeproj 145c111d1a Minimum osx to 10.11 (#2680) преди 7 години
cpp fbdca9590a Release Firestore bundles (#7717) преди 5 години
lib d0686d2f63 C++ migration: implement pretty-printing of Nanopb-generated messages (#4184) преди 6 години
nanopb 41020e6d78 Bump the nanopb version to 0.3.9.8 (#7789) преди 5 години
protos fbdca9590a Release Firestore bundles (#7717) преди 5 години
CMakeLists.txt fbdca9590a Release Firestore bundles (#7717) преди 5 години
Podfile bde743ed25 Release 4.3.0 (#327) преди 8 години
README.md 3d573f9714 Update Firestore sources for nanopb 0.3.9.5 (#5481) преди 6 години
build_protos.py fbdca9590a Release Firestore bundles (#7717) преди 5 години
nanopb_cpp_generator.py 7a58eba2e5 Remove `firebase/firestore` from paths in Firestore/core (#5374) преди 6 години

README.md

Usage

First, make sure you have necessary prereqs for building:

brew install automake libtool protobuf golang

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.*.