-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Expo SDK 50 #161
Merged
Merged
Support Expo SDK 50 #161
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
d168614
Bump dependencies for SDK 50
yousif-bugsnag 1211602
Bump `LATEST_SUPPORTED_EXPO_SDK` in CLI
yousif-bugsnag eab0c3a
Bump test fixture to SDK 50
yousif-bugsnag 8f5561a
Bump node version to 18 for CI
yousif-bugsnag d81b0c7
Update unit tests
yousif-bugsnag e62e65f
Bump java version to 17 in CI
yousif-bugsnag e651226
bump lerna version to 8.0.2
yousif-bugsnag adfd761
update monorepo config
yousif-bugsnag 0d09126
add yarn.lock to .gitignore
yousif-bugsnag 1ac435e
add test fixture to monorepo
yousif-bugsnag 2ab2e75
update test fixture build script: use yarn and don't install package …
yousif-bugsnag 19fa131
remove deprecated lerna bootstrap command from unit test CI
yousif-bugsnag 4f25827
configure test fixture for monorepo use
yousif-bugsnag a8d2b2a
fix metro config
yousif-bugsnag f4b17cb
remove unnecessary .gitignore
yousif-bugsnag c029351
update hoisted paths for unit test mocks
yousif-bugsnag e8138e9
use latest EAS CLI
yousif-bugsnag 7e74c04
use Xcode 15 to build iOS fixture
yousif-bugsnag 6f16813
update pipeline to run on xcode 15.2.0
be9ea87
set source map CLI dev dependency
yousif-bugsnag c4f161c
Run tests on iOS 14 and 16
yousif-bugsnag 67201e0
Update test fixture to allow HTTP traffic to test endpoints
yousif-bugsnag 2523880
use https for network breadcrumbs test
yousif-bugsnag ad100d1
Remove references to lerna bootstrap from docs
yousif-bugsnag a7995ab
Fix jest environment in unit tests
yousif-bugsnag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌🏻