rsgowman a335d78a62 Only add nanopb proto headers to the -I path when depending on the nanopb protos. (#982) 8 лет назад
..
FrameworkMaker.xcodeproj 5f5f808258 Keep track of number of queries in the query cache (#776) 8 лет назад
nanopb fe19fca0e5 Serialize and deserialize null (#783) 8 лет назад
objc 5f5f808258 Keep track of number of queries in the query cache (#776) 8 лет назад
protos fe19fca0e5 Serialize and deserialize null (#783) 8 лет назад
CMakeLists.txt a335d78a62 Only add nanopb proto headers to the -I path when depending on the nanopb protos. (#982) 8 лет назад
Podfile bde743ed25 Release 4.3.0 (#327) 8 лет назад
README.md 11d28d80ff Add instructions for building nanopb protos 8 лет назад
build-protos.sh fd0b332f46 Downgrade nanopb from 0.4.0-dev to 0.3.8. 8 лет назад
strip-registry.py bde743ed25 Release 4.3.0 (#327) 8 лет назад

README.md

Usage

First, build protobuf and nanopb

cd firebase-ios-sdk
mkdir -p build
cd build
cmake ..
make -j protobuf nanopb

Next, build the protos:

cd firebase-ios-sdk/Firestore/Protos
./build-protos.sh

Verify diffs, tests and make PR

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