Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pretty big PR here.
Firebase Emulators?
+ additions:
![godot windows opt tools 64_ApJeqsbwWa](https://user-images.githubusercontent.com/45271396/135503440-e87bf68b-99d5-47bb-b691-60143e5dff31.png)
![firefox_9w3oLhwlrO](https://user-images.githubusercontent.com/45271396/135503522-a44ee180-4dda-4f32-b2be-1c70d5a10cbb.png)
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 variableemulating
inaddons/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.
The ".env" file will now hold an additional section to store the ports related to your emulators:
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 variableemulating
to false.! breaking changes:
![notepad++_S741bhSXjy](https://user-images.githubusercontent.com/45271396/135504141-007407c2-abea-43d3-8f86-ed77e54d058d.png)
![6FRNuZbAfS](https://user-images.githubusercontent.com/45271396/135504457-2e69dd21-39ef-43d7-a54b-24148e2f855e.png)
functionsBaseUrl
field in your ".env" file has now been replaced withfunctionGeoZone
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