Skip to content

Commit 4367b7a

Browse files
chore: Move sample-new-arch to samples/react-native (#3425)
1 parent f15994e commit 4367b7a

File tree

100 files changed

+42
-42
lines changed

Some content is hidden

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

100 files changed

+42
-42
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
dist
33

44
# Ignore standalone apps
5-
sample-new-architecture
5+
samples/react-native
66
test/perf/TestApp*
77

88
# Ignore dangerfile

.github/workflows/buildandtest.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ jobs:
5151
- uses: actions/cache@v3
5252
id: cache
5353
with:
54-
path: sample-new-architecture/node_modules
54+
path: samples/react-native/node_modules
5555
key: ${{ runner.os }}-${{ github.sha }}
5656
- name: Install Dependencies
5757
if: steps.cache.outputs['cache-hit'] != 'true'
5858
run: yarn install
59-
working-directory: sample-new-architecture
59+
working-directory: samples/react-native
6060
- name: Lint Sample
6161
run: yarn lint
62-
working-directory: sample-new-architecture
62+
working-directory: samples/react-native
6363

6464
job_check_integrity:
6565
name: Check package integrity
@@ -180,20 +180,20 @@ jobs:
180180
uses: actions/cache@v3
181181
id: cache-sample
182182
with:
183-
path: sample-new-architecture/node_modules
184-
key: ${{ runner.os }}-${{ hashFiles('sample-new-architecture/yarn.lock') }}
183+
path: samples/react-native/node_modules
184+
key: ${{ runner.os }}-${{ hashFiles('samples/react-native/yarn.lock') }}
185185
- name: Install Dependencies
186186
if: ${{ steps.cache.outputs['cache-hit'] != 'true' }}
187187
run: yarn install
188188
- name: Install Sample Dependencies
189189
if: ${{ steps.cache-sample.outputs['cache-hit'] != 'true' }}
190190
run: yarn install
191-
working-directory: sample-new-architecture
191+
working-directory: samples/react-native
192192
- name: Build
193193
run: yarn build
194194
- name: Make Sample Build Directory
195195
run: mkdir build
196-
working-directory: sample-new-architecture
196+
working-directory: samples/react-native
197197
- name: Bundle
198198
run: |
199199
yarn run react-native bundle \
@@ -203,4 +203,4 @@ jobs:
203203
--reset-cache \
204204
--bundle-output build/bundle.${{ matrix.platform }}.js \
205205
--sourcemap-output build/bundle.${{ matrix.platform }}.map
206-
working-directory: sample-new-architecture
206+
working-directory: samples/react-native

.github/workflows/codegen.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
include:
1717
- platform: android
1818
command: |
19-
cd sample-new-architecture/android
19+
cd samples/react-native/android
2020
./gradlew generateCodegenArtifactsFromSchema
2121
- platform: ios
2222
command: |
23-
cd sample-new-architecture/ios
23+
cd samples/react-native/ios
2424
node ../node_modules/react-native/scripts/generate-codegen-artifacts.js \
2525
--path .. \
2626
--outputPath codegen
@@ -32,12 +32,12 @@ jobs:
3232
- uses: actions/cache@v3
3333
id: cache
3434
with:
35-
path: sample-new-architecture/node_modules
35+
path: samples/react-native/node_modules
3636
key: ${{ runner.os }}-${{ github.sha }}
3737
- name: Install Dependencies
3838
if: steps.cache.outputs['cache-hit'] != 'true'
3939
run: |
40-
cd sample-new-architecture
40+
cd samples/react-native
4141
yarn install
4242
- name: Codegen
4343
run: ${{ matrix.command }}

.github/workflows/sample-application.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- uses: ruby/setup-ruby@v1
4444
if: ${{ matrix.platform == 'ios' }}
4545
with:
46-
working-directory: sample-new-architecture
46+
working-directory: samples/react-native
4747
ruby-version: '3.2.2' # based on what is used in the sample
4848
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
4949

@@ -61,8 +61,8 @@ jobs:
6161
with:
6262
path: |
6363
node_modules
64-
sample-new-architecture/node_modules
65-
key: ${{ github.workflow }}-${{ github.job }}-npm-${{ hashFiles('yarn.lock', 'sample-new-architecture/yarn.lock') }}
64+
samples/react-native/node_modules
65+
key: ${{ github.workflow }}-${{ github.job }}-npm-${{ hashFiles('yarn.lock', 'samples/react-native/yarn.lock') }}
6666

6767
- name: Install SDK Dependencies
6868
if: ${{ steps.deps-cache.outputs['cache-hit'] != 'true' }}
@@ -73,12 +73,12 @@ jobs:
7373

7474
- name: Install Sample Dependencies
7575
if: ${{ steps.deps-cache.outputs['cache-hit'] != 'true' }}
76-
working-directory: sample-new-architecture
76+
working-directory: samples/react-native
7777
run: yarn install
7878

7979
- name: Install App Pods
8080
if: ${{ matrix.platform == 'ios' }}
81-
working-directory: sample-new-architecture/ios
81+
working-directory: samples/react-native/ios
8282
run: |
8383
[[ "${{ matrix.build-type }}" == "production" ]] && ENABLE_PROD=1 || ENABLE_PROD=0
8484
[[ "${{ matrix.rn-architecture }}" == "new" ]] && ENABLE_NEW_ARCH=1 || ENABLE_NEW_ARCH=0
@@ -89,7 +89,7 @@ jobs:
8989
9090
- name: Build Android App
9191
if: ${{ matrix.platform == 'android' }}
92-
working-directory: sample-new-architecture/android
92+
working-directory: samples/react-native/android
9393
run: |
9494
if [[ ${{ matrix.rn-architecture }} == 'new' ]]; then
9595
perl -i -pe's/newArchEnabled=false/newArchEnabled=true/g' gradle.properties
@@ -101,7 +101,7 @@ jobs:
101101
102102
- name: Build iOS App
103103
if: ${{ matrix.platform == 'ios' }}
104-
working-directory: sample-new-architecture/ios
104+
working-directory: samples/react-native/ios
105105
run: |
106106
[[ "${{ matrix.build-type }}" == "production" ]] && CONFIG='Release' || CONFIG='Debug'
107107
echo "Building $CONFIG"
@@ -123,4 +123,4 @@ jobs:
123123
uses: actions/upload-artifact@v3
124124
with:
125125
name: build-sample-${{ matrix.rn-architecture }}-${{ matrix.platform }}-${{ matrix.build-type }}-logs
126-
path: sample-new-architecture/ios/*.log
126+
path: samples/react-native/ios/*.log

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"editor.formatOnPaste": false,
2424
"editor.formatOnSave": false
2525
},
26-
"react-native-tools.projectRoot": "./sample-new-architecture",
26+
"react-native-tools.projectRoot": "./samples/sample-new-architecture",
2727
"dart.flutterAdbConnectOnChromeOs": false
2828
}

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"lint:eslint": "eslint --config .eslintrc.js .",
3535
"lint:prettier": "prettier --check \"{src,test,scripts}/**/**.ts\"",
3636
"test:watch": "jest --watch",
37-
"run-ios": "cd sample-new-architecture && yarn react-native run-ios",
38-
"run-android": "cd sample-new-architecture && yarn react-native run-android",
37+
"run-ios": "cd samples/react-native && yarn react-native run-ios",
38+
"run-android": "cd samples/react-native && yarn react-native run-android",
3939
"yalc:add:sentry-javascript": "yalc add @sentry/browser @sentry/core @sentry/hub @sentry/integrations @sentry/react @sentry/types @sentry/utils"
4040
},
4141
"keywords": [
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)