@@ -6,11 +6,12 @@ the SDK, targeting desktop/Android/iOS.
66# Prerequisites
77
88Building the Unity SDK requires building the underlying C++ SDK. Refer to
9- [ ] [ this doc ] for what the prerequisites are.
9+ [ https://github.com/firebase/firebase-cpp-sdk#prerequisites ] [ this doc ] for
10+ what the prerequisites are.
1011
1112On top of above, you also need Unity installed (obviously). If you use an
12- apple silicon machine as host, be sure to install the right version of
13- Unity!
13+ apple silicon machine as host, be sure to install Unity for Apple Silicon,
14+ otherwise Unity will report missing binaries when you try to run the Testapp.
1415
1516# Building Firestore Unity SDK
1617
@@ -33,6 +34,11 @@ python scripts/build_scripts/build_zips.py -platform=android -targets=auth -targ
3334# Building for iOS. Incremental build for iOS is broken, so we use clean_build here.
3435python scripts/build_scripts/build_zips.py -platform=android -targets=auth -targets=firestore -use_boringssl -clean_build
3536
37+ # Build with OPENSSL: above use boringssl by default, which could add to build time, you can
38+ # use a binary OPENSSL if you want to, by specifying the location with a ENV Variable.
39+ OPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@1.1 python scripts/build_scripts/build_zips.py -platform=macos -targets=auth -targets=firestore
40+
41+
3642# Other supported platforms are tvos,linux,windows
3743```
3844
@@ -63,11 +69,12 @@ able to run this scene which in turn runs all integration tests for Firestore.
6369
6470# Running Firestore Android TestApp
6571
66- You * probably* need to use ` IL2CPP ` as scripting backend instead of ` Mono ` for Android. To do this,
67- you can go to ` Edit->Project Setting->Player->Android->Scripting Backend ` and select ` IL2CPP ` .
72+ * Apple Silicon Unity user* : you need to use ` IL2CPP ` as scripting backend instead of ` Mono ` for Android, otherwise you
73+ cannot target for ` ARM64 ` . To do this, you can go to
74+ ` Edit->Project Setting->Player->Android->Scripting Backend ` and select ` IL2CPP ` , and also select ` Arm64 ` as target.
6875
6976You also need to turn on ` minification ` under on the same setting page, by turning on ` R8 ` under `publish
70- settings`.
77+ settings` . Otherwise you could see build error from task ` minifyDebugWithProguard`.
7178
7279To run the Android testapp, go to ` File->Build Settings ` , select ` Android ` then click ` Switch Platform ` . After
7380assets are loaded, click ` Build and Run ` .
0 commit comments