86 sentry on iOS
This commit is contained in:
@@ -85,16 +85,12 @@ jobs:
|
|||||||
echo "EXPO_PUBLIC_BUNDLE_IDENTIFIER=$(git rev-parse HEAD)" >> .env
|
echo "EXPO_PUBLIC_BUNDLE_IDENTIFIER=$(git rev-parse HEAD)" >> .env
|
||||||
echo "EXPO_PUBLIC_BUNDLE_IDENTIFIER=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
echo "EXPO_PUBLIC_BUNDLE_IDENTIFIER=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "EXPO_PUBLIC_BUNDLE_DATE=$(date -u +"%y%m%d%H")" >> .env
|
echo "EXPO_PUBLIC_BUNDLE_DATE=$(date -u +"%y%m%d%H")" >> .env
|
||||||
echo "EXPO_PUBLIC_SENTRY_DSN=${{ secrets.SENTRY_DSN }}" >> .env
|
|
||||||
echo "EXPO_PUBLIC_BITDRIFT_API_KEY=${{ secrets.BITDRIFT_API_KEY }}" >> .env
|
echo "EXPO_PUBLIC_BITDRIFT_API_KEY=${{ secrets.BITDRIFT_API_KEY }}" >> .env
|
||||||
echo "EXPO_PUBLIC_GCP_PROJECT_ID=${{ secrets.EXPO_PUBLIC_GCP_PROJECT_ID }}" >> .env
|
echo "EXPO_PUBLIC_GCP_PROJECT_ID=${{ secrets.EXPO_PUBLIC_GCP_PROJECT_ID }}" >> .env
|
||||||
echo "${{ secrets.GOOGLE_SERVICES_TOKEN }}" > google-services.json
|
echo "${{ secrets.GOOGLE_SERVICES_TOKEN }}" > google-services.json
|
||||||
|
|
||||||
- name: 🏗️ EAS Build
|
- name: 🏗️ EAS Build
|
||||||
run: >
|
run: >
|
||||||
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
|
|
||||||
SENTRY_RELEASE=${{ steps.env.outputs.EXPO_PUBLIC_RELEASE_VERSION }}
|
|
||||||
SENTRY_DIST=${{ steps.env.outputs.EXPO_PUBLIC_BUNDLE_IDENTIFIER }}
|
|
||||||
yarn use-build-number-with-bump
|
yarn use-build-number-with-bump
|
||||||
eas build -p ios
|
eas build -p ios
|
||||||
--profile ${{ inputs.profile || 'testflight' }}
|
--profile ${{ inputs.profile || 'testflight' }}
|
||||||
|
|||||||
@@ -28,8 +28,6 @@ module.exports = function (_config) {
|
|||||||
|
|
||||||
const UPDATES_ENABLED = IS_TESTFLIGHT || IS_PRODUCTION
|
const UPDATES_ENABLED = IS_TESTFLIGHT || IS_PRODUCTION
|
||||||
|
|
||||||
const USE_SENTRY = Boolean(process.env.SENTRY_AUTH_TOKEN)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
expo: {
|
expo: {
|
||||||
version: VERSION,
|
version: VERSION,
|
||||||
@@ -196,14 +194,6 @@ module.exports = function (_config) {
|
|||||||
'react-native-edge-to-edge',
|
'react-native-edge-to-edge',
|
||||||
{android: {enforceNavigationBarContrast: false}},
|
{android: {enforceNavigationBarContrast: false}},
|
||||||
],
|
],
|
||||||
USE_SENTRY && [
|
|
||||||
'@sentry/react-native/expo',
|
|
||||||
{
|
|
||||||
organization: 'blueskyweb',
|
|
||||||
project: 'app',
|
|
||||||
url: 'https://sentry.io',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
[
|
[
|
||||||
'expo-build-properties',
|
'expo-build-properties',
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
// Learn more https://docs.expo.io/guides/customizing-metro
|
// Learn more https://docs.expo.io/guides/customizing-metro
|
||||||
const {getSentryExpoConfig} = require('@sentry/react-native/metro')
|
const {getDefaultConfig} = require('expo/metro-config')
|
||||||
const cfg = getSentryExpoConfig(__dirname)
|
const cfg = getDefaultConfig(__dirname)
|
||||||
|
|
||||||
cfg.resolver.sourceExts = process.env.RN_SRC_EXT
|
cfg.resolver.sourceExts = process.env.RN_SRC_EXT
|
||||||
? process.env.RN_SRC_EXT.split(',').concat(cfg.resolver.sourceExts)
|
? process.env.RN_SRC_EXT.split(',').concat(cfg.resolver.sourceExts)
|
||||||
|
|||||||
+1
-3
@@ -1,4 +1,3 @@
|
|||||||
import '#/logger/sentry/setup'
|
|
||||||
import '#/logger/bitdrift/setup'
|
import '#/logger/bitdrift/setup'
|
||||||
import '#/view/icons'
|
import '#/view/icons'
|
||||||
|
|
||||||
@@ -13,7 +12,6 @@ import * as SplashScreen from 'expo-splash-screen'
|
|||||||
import * as SystemUI from 'expo-system-ui'
|
import * as SystemUI from 'expo-system-ui'
|
||||||
import {msg} from '@lingui/macro'
|
import {msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import * as Sentry from '@sentry/react-native'
|
|
||||||
|
|
||||||
import {KeyboardControllerProvider} from '#/lib/hooks/useEnableKeyboardController'
|
import {KeyboardControllerProvider} from '#/lib/hooks/useEnableKeyboardController'
|
||||||
import {Provider as HideBottomBarBorderProvider} from '#/lib/hooks/useHideBottomBarBorder'
|
import {Provider as HideBottomBarBorderProvider} from '#/lib/hooks/useHideBottomBarBorder'
|
||||||
@@ -251,4 +249,4 @@ function App() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Sentry.wrap(App)
|
export default App
|
||||||
|
|||||||
+1
-4
@@ -5,7 +5,6 @@ import {add} from '#/logger/logDump'
|
|||||||
import {type MetricEvents} from '#/logger/metrics'
|
import {type MetricEvents} from '#/logger/metrics'
|
||||||
import {bitdriftTransport} from '#/logger/transports/bitdrift'
|
import {bitdriftTransport} from '#/logger/transports/bitdrift'
|
||||||
import {consoleTransport} from '#/logger/transports/console'
|
import {consoleTransport} from '#/logger/transports/console'
|
||||||
import {sentryTransport} from '#/logger/transports/sentry'
|
|
||||||
import {
|
import {
|
||||||
LogContext,
|
LogContext,
|
||||||
LogLevel,
|
LogLevel,
|
||||||
@@ -19,9 +18,7 @@ import {ENV} from '#/env'
|
|||||||
const TRANSPORTS: Transport[] = (function configureTransports() {
|
const TRANSPORTS: Transport[] = (function configureTransports() {
|
||||||
switch (ENV) {
|
switch (ENV) {
|
||||||
case 'production': {
|
case 'production': {
|
||||||
return [sentryTransport, isNative && bitdriftTransport].filter(
|
return [isNative && bitdriftTransport].filter(Boolean) as Transport[]
|
||||||
Boolean,
|
|
||||||
) as Transport[]
|
|
||||||
}
|
}
|
||||||
case 'test': {
|
case 'test': {
|
||||||
return []
|
return []
|
||||||
|
|||||||
Reference in New Issue
Block a user