Skip to content

Commit f3c5186

Browse files
authored
chore: upgrade react native to 0.66 (#383)
1 parent a2a24af commit f3c5186

File tree

14,704 files changed

+2435
-2654046
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

14,704 files changed

+2435
-2654046
lines changed

.github/workflows/ci.yml

+12-24
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,13 @@ jobs:
2323
cache: 'yarn'
2424
- name: Install
2525
run: yarn install --frozen-lockfile
26-
- name: Install (Example)
27-
run: yarn install --frozen-lockfile
28-
working-directory: example
2926
- name: Lint
3027
run: yarn lint
3128
- name: Build
32-
run: yarn core prepare
29+
run: yarn build
3330
- name: Test
3431
run: yarn test --coverage
35-
- name: Build Plugins
36-
run: yarn build:plugins
32+
3733

3834
run-e2e-ios:
3935
needs: cancel_previous
@@ -50,19 +46,10 @@ jobs:
5046
with:
5147
xcode-version: 12.5.1
5248

53-
- name: Cocoapods cache
54-
uses: actions/cache@v2
55-
with:
56-
path: ./example/ios/Pods
57-
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
58-
restore-keys: |
59-
${{ runner.os }}-pods-
60-
6149
- name: Install applesimutils
6250
run: |
6351
HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null
6452
HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null
65-
- run: yarn install
6653
6754
- name: Bootstrap
6855
run: yarn bootstrap
@@ -71,20 +58,21 @@ jobs:
7158
run: yarn example start:e2e &
7259

7360
- name: Detox - Build
74-
run: yarn example e2e:build:ios
61+
run: yarn example build:ios
7562

7663
- name: Detox - Test
7764
run: |
7865
yarn example detox clean-framework-cache
7966
yarn example detox build-framework-cache
80-
yarn example e2e:test:ios
67+
yarn example test:ios
8168
8269
run-e2e-android:
8370
needs: cancel_previous
8471
runs-on: 'macos-11' # This is important, linux cannot run the emulator graphically for e2e tests
8572
strategy:
8673
matrix:
8774
api-level: [21]
75+
profile: ['pixel_xl']
8876
steps:
8977
- uses: actions/checkout@v2
9078
- uses: actions/setup-java@v2
@@ -108,14 +96,14 @@ jobs:
10896
path: |
10997
~/.android/avd/*
11098
~/.android/adb*
111-
key: avd-${{ matrix.api-level }}
99+
key: avd-${{ matrix.api-level }}-${{matrix.profile}}
112100

113101
- name: create AVD and generate snapshot for caching
114102
if: steps.avd-cache.outputs.cache-hit != 'true'
115103
uses: reactivecircus/android-emulator-runner@v2
116104
with:
117105
api-level: ${{ matrix.api-level }}
118-
profile: pixel_3a
106+
profile: ${{matrix.profile}}
119107
name: Pixel_API_21_AOSP
120108
target: default
121109
force-avd-creation: false
@@ -129,23 +117,23 @@ jobs:
129117
cache: 'yarn'
130118

131119
- name: Bootstrap
132-
run: yarn example && yarn # No need to run bootstrap here since we don't need cocoapods
120+
run: yarn install && yarn example install # No need to run bootstrap here since we don't need cocoapods
133121
- name: Run Server (with mocks)
134122
run: yarn example start:e2e &
135123
- name: Detox - Build
136-
run: yarn example e2e:build:android
124+
run: yarn example build:android
137125

138126
- name: Detox - Test
139127
uses: reactivecircus/android-emulator-runner@v2
140128
with:
141129
api-level: ${{ matrix.api-level }}
142-
profile: pixel_3a
130+
profile: ${{matrix.profile}}
143131
avd-name: Pixel_API_21_AOSP
144132
target: default
145133
force-avd-creation: false
146-
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
134+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
147135
disable-animations: true
148-
script: yarn example e2e:test:android
136+
script: yarn example test:android
149137

150138

151139

babel.config.js

-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
const path = require('path');
2-
3-
const pak = require('./packages/core/package.json');
4-
51
module.exports = {
62
presets: ['module:metro-react-native-babel-preset'],
7-
plugins: [
8-
[
9-
'module-resolver',
10-
{
11-
alias: {
12-
[pak.name]: path.join(__dirname, 'packages', 'core', pak.source),
13-
},
14-
},
15-
],
16-
],
173
};

example/android/device_setup.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
avdmanager=$ANDROID_HOME/tools/bin/avdmanager
44
sdkmanager=$ANDROID_HOME/tools/bin/sdkmanager
5+
emulator=$ANDROID_HOME/emulator/emulator
56
green=`tput setaf 2`
67
reset=`tput sgr0`
78

@@ -14,7 +15,9 @@ then
1415
$sdkmanager "system-images;android-21;default;x86_64"
1516

1617
echo "${green}=> Creating Pixel_API_21_AOSP emulator${reset}"
17-
$avdmanager create avd -n Pixel_API_21_AOSP -d pixel --package "system-images;android-21;default;x86_64"
18+
$avdmanager create avd -n Pixel_API_21_AOSP -d pixel_xl --package "system-images;android-21;default;x86_64"
1819
fi
1920

21+
$emulator -avd Pixel_API_21_AOSP -no-snapshot -noaudio -no-boot-anim &
22+
2023
echo "${green}📱 Pixel_API_21_AOSP emulator ready!${reset}"

0 commit comments

Comments
 (0)