-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from bugsnag/PLAT-11488/support-v50
Support Expo SDK 50
- Loading branch information
Showing
29 changed files
with
205 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ compile_commands.json | |
.cache | ||
.clangd | ||
package-lock.json | ||
yarn.lock | ||
/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,35 @@ | ||
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files | ||
|
||
# dependencies | ||
node_modules/ | ||
|
||
# Expo | ||
.expo/ | ||
dist/ | ||
npm-debug.* | ||
web-build/ | ||
|
||
# Native | ||
*.orig.* | ||
*.jks | ||
*.p8 | ||
*.p12 | ||
*.key | ||
*.mobileprovision | ||
scenario.json | ||
bugsnag-expo-*.tgz | ||
android | ||
ios | ||
*.orig.* | ||
web-build/ | ||
|
||
# Metro | ||
.metro-health-check* | ||
|
||
# debug | ||
npm-debug.* | ||
yarn-debug.* | ||
yarn-error.* | ||
|
||
# macOS | ||
.DS_Store | ||
*.pem | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# typescript | ||
*.tsbuildinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { registerRootComponent } from 'expo'; | ||
|
||
import App from './App'; | ||
|
||
// registerRootComponent calls AppRegistry.registerComponent('main', () => App); | ||
// It also ensures that whether you load the app in Expo Go or in a native build, | ||
// the environment is set up appropriately | ||
registerRootComponent(App); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
const { getDefaultConfig } = require('@expo/metro-config'); | ||
const { getDefaultConfig } = require('expo/metro-config'); | ||
const path = require('path'); | ||
|
||
const defaultConfig = getDefaultConfig(__dirname); | ||
// Find the project and workspace directories | ||
const projectRoot = __dirname; | ||
// This can be replaced with `find-yarn-workspace-root` | ||
const workspaceRoot = path.resolve(projectRoot, '../../..'); | ||
|
||
defaultConfig.resolver.extraNodeModules = { | ||
'expo': `${__dirname}/node_modules/expo`, | ||
'expo-modules-core': `${__dirname}/node_modules/expo-modules-core`, | ||
'react-native': `${__dirname}/node_modules/react-native`, | ||
'react': `${__dirname}/node_modules/react`, | ||
'@babel/runtime': `${__dirname}/node_modules/@babel/runtime`, | ||
'promise': `${__dirname}/node_modules/promise`, | ||
'@unimodules/core': `${__dirname}/node_modules/@unimodules/core`, | ||
} | ||
const config = getDefaultConfig(projectRoot); | ||
|
||
module.exports = defaultConfig; | ||
// 1. Watch all files within the monorepo | ||
config.watchFolders = [workspaceRoot]; | ||
// 2. Let Metro know where to resolve packages and in what order | ||
config.resolver.nodeModulesPaths = [ | ||
path.resolve(projectRoot, 'node_modules'), | ||
path.resolve(workspaceRoot, 'node_modules'), | ||
]; | ||
// 3. Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths` | ||
// config.resolver.disableHierarchicalLookup = true; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,32 @@ | ||
{ | ||
"name": "test-fixture", | ||
"version": "1.0.0", | ||
"main": "node_modules/expo/AppEntry.js", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "expo start", | ||
"android": "expo start --android", | ||
"ios": "expo start --ios", | ||
"web": "expo start --web" | ||
}, | ||
"dependencies": { | ||
"@react-native-community/netinfo": "9.3.10", | ||
"expo": "^49.0.0", | ||
"expo-application": "~5.3.0", | ||
"expo-constants": "~14.4.2", | ||
"expo-crypto": "~12.4.1", | ||
"expo-device": "~5.4.0", | ||
"expo-file-system": "~15.4.2", | ||
"expo-screen-orientation": "~6.0.2", | ||
"expo-status-bar": "~1.6.0", | ||
"@react-native-community/netinfo": "11.1.0", | ||
"expo": "^50.0.0", | ||
"expo-application": "~5.8.3", | ||
"expo-constants": "~15.4.5", | ||
"expo-crypto": "~12.8.0", | ||
"expo-device": "~5.9.3", | ||
"expo-file-system": "~16.0.5", | ||
"expo-screen-orientation": "~6.4.1", | ||
"expo-status-bar": "~1.11.1", | ||
"react": "18.2.0", | ||
"react-native": "0.72.3" | ||
"react-native": "0.73.2", | ||
"@bugsnag/expo": "*" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.20.0" | ||
"@babel/core": "^7.20.0", | ||
"bugsnag-expo-cli": "*", | ||
"@bugsnag/plugin-expo-eas-sourcemaps": "*", | ||
"@bugsnag/source-maps": "^2.3.1" | ||
}, | ||
"private": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
{ | ||
"lerna": "2.11.0", | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"version": "49.0.2" | ||
"version": "49.0.2", | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.