Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emulator support alpha #240

Merged
merged 8 commits into from
Oct 4, 2021
Merged

Emulator support alpha #240

merged 8 commits into from
Oct 4, 2021

Conversation

fenix-hub
Copy link
Collaborator

@fenix-hub fenix-hub commented Sep 30, 2021

Pretty big PR here.

Firebase Emulators?

+ additions:
This adds full support for Firebase Emulators, giving the ability to test locally all the modules provided by our plugin.
To start the emulated environment, call the function Firebase.set_emulated(true) or check the export variable emulating in addons/godot-firebase/firebase/firebase.tscn.
If the plugin has not been configured yet, several error messages will be printed to tell you what to do.
godot windows opt tools 64_ApJeqsbwWa
The ".env" file will now hold an additional section to store the ports related to your emulators:
firefox_9w3oLhwlrO

notepad++_Wm4NRQRDe7

Once configured, if you are in emulated environment our library will directly communicate with your emulators with no additional configurations required.
You can switch back to not emulated just calling the function Firebase.set_emulated(false) in your code, or stopping your project and setting back the export variable emulating to false.

! breaking changes:
functionsBaseUrl field in your ".env" file has now been replaced with functionGeoZone
notepad++_S741bhSXjy
GeoZone (or Region) is the place where your functions are stored. If you already had that setting configured, just copy-paste the first fragment of the baseUrl (the one that contains the region) and paste it inside the functionsBaseUrl field.
Otherwise you can find it in your functions in Firebase
6FRNuZbAfS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants