caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

30 lines
1015 B
TypeScript

import ReactNativeAsyncStorage from '@react-native-async-storage/async-storage'
import { CONFIGS } from 'common/envs/constants'
import { log } from 'components/logger'
import Constants from 'expo-constants'
import * as Notifications from 'expo-notifications'
import { getApp, getApps, initializeApp } from 'firebase/app'
import { getReactNativePersistence, initializeAuth } from 'firebase/auth'
export const ENV =
Constants.expoConfig?.extra?.eas.NEXT_PUBLIC_FIREBASE_ENV ?? 'PROD'
export const app = getApps().length
? getApp()
: initializeApp(CONFIGS[ENV].firebaseConfig)
export const auth = initializeAuth(app, {
persistence: getReactNativePersistence(ReactNativeAsyncStorage),
})
Notifications.setNotificationHandler({
handleNotification: async () => ({
shouldShowAlert: true,
shouldPlaySound: false,
shouldSetBadge: false,
shouldShowBanner: true,
shouldShowList: true,
}),
})
log('using', ENV, 'env')
log('env not switching? run `npx expo start --clear` and then try again')