blob: fbede5b250c90c1bdb88128d98887a0bce0ec478 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
## Usage
First, make sure you have necessary prereqs for building:
```
brew install automake libtool protobuf
```
Take a nap while that completes. Then, 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 (you'll likely need to re-add copyright notices, etc.), make sure
tests still pass, and create a PR.
### Script Details
Get the protoc and the gRPC plugin. See
[here](https://github.com/grpc/grpc/tree/master/src/objective-c). 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.*.
|