Set up ios
This commit is contained in:
+4
-1
@@ -68,7 +68,7 @@ import {NuxDialogs} from '#/components/dialogs/nuxs'
|
|||||||
import {useStarterPackEntry} from '#/components/hooks/useStarterPackEntry'
|
import {useStarterPackEntry} from '#/components/hooks/useStarterPackEntry'
|
||||||
import {Provider as IntentDialogProvider} from '#/components/intents/IntentDialogs'
|
import {Provider as IntentDialogProvider} from '#/components/intents/IntentDialogs'
|
||||||
import {Provider as PortalProvider} from '#/components/Portal'
|
import {Provider as PortalProvider} from '#/components/Portal'
|
||||||
import {RC_GOOGLE_PUBLIC_KEY} from '#/env'
|
import {RC_APPLE_PUBLIC_KEY,RC_GOOGLE_PUBLIC_KEY} from '#/env'
|
||||||
import {Splash} from '#/Splash'
|
import {Splash} from '#/Splash'
|
||||||
import {BottomSheetProvider} from '../modules/bottom-sheet'
|
import {BottomSheetProvider} from '../modules/bottom-sheet'
|
||||||
import {BackgroundNotificationPreferencesProvider} from '../modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider'
|
import {BackgroundNotificationPreferencesProvider} from '../modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider'
|
||||||
@@ -177,7 +177,10 @@ function App() {
|
|||||||
setReady(true),
|
setReady(true),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Purchases.setLogLevel(Purchases.LOG_LEVEL.DEBUG)
|
||||||
|
|
||||||
if (isIOS) {
|
if (isIOS) {
|
||||||
|
Purchases.configure({apiKey: RC_APPLE_PUBLIC_KEY})
|
||||||
} else if (isAndroid) {
|
} else if (isAndroid) {
|
||||||
Purchases.configure({apiKey: RC_GOOGLE_PUBLIC_KEY})
|
Purchases.configure({apiKey: RC_GOOGLE_PUBLIC_KEY})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,5 +10,7 @@ export const LOG_LEVEL = (process.env.EXPO_PUBLIC_LOG_LEVEL || 'info') as
|
|||||||
|
|
||||||
export const RC_GOOGLE_PUBLIC_KEY =
|
export const RC_GOOGLE_PUBLIC_KEY =
|
||||||
process.env.EXPO_PUBLIC_RC_GOOGLE_PUBLIC_KEY || ''
|
process.env.EXPO_PUBLIC_RC_GOOGLE_PUBLIC_KEY || ''
|
||||||
|
export const RC_APPLE_PUBLIC_KEY =
|
||||||
|
process.env.EXPO_PUBLIC_RC_APPLE_PUBLIC_KEY || ''
|
||||||
export const BSKY_PURCHASES_API =
|
export const BSKY_PURCHASES_API =
|
||||||
process.env.EXPO_PUBLIC_BSKY_PURCHASES_API || ''
|
process.env.EXPO_PUBLIC_BSKY_PURCHASES_API || ''
|
||||||
|
|||||||
Reference in New Issue
Block a user