Skip to content

Commit d9dd4ef

Browse files
Googlercynthiajiang
authored andcommitted
Initial import of the Firebase Unity SDK - 386488574 make sure README.md files also excluded from root folder by cynthiajiang <[email protected]>
- 386483559 Extra files to exclude for firestore by cynthiajiang <[email protected]> - 386365786 Fix the README file full name to make sure it's excluded by cynthiajiang <[email protected]> - 386315918 Add firestore to unity opensource by cynthiajiang <[email protected]> - 385802205 [Unity OS][Firestore] Fix the using of static class in ne... by cynthiajiang <[email protected]> - 385571406 Update the error messages tested in TestWriteBatches, Tes... by Googler <[email protected]> PiperOrigin-RevId: 386488574
1 parent 38ecefe commit d9dd4ef

File tree

185 files changed

+41292
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+41292
-10
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ option(FIREBASE_INCLUDE_DATABASE
4040
"Include the Firebase Realtime Database library." ON)
4141
option(FIREBASE_INCLUDE_DYNAMIC_LINKS
4242
"Include the Firebase Dynamic Links library." ON)
43+
option(FIREBASE_INCLUDE_FIRESTORE
44+
"Include the Firebase Firestore library." ON)
4345
option(FIREBASE_INCLUDE_FUNCTIONS
4446
"Include the Cloud Functions for Firebase library." ON)
4547
option(FIREBASE_INCLUDE_MESSAGING
@@ -224,6 +226,11 @@ if (FIREBASE_INCLUDE_DYNAMIC_LINKS)
224226
list(APPEND TARGET_LINK_LIB_NAMES "firebase_dynamic_links" "firebase_dynamic_links_swig")
225227
list(APPEND PROJECT_LIST_HEADER " X(DynamicLinks)")
226228
endif()
229+
if (FIREBASE_INCLUDE_FIRESTORE)
230+
add_subdirectory(firestore)
231+
list(APPEND TARGET_LINK_LIB_NAMES "firebase_firestore" "firebase_firestore_swig")
232+
list(APPEND PROJECT_LIST_HEADER " X(Firestore)")
233+
endif()
227234
if (FIREBASE_INCLUDE_FUNCTIONS)
228235
add_subdirectory(functions)
229236
list(APPEND TARGET_LINK_LIB_NAMES "firebase_functions" "firebase_functions_swig")

analytics/src/swig/analytics.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
%rename(kParameterItemLocationId) firebase::analytics::kParameterItemLocationID;
5353
%rename(kParameterTransactionId) firebase::analytics::kParameterTransactionID;
5454

55-
%import "app/src/swig/app.i"
55+
%import "app/src/swig/app.SWIG"
5656
%include "app/src/swig/null_check_this.i"
5757
%include "app/src/swig/serial_dispose.i"
5858
%include "firebase/analytics/event_names.h"

auth/src/swig/auth.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
#include <assert.h>
5757
%}
5858

59-
%import "app/src/swig/app.i"
59+
%import "app/src/swig/app.SWIG"
6060
%include "app/src/swig/null_check_this.i"
6161
%include "app/src/swig/serial_dispose.i"
6262
%include "stdint.i"

crashlytics/src/swig/crashlytics.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
%include "std_vector.i"
1919

20-
%import "app/src/swig/app.i"
20+
%import "app/src/swig/app.SWIG"
2121
%include "app/src/swig/null_check_this.i"
2222
%include "app/src/swig/init_result.i"
2323
%include "app/src/swig/serial_dispose.i"

database/src/swig/database.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
%pragma(csharp) moduleclassmodifiers="internal sealed class"
1818
%feature("flatnested");
1919

20-
%import "app/src/swig/app.i"
20+
%import "app/src/swig/app.SWIG"
2121
%include "app/src/swig/future.i"
2222
%include "app/src/swig/init_result.i"
2323
%include "app/src/swig/null_check_this.i"

docs/firestore/FirestoreReadme.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
Get Started with Cloud Firestore for Firebase
2+
=============================================
3+
4+
Thank you for installing the Unity Cloud Firestore for Firebase SDK. The
5+
[Firestore guide](https://firebase.google.com/products/firestore/)
6+
provides instructions to configure a Unity project.
7+
8+
# Overview
9+
10+
You can use
11+
[Cloud Firestore](https://firebase.google.com/docs/firestore/quickstart)
12+
to store and sync data for client- and server-side development.
13+
14+
Cloud Firestore is a flexible, scalable database for mobile, web, and
15+
server development from Firebase and Google Cloud Platform. Like Firebase
16+
Realtime Database, it keeps your data in sync across client apps through
17+
realtime listeners and offers offline support for mobile and web so you can
18+
build responsive apps that work regardless of network latency or Internet
19+
connectivity. Cloud Firestore also offers seamless integration with other
20+
Firebase and Google Cloud Platform products, including Cloud Functions.
21+
22+
# Using the Sample
23+
24+
This SDK is distributed with a sample project under the
25+
`Assets/Firebase/Sample/Firestore` directory. To configure and run the sample,
26+
follow the instructions in `Assets/Firebase/Sample/Firestore/readme.md`.
27+
28+
# Demos
29+
30+
[Mecha Hamster](https://github.com/google/mechahamster) is provided as a demo
31+
which showcases the integration of multiple Firebase features within a single
32+
game. The source is available on
33+
[GitHub](https://github.com/google/mechahamster), and the live application
34+
is available for iOS on the
35+
[App Store](https://itunes.apple.com/us/app/mechahamster/id1286046770?mt=8&ign-mpt=uo%3D4)
36+
and for Android on the
37+
(Google Play Store)[https://play.google.com/store/apps/details?id=com.google.fpl.mechahamster&hl=en].
38+
39+
# Links
40+
41+
* [Homepage](https://firebase.google.com/games/)
42+
* [Contact](https://firebase.google.com/support/contact/)
43+
* [Unity Quickstart Samples](https://github.com/firebase/quickstart-unity)
44+
45+
# Discussion
46+
47+
* [Stack overflow](https://stackoverflow.com/questions/tagged/firebase)
48+
* [Slack community](https://firebase-community.slack.com/)
49+
* [Google groups](https://groups.google.com/forum/#!forum/firebase-talk)

docs/firestore/Firestore_icon.png

8.24 KB
Loading

docs/firestore/Firestore_large.png

30.9 KB
Loading

docs/firestore/Firestore_small.png

5.59 KB
Loading

dynamic_links/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://goto/firebase-dynamic-links-cpp

0 commit comments

Comments
 (0)