@umituz/react-native-firebase 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-firebase",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "Unified Firebase package for React Native apps - Centralized initialization and core services (Analytics, Crashlytics).",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -60,26 +60,6 @@ export class AnalyticsInitializerService {
60
60
  return null;
61
61
  }
62
62
 
63
- // Try to get Firebase App instance to check if it's initialized
64
- try {
65
- // eslint-disable-next-line @typescript-eslint/no-require-imports
66
- const { getApp } = require('@react-native-firebase/app');
67
- getApp();
68
- } catch (appError: any) {
69
- /* eslint-disable-next-line no-console */
70
- if (__DEV__) {
71
- const errorMessage = appError?.message || String(appError);
72
- if (errorMessage.includes('No Firebase App') || errorMessage.includes('has been created')) {
73
- console.warn(
74
- '⚠️ Firebase Analytics: Firebase App not initialized. Please add GoogleService-Info.plist to ios/ directory and rebuild the app.',
75
- );
76
- } else {
77
- console.warn('⚠️ Firebase Analytics: Firebase App check failed', appError);
78
- }
79
- }
80
- return null;
81
- }
82
-
83
63
  const instance = nativeAnalyticsAdapter.getAnalytics();
84
64
  if (!instance) {
85
65
  /* eslint-disable-next-line no-console */