Quickstart-unity: Could you please provide gitignore that would be fit for unity that use firebase?

Created on 16 Jan 2020  路  12Comments  路  Source: firebase/quickstart-unity

I'm not so sure but it seem like some file and folder come from resolver and so it should excluded from git, but then I haven't seen (if there is) any official verdict about what should be ignore and whatnot. Some is confused such as m2repository

Can you please add default .gitignore it into this repo?

core needs-info stale question

Most helpful comment

Thanks for the clarification. I've filed an internal feature request regarding this. I'm not able to provide any timelines for this, so I'll leave this open.

All 12 comments

This issue does not seem to follow the issue template. Make sure you provide all the required information.

Hi @Thaina You'd want to include files such as autogenerated files, cache directories, and builds in your gitignore. You may refer to the guide here.

@paulinon My point is, currently now firebase and some other library relate to android also made some auto generated file more than the base ignore that guide provided. I don't know which could be ignore and which auto generated but still require anyway

I think if firebase library know which file are auto generated by itself, firebase repo should list that so we could extend the gitignore file too

Thanks for the clarification. I've filed an internal feature request regarding this. I'm not able to provide any timelines for this, so I'll leave this open.

@paulinon As of now I wish to know first, should we ignore crashlytics build id and version xml file? Also can we ignore aar and other file in m2repository ?

@paulinon As of now I wish to know first, should we ignore crashlytics build id and version xml file? Also can we ignore aar and other file in m2repository ?

I'm having the same question.

any solution?

If you are using the latest version of Firebase (6.15.2 for example), here are a list of file you can ignore in Assets folder

# This may be different if it is changed in Android Resolver settings
Assets/GeneratedLocalRepo/

Assets/StreamingAssets/google-services-desktop.json
Assets/Plugins/Android/Firebase/

# Use the following one ONLY IF all aar files here are generated by Android Resolver.  Note that some Unity plugins does import libraries under this folder
# Assets/Plugins/Android/*.aar

Please do not ignore Assets/Firebase/m2repository

Hope this answer the question!


Hey @Thaina. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

Thanks @chkuang-g

If you are using the latest version of Firebase (6.15.2 for example), here are a list of file you can ignore in Assets folder

# This may be different if it is changed in Android Resolver settings
Assets/GeneratedLocalRepo/

Assets/StreamingAssets/google-services-desktop.json
Assets/Plugin/Android/Firebase/

# Use the following one ONLY IF all aar files here are generated by Android Resolver.  Note that some Unity plugins does import libraries under this folder
# Assets/Plugin/Android/*.aar

Please do not ignore Assets/Firebase/m2repository

Hope this answer the question!

I think Assets/Plugin/ should be Assets/Plugins/

My bad. Edited :)


Hey @Thaina. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

Was this page helpful?
0 / 5 - 0 ratings