firebase / quickstart-unity

Firebase Quickstart Samples for Unity
https://firebase.google.com/games
Apache License 2.0
835 stars 433 forks source link

[Question] CI best practices #1195

Closed MephestoKhaan closed 2 years ago

MephestoKhaan commented 2 years ago

[REQUIRED] Please fill in the following fields:

[REQUIRED] Please describe the question here:

Creating a Oculus Quest project with Firebase (specially interested in Auth, Firestore, Analytics & Crashlytics. The project will be built in a MAc machine using Jenkins and it is stored in Github. I already saw that the way forward for me was to use .tgz as the .unitypackage had some massive files that won't go into the GitHub repo. My question is: Can I ignore everything generated by the "Resolver" and REplicate it somewhoe in the Jenkins machine when doing a build, really want to keep the repo as clean as possible but I am not sure about the best practice here.

PS: Also having problems since I don't have iOS support installed and it complains in some dlls, but that is a different story

google-oss-bot commented 2 years ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

paulinon commented 2 years ago

Hi @MephestoKhaan,

For your implementation, I would recommend a process similar to the quickstart. Specifically, you exclude the Firebase SDK in your repository, and you only import this once you're in your Jenkins machine and you're about to build your app.

I'll be closing this for now. Let me know if an issue arises or if this solution isn't suitable for your use case.

a-maurice commented 2 years ago

For some additional info, you can look at https://github.com/firebase/firebase-unity-sdk/blob/main/scripts/gha/build_testapps.py which is the logic we are using to automate building Unity testapps, which requires installing the built unitypackages.