@@ -6,11 +6,12 @@ the SDK, targeting desktop/Android/iOS.
6
6
# Prerequisites
7
7
8
8
Building 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.
10
11
11
12
On 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.
14
15
15
16
# Building Firestore Unity SDK
16
17
@@ -33,6 +34,11 @@ python scripts/build_scripts/build_zips.py -platform=android -targets=auth -targ
33
34
# Building for iOS. Incremental build for iOS is broken, so we use clean_build here.
34
35
python scripts/build_scripts/build_zips.py -platform=android -targets=auth -targets=firestore -use_boringssl -clean_build
35
36
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/
[email protected] python scripts/build_scripts/build_zips.py -platform=macos -targets=auth -targets=firestore
40
+
41
+
36
42
# Other supported platforms are tvos,linux,windows
37
43
```
38
44
@@ -63,11 +69,12 @@ able to run this scene which in turn runs all integration tests for Firestore.
63
69
64
70
# Running Firestore Android TestApp
65
71
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.
68
75
69
76
You 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`.
71
78
72
79
To run the Android testapp, go to ` File->Build Settings ` , select ` Android ` then click ` Switch Platform ` . After
73
80
assets are loaded, click ` Build and Run ` .
0 commit comments