Skip to content

Commit

Permalink
Expo50 (#325)
Browse files Browse the repository at this point in the history
* Squashed commit of the following:

commit 12bc7c0
Author: BilligsterUser <[email protected]>
Date:   Mon Jan 22 17:33:59 2024 +0100

    update example.env and app.config

commit 932305f
Author: BilligsterUser <[email protected]>
Date:   Sat Jan 20 22:37:34 2024 +0100

    Update index.ts

commit af24d9e
Author: BilligsterUser <[email protected]>
Date:   Sat Jan 20 22:21:38 2024 +0100

    update scripts

commit 3c72997
Author: BilligsterUser <[email protected]>
Date:   Sat Jan 20 21:20:18 2024 +0100

    remove old file

commit 403a6c6
Author: BilligsterUser <[email protected]>
Date:   Sat Jan 20 20:39:49 2024 +0100

    Create .npmrc

commit 01254ff
Author: BilligsterUser <[email protected]>
Date:   Sat Jan 20 20:26:10 2024 +0100

    minor changes

commit 1836e7b
Author: BilligsterUser <[email protected]>
Date:   Sat Jan 20 19:07:10 2024 +0100

    update deps & clean up

commit f810b75
Author: BilligsterUser <[email protected]>
Date:   Sat Jan 20 18:40:35 2024 +0100

    update expo sdk to  version 50

commit 908146d
Author: BilligsterUser <[email protected]>
Date:   Sat Jan 20 18:30:17 2024 +0100

    switch to pnpm

* update expo sdk

* update deps

* Update index.tsx

* update

* update

* update package.json

* update expo50 compatible deps

* Fix expo-dev-client import in index.js

* Update paymentRequest in ProcessingScreen

* Update expo version in package.json

* lint

---------

Co-authored-by: BilligsterUser <[email protected]>
  • Loading branch information
KKA11010 and BilligsterUser committed Mar 27, 2024
1 parent a6fffdd commit 027dff3
Show file tree
Hide file tree
Showing 20 changed files with 39,593 additions and 40,703 deletions.
5 changes: 5 additions & 0 deletions .example.env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ SENTRY_PROJECT=
SENTRY_DSN=
SENTRY_AUTH_TOKEN=

EXPO_TOKEN=
EXPO_NO_TELEMETRY=1

NODE_ENV=development
NODE_ENV_SHORT=dev

APP_VARIANT=dev

DEBUG=dev
36 changes: 12 additions & 24 deletions config/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,16 @@ const config: ExpoConfig = {
'expo-localization',
['expo-barcode-scanner', { cameraPermission }],
['expo-camera', { cameraPermission }],
'sentry-expo',
'expo-updates'
'expo-secure-store',
[
'@sentry/react-native/expo',
{
organization: process?.env?.SENTRY_ORG, // || 'sentry org slug, or use the `SENTRY_ORG` environment variable',
project: process?.env?.SENTRY_PROJECT, // || 'sentry project name, or use the `SENTRY_PROJECT` environment variable',
dsn: process?.env?.SENTRY_DSN, // || 'sentry dsn, or use the `SENTRY_DSN` environment variable',
authToken: process?.env?.SENTRY_AUTH_TOKEN, // || 'sentry auth token, or use the `SENTRY_AUTH_TOKEN` environment variable',
}
]
],
ios: {
supportsTablet: false,
Expand All @@ -96,9 +104,6 @@ const config: ExpoConfig = {
},
package: `xyz.elliptica.enuts${!IS_PROD ? `.${_appVariant}` : ''}`
},
web: {
favicon: './assets/favicon.png'
},
extra: {
eas: { projectId: 'edb75ccd-71ac-4934-9147-baf1c7f2b068' },
DEBUG: process?.env?.DEBUG,
Expand All @@ -107,25 +112,8 @@ const config: ExpoConfig = {
NODE_ENV_SHORT: _nodeEnvShort,
SENTRY_DSN: process?.env?.SENTRY_DSN,
SENTRY_ORG: process?.env?.SENTRY_ORG,
SENTRY_PROJECT: process?.env?.SENTRY_PROJECT
},
hooks: {
postPublish: [
{
file: 'sentry-expo/upload-sourcemaps',
config: {
organization: process?.env?.SENTRY_ORG,
project: process?.env?.SENTRY_PROJECT
}
}
]
},
updates: {
enabled: false,
url: 'https://u.expo.dev/edb75ccd-71ac-4934-9147-baf1c7f2b068'
},
runtimeVersion: {
policy: 'sdkVersion'
SENTRY_PROJECT: process?.env?.SENTRY_PROJECT,
SENTRY_AUTH_TOKEN: process?.env?.SENTRY_AUTH_TOKEN
}
}

Expand Down
10 changes: 6 additions & 4 deletions config/metro.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
// Learn more https://docs.expo.io/guides/customizing-metro
// https://docs.expo.dev/guides/using-sentry/#update-metro-configuration

import { getDefaultConfig } from '@expo/metro-config'
// This replaces `const { getDefaultConfig } = require('expo/metro-config');`
import { getSentryExpoConfig } from '@sentry/react-native/metro'
import { readdirSync } from 'fs'
// import { mergeConfig } from 'metro-config'
import { join, resolve } from 'path'


const root = resolve(join(__dirname, '..', ''))
const assertDir = resolve(join(root, 'assets'))

export const config = getDefaultConfig(root)
// This replaces const config = getDefaultConfig(root)
export const config = getSentryExpoConfig(root)

const assetExts = [...new Set([
...config?.resolver?.assetExts ?? [],
Expand All @@ -19,4 +22,3 @@ const assetExts = [...new Set([
])]
if (config.resolver?.assetExts) { config.resolver.assetExts = assetExts }

// config mergeConfig(config, { resolver: { ...config.resolver, assetExts } })
Loading

0 comments on commit 027dff3

Please sign in to comment.