Skip to content
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

refactor!: upgrade to Expo SDK 50 #211

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["16", "18"]
node: ["18", "20"]
name: Build with Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
Expand All @@ -32,13 +32,13 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ["16", "18"]
node: ["18", "20"]
package: [
# Manually add packages here
detox,
ffmpeg-kit-react-native,
ios-stickers,
react-native-ble-plx,
# react-native-ble-plx, - Config Plugin moved to library itself
react-native-blob-util,
react-native-branch,
react-native-siri-shortcut,
Expand Down
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ packages/@*/*/build/**

# App native folders

apps/*/ios/*
apps/*/android/*
apps/*/web-build/*
apps/*/dist/*
apps/*/ios/
apps/*/android/
apps/*/web-build/
apps/*/dist/
16 changes: 8 additions & 8 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,30 @@
"@config-plugins/react-native-adjust": "*",
"@config-plugins/react-native-callkeep": "*",
"detox": "^20.11.0",
"expo": "^49.0.3",
"expo-localization": "~14.3.0",
"expo-splash-screen": "~0.20.4",
"expo-status-bar": "~1.6.0",
"expo": "^50.0.2",
"expo-localization": "~14.8.3",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"fbjs": "^0.8.18",
"i18n-js": "^3.8.0",
"luxon": "^1.27.0",
"react": "18.2.0",
"react-native": "0.72.3",
"react-native": "0.73.2",
"react-native-adjust": "^4.33.0",
"react-native-callkeep": "^4.3.9",
"react-native-safe-area-context": "4.6.3"
"react-native-safe-area-context": "4.8.2"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/plugin-syntax-jsx": "^7.16.0",
"@types/jest": "^29.4.0",
"@types/luxon": "^1.27.1",
"@types/react": "~18.2.14",
"@types/react": "~18.2.45",
"babel-jest": "^29.5.0",
"jest": "^29.2.1",
"jest-circus": "^29.5.0",
"ts-jest": "^29.0.5",
"typescript": "^5.1.3"
"typescript": "^5.3.0"
},
"private": true
}
12 changes: 6 additions & 6 deletions apps/apple-settings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
},
"dependencies": {
"@config-plugins/ios-stickers": "*",
"@react-native-community/slider": "^4.4.2",
"@react-native-picker/picker": "2.4.10",
"expo": "^49.0.3",
"expo-splash-screen": "~0.20.4",
"expo-status-bar": "~1.6.0",
"@react-native-community/slider": "4.4.2",
"@react-native-picker/picker": "2.6.1",
"expo": "^50.0.2",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.72.3"
"react-native": "0.73.2"
},
"devDependencies": {
"@babel/core": "^7.20.0"
Expand Down
10 changes: 5 additions & 5 deletions apps/ffmpeg-kit-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
},
"dependencies": {
"@config-plugins/ffmpeg-kit-react-native": "*",
"expo": "^49.0.3",
"expo-splash-screen": "~0.20.4",
"expo-status-bar": "~1.6.0",
"ffmpeg-kit-react-native": "^5.1.0",
"expo": "^50.0.2",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"ffmpeg-kit-react-native": "^6.0.2",
"react": "18.2.0",
"react-native": "0.72.3"
"react-native": "0.73.2"
},
"devDependencies": {
"@babel/core": "^7.20.0"
Expand Down
3 changes: 2 additions & 1 deletion apps/ffmpeg-kit-react-native/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import { useMediaInfo, useResolvedValue } from "./useMediaInfo";

export default function App() {
const session = useMediaInfo(
"http://techslides.com/demos/sample-videos/small.mp4"
// See: https://gist.github.com/jsturgis/3b19447b304616f18657
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
);

if (!session) {
Expand Down
8 changes: 4 additions & 4 deletions apps/ios-stickers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
},
"dependencies": {
"@config-plugins/ios-stickers": "*",
"expo": "^49.0.3",
"expo-splash-screen": "~0.20.4",
"expo-status-bar": "~1.6.0",
"expo": "^50.0.2",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.72.3"
"react-native": "0.73.2"
},
"devDependencies": {
"@babel/core": "^7.20.0"
Expand Down
2 changes: 1 addition & 1 deletion apps/react-native-ble-plx/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "ble-plx",
"icon": "https://icogen.vercel.app/api/icon?icon=🔌&color_hex=072462",
"plugins": [
"@config-plugins/react-native-ble-plx"
"react-native-ble-plx"
]
}
}
15 changes: 7 additions & 8 deletions apps/react-native-ble-plx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,17 @@
"android": "expo run:android"
},
"dependencies": {
"@config-plugins/react-native-ble-plx": "*",
"expo": "^49.0.3",
"expo-splash-screen": "~0.20.4",
"expo-status-bar": "~1.6.0",
"expo": "^50.0.2",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.72.3",
"react-native-ble-plx": "^2.0.3"
"react-native": "0.73.2",
"react-native-ble-plx": "^3.1.2"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@types/react": "~18.2.14",
"typescript": "^5.1.3"
"@types/react": "~18.2.45",
"typescript": "^5.3.0"
},
"private": true
}
8 changes: 4 additions & 4 deletions apps/react-native-branch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
},
"dependencies": {
"@config-plugins/react-native-branch": "*",
"expo": "^49.0.3",
"expo-splash-screen": "~0.20.4",
"expo-status-bar": "~1.6.0",
"expo": "^50.0.2",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.72.3",
"react-native": "0.73.2",
"react-native-branch": "^5.9.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions apps/react-native-dynamic-app-icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
},
"dependencies": {
"@config-plugins/react-native-dynamic-app-icon": "*",
"expo": "^49.0.3",
"expo-splash-screen": "~0.20.4",
"expo-status-bar": "~1.6.0",
"expo": "^50.0.2",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.72.3",
"react-native": "0.73.2",
"react-native-dynamic-app-icon": "^1.1.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions apps/react-native-google-cast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
},
"dependencies": {
"@config-plugins/react-native-google-cast": "*",
"expo": "^49.0.3",
"expo-splash-screen": "~0.20.4",
"expo-status-bar": "~1.6.0",
"expo": "^50.0.2",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.72.3",
"react-native": "0.73.2",
"react-native-google-cast": "^4.6.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/react-native-google-cast/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function HomeScreen() {
return (
<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
<Text>State: {castState}</Text>
<CastButton style={{ width: 24, height: 24 }} />
<CastButton style={{ width: 24, height: 24, tintColor: 'black' }} />
<Button
title="Overlay"
onPress={() => {
Expand Down
4 changes: 4 additions & 0 deletions apps/react-native-google-cast/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"compilerOptions": {},
"extends": "expo/tsconfig.base"
}
18 changes: 17 additions & 1 deletion apps/react-native-pdf/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,24 @@
"name": "pdf",
"icon": "https://icogen.vercel.app/api/icon?icon=🔌&color_hex=4190F7",
"plugins": [
["expo-build-properties", {
"android": {
"usesCleartextTraffic": true
}
}],
"@config-plugins/react-native-blob-util",
"@config-plugins/react-native-pdf"
]
],
"ios": {
"infoPlist": {
"NSAppTransportSecurity": {
"NSExceptionDomains": {
"samples.leanpub.com": {
"NSTemporaryExceptionAllowsInsecureHTTPLoads": true
}
}
}
}
}
}
}
9 changes: 5 additions & 4 deletions apps/react-native-pdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
"dependencies": {
"@config-plugins/react-native-blob-util": "*",
"@config-plugins/react-native-pdf": "*",
"expo": "^49.0.3",
"expo-splash-screen": "~0.20.4",
"expo-status-bar": "~1.6.0",
"expo": "^50.0.2",
"expo-build-properties": "~0.11.0",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.72.3",
"react-native": "0.73.2",
"react-native-blob-util": "^0.18.3",
"react-native-pdf": "^6.7.1"
},
Expand Down
8 changes: 4 additions & 4 deletions apps/react-native-quick-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
},
"dependencies": {
"@config-plugins/react-native-quick-actions": "*",
"expo": "^49.0.3",
"expo-splash-screen": "~0.20.4",
"expo-status-bar": "~1.6.0",
"expo": "^50.0.2",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.72.3",
"react-native": "0.73.2",
"react-native-quick-actions": "^0.3.13"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions apps/react-native-siri-shortcut/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
},
"dependencies": {
"@config-plugins/react-native-siri-shortcut": "*",
"expo": "^49.0.3",
"expo-splash-screen": "~0.20.4",
"expo-status-bar": "~1.6.0",
"expo": "^50.0.2",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.72.3",
"react-native": "0.73.2",
"react-native-siri-shortcut": "^3.2.3"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions apps/react-native-webrtc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
},
"dependencies": {
"@config-plugins/react-native-webrtc": "*",
"expo": "^49.0.3",
"expo-splash-screen": "~0.20.4",
"expo-status-bar": "~1.6.0",
"expo": "^50.0.2",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.72.3",
"react-native-webrtc": "^111.0.3"
"react-native": "0.73.2",
"react-native-webrtc": "^118.0.0"
},
"devDependencies": {
"@babel/core": "^7.20.0"
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,26 @@
"update-issue-template": "ts-node ./scripts/gh-issues-config.ts",
"update-dependabot-config": "ts-node ./scripts/update-dependabot-config.ts",
"start": "lerna run build --parallel -- --watch",
"prepare": "lerna run prepare --parallel"
"prepare": "lerna run prepare --parallel",
"fix": "lerna run lint --parallel -- --fix"
},
"workspaces": [
"apps/*",
"packages/*"
],
"resolutions": {
"expo": "^49.0.3",
"expo": "^50.0.2",
"fs-extra": "^9.1.0"
},
"devDependencies": {
"@expo/package-manager": "^0.0.43",
"@expo/package-manager": "^1.4.2",
"@types/js-yaml": "^4.0.5",
"@types/prompts": "^2.0.13",
"eslint": "^8.10.0",
"expo-yarn-workspaces": "^2.0.2",
"js-yaml": "^4.1.0",
"lerna": "3.4.1",
"prettier": "^2.2.1",
"prettier": "^3.2.4",
"prompts": "^2.4.1",
"remark-cli": "^9.0.0",
"remark-validate-links": "^10.0.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/android-jsc-intl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"android-jsc-intl"
],
"peerDependencies": {
"expo": "^49"
"expo": "^50"
},
"devDependencies": {
"expo-module-scripts": "^3.0.3"
}
}
}
4 changes: 2 additions & 2 deletions packages/android-jsc-intl/src/withAndroidJscIntl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ const withAndroidJscIntl: ConfigPlugin = (config) => {
return withAppBuildGradle(config, (config) => {
if (config.modResults.language !== "groovy") {
throw new Error(
"[@expo/config-plugins][withAndroidJscIntl] Cannot enable Intl in Android JSC app gradle because the build.gradle is not groovy."
"[@expo/config-plugins][withAndroidJscIntl] Cannot enable Intl in Android JSC app gradle because the build.gradle is not groovy.",
);
}

config.modResults.contents = config.modResults.contents.replace(
"org.webkit:android-jsc:+",
"org.webkit:android-jsc-intl:+"
"org.webkit:android-jsc-intl:+",
);

return config;
Expand Down
Loading
Loading