@r3l/app
Version:
31 lines (26 loc) • 1.29 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Analytics = void 0;
var analytics;
if (process.env.WEB !== 'true') {
analytics = require('@react-native-firebase/analytics').default();
} else if (process.env.BROWSER) {
var _window, _window$firebase, _window2, _window2$firebase;
var firebaseConfig = {
apiKey: 'AIzaSyB9dsHceZMabRuEJSfFww63LHTHRa6ZT3k',
authDomain: 'relevant-analytics-ca794.firebaseapp.com',
databaseURL: 'https://relevant-analytics-ca794.firebaseio.com',
projectId: 'relevant-analytics-ca794',
storageBucket: 'relevant-analytics-ca794.appspot.com',
messagingSenderId: '271994332492',
appId: '1:271994332492:web:01bc8c4df595c53aabdbe9',
measurementId: 'G-2LEKXXY11Y'
}; // Initialize Firebase
(_window = window) === null || _window === void 0 ? void 0 : (_window$firebase = _window.firebase) === null || _window$firebase === void 0 ? void 0 : _window$firebase.initializeApp(firebaseConfig);
analytics = (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$firebase = _window2.firebase) === null || _window2$firebase === void 0 ? void 0 : _window2$firebase.analytics();
}
var Analytics = analytics;
exports.Analytics = Analytics;
//# sourceMappingURL=analytics.js.map