firebase / firebase/quickstart-unity
Initialization of the static member of FirebaseAnalytics(Unity)
- Dominant language
- C#
- Stars
- 923
- Forks
- 456
- PR merge metrics
- No merged PRs in 30d
Description
we find this:

But I think we should use lazy initialization here, like this:

why do i report this issue:
we hava a analytics wrapper for FirebaseAnalytics, and there is a static map here:

but when we use the public static member of FirebaseAnalytics, it constructs a FirebaseApp first, which is not expected, due to the static member FirebaseAnalytics.app
(As you say, we must check dependencies first, then construct the app~)
Contributor guide
Assessment
This issue has not been assessed yet.