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

⬆️: Upgrade Expo SDK to 48 #1118

Merged
merged 44 commits into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9bef4c2
npm install expo@^48.0.0
creature-water-valley Apr 14, 2023
8a3603c
npx expo install --fix
creature-water-valley Apr 14, 2023
f4bda66
add @expo/config-plugins to devDependencies
creature-water-valley Apr 17, 2023
6b7ba34
upgrade jest-expo(^47.0.0 -> ^48.0.0)
creature-water-valley Apr 17, 2023
ada4a09
upgrade react-test-renderer(18.1.0 -> 18.2.0)
creature-water-valley Apr 17, 2023
d6378c8
remove @types/react-native
creature-water-valley Apr 17, 2023
b3f9662
upgrade @types/jest(<27.0.0 -> <30.0.0)
creature-water-valley Apr 17, 2023
2551273
rm -rf package-lock.json node_modules/ && npm i
creature-water-valley Apr 17, 2023
9260084
update @expo+config-plugins patch (rename and expo/expo@ee2169270f320…
creature-water-valley Apr 17, 2023
be17d32
npm run prebuild
creature-water-valley Apr 17, 2023
a2a56ad
upgrade react-native 0.71 (expo/expo@84f418d73be6d8683992cefbe4fc26d1…
creature-water-valley Apr 17, 2023
847b027
remove beforeEach in jest/__mocks__
creature-water-valley Apr 19, 2023
c34fd98
add @react-native-community/netinfo mock
creature-water-valley Apr 19, 2023
28f1944
jest feat(globals): make test return values stricter(facebook/jest@46…
creature-water-valley Apr 19, 2023
59f00aa
KeepAwake.activateKeepAwake has been deprecated in favor of KeepAwake…
creature-water-valley Apr 19, 2023
acff597
update snapshot
creature-water-valley Apr 19, 2023
3d4ad19
feat: use modern fake timers by default(facebook/jest@6c64c1972ab0377…
creature-water-valley Apr 19, 2023
2634322
remove importing Omit from react-native
creature-water-valley Apr 19, 2023
3f51c36
change expo-random to expo-crypto(expo/expo#20217)
creature-water-valley Apr 20, 2023
c9bbecd
remove --detectOpenHandles from npm run test
creature-water-valley Apr 20, 2023
6fd4d3f
add --forceExit to npm run test
creature-water-valley Apr 20, 2023
14a07ce
update @expo-splash-screen patch(rename only)
creature-water-valley Apr 20, 2023
f7401e9
change jsEngine from jsc to hermes
creature-water-valley Apr 20, 2023
504f59d
update managed license
creature-water-valley Apr 20, 2023
93a45f2
add BSD 3-Clause to BSD-3-Clause alias
creature-water-valley Apr 20, 2023
e0d0176
remove @types/react-native and jest-expo from renovate.json5
creature-water-valley Apr 20, 2023
ca20906
fix virtualizedList scrollToEnd for 0 items(facebook/react-native#36067)
creature-water-valley Apr 20, 2023
0dc257a
feat(android): change dialog buttons text color(react-native-datetime…
creature-water-valley Apr 21, 2023
5ce0a24
npm run prebuild
creature-water-valley Apr 21, 2023
85f912f
npm run prebuild:stg
creature-water-valley Apr 21, 2023
727c7d6
npm run prebuild:prod
creature-water-valley Apr 21, 2023
c3af412
remove --detectOpenHandles and add --forceExit(npm script 'test:cover…
creature-water-valley Apr 26, 2023
1f7f02c
add expo 48 upgrade doc
creature-water-valley Apr 26, 2023
886ef70
add package name to patch title
creature-water-valley Apr 26, 2023
c2c42ec
add reason to add @expo/config-plugins to devDependencies
creature-water-valley Apr 26, 2023
c5d450c
remove comment about modern fake timers
creature-water-valley Apr 26, 2023
a53faae
remove comment about legacy fake timers
creature-water-valley Apr 26, 2023
ae97145
chore @expo/config-plugins patch doc [skip ci]
creature-water-valley Apr 27, 2023
e8ac510
update upgrade doc about jest/__mocks__ files error
creature-water-valley Apr 27, 2023
acd6791
Merge branch 'master' into feature/upgrade-expo-48
creature-water-valley May 8, 2023
2dbc983
Fix upgrade doc(commit suggestion)
creature-water-valley May 8, 2023
6306b9c
fix upgrade doc(XXXの更新履歴を確認 -> XXXの更新履歴の確認と対応)
creature-water-valley May 8, 2023
d2aabbf
fix upgrade doc(H4も対応手順の一覧に追加)
creature-water-valley May 8, 2023
7a38a8f
Fix upgrade doc typo(commit suggestion)
creature-water-valley May 9, 2023
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: 0 additions & 6 deletions example-app/SantokuApp/.buckconfig

This file was deleted.

11 changes: 5 additions & 6 deletions example-app/SantokuApp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,25 @@ build/
local.properties
*.iml
*.hprof
*.keystore
!debug.keystore

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# Bundle artifacts
*.jsbundle

# Bundler / CocoaPods
/.bundle/vendor
/ios/Pods/

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*

# Expo
.expo/
web-build/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,4 @@ if (!__mocks.notifee) {
Object.defineProperty(__mocks, 'notifee', {value: mock});
}

// テストケースごとにモックは初期化しておく。
beforeEach(() =>
tksugimoto marked this conversation as resolved.
Show resolved Hide resolved
Object.values(mock).forEach(fn => {
if (jest.isMockFunction(fn)) {
fn.mockClear();
}
}),
);

export default mock;
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,4 @@ if (!__mocks.crashlytics) {
Object.defineProperty(__mocks, 'crashlytics', {value: mock});
}

// テストケースごとにモックは初期化しておく。
beforeEach(() =>
Object.values(mock).forEach(fn => {
if (jest.isMockFunction(fn)) {
fn.mockClear();
}
}),
);

export default () => mock;
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,4 @@ if (!__mocks.crashlytics) {
Object.defineProperty(__mocks, 'messaging', {value: mock});
}

// テストケースごとにモックは初期化しておく。
beforeEach(() =>
Object.values(mock).forEach(fn => {
if (jest.isMockFunction(fn)) {
fn.mockClear();
}
}),
);

export default () => mock;
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ const mock: jest.Mocked<NavigationProp<ParamListBase>> = {

Object.defineProperty(__mocks, 'navigation', {value: mock});

// テストケースごとにモックは初期化しておく。
beforeEach(() =>
Object.values(mock).forEach(fn => {
if (jest.isMockFunction(fn)) {
fn.mockClear();
}
}),
);

// @react-navigation/nativeのすべてのNamed Exportを列挙するのは大変なので、
// ES6のexport/import形式ではなく、module.exportsを使ってexportする。
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
Expand Down
9 changes: 0 additions & 9 deletions example-app/SantokuApp/jest/__mocks__/expo-splash-screen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,4 @@ const mock: jest.Mocked<typeof SplashScreen> = {

Object.defineProperty(__mocks, 'expoSplashScreen', {value: mock});

// テストケースごとにモックは初期化しておく。
beforeEach(() =>
Object.values(mock).forEach(fn => {
if (jest.isMockFunction(fn)) {
fn.mockClear();
}
}),
);

export default mock;
Loading