Defer FirebaseAnalytics initialization to constructor to avoid crashes on unsupported platforms (notably Linux). Replace class-level initialization with nullable field and guarded calls. Changes: - remove class-level initialization of _analytics - add private _init() invoked in constructor - make _analytics nullable - add null checks in logEvent() and setUserId() - emit warning instead of throwing - Linux builds no longer crash on startup Signed-off-by: Texas0295 <kimura@texas0295.top>
13 KiB
13 KiB