Gil 53d3ca199a CMake: Upgrade nanopb to 0.3.9.2 (#2985) 6 lat temu
..
FrameworkMaker.xcodeproj 145c111d1a Minimum osx to 10.11 (#2680) 7 lat temu
cpp 6af931d4e8 Migrate Firestore to the v1 protocol (#2200) 7 lat temu
nanopb 53d3ca199a CMake: Upgrade nanopb to 0.3.9.2 (#2985) 6 lat temu
objc 6af931d4e8 Migrate Firestore to the v1 protocol (#2200) 7 lat temu
protos 6af931d4e8 Migrate Firestore to the v1 protocol (#2200) 7 lat temu
CMakeLists.txt 53d3ca199a CMake: Upgrade nanopb to 0.3.9.2 (#2985) 6 lat temu
Podfile bde743ed25 Release 4.3.0 (#327) 8 lat temu
README.md f98239755a Fix building of objc protos (#1858) 7 lat temu
build_protos.py 8b1efabd82 gRPC: replace Objective-C implementation with the new C++ implementation (#2068) 7 lat temu
nanopb_cpp_generator.py e3531eb3c8 Always use the bytes type in nanopb instead of string (#1790) 7 lat temu

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
mkdir -p build
cd build
cmake ..
make -j generate_protos

Verify diffs, make sure tests still pass, and create a 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.*.