Skip to content

Commit 313754f

Browse files
authored
feat: add react-native-test-app (#603)
* feat: add react-native-test-app * fix: update yarn * fix: action * fix: commit yarn * fix: ios ci * fix: missing input
1 parent 87b913a commit 313754f

File tree

140 files changed

+26573
-24646
lines changed

Some content is hidden

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

140 files changed

+26573
-24646
lines changed

.github/workflows/ci.yml

+18-16
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
node-version: [18, 20]
1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v1
12+
- uses: actions/setup-node@v3
1313
with:
1414
node-version: ${{ matrix.node-version }}
1515
- name: Get yarn cache
1616
id: yarn-cache
1717
run: echo "::set-output name=dir::$(yarn cache dir)"
18-
- uses: actions/cache@v2
18+
- uses: actions/cache@v3
1919
with:
2020
path: ${{ steps.yarn-cache.outputs.dir }}
2121
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -30,13 +30,13 @@ jobs:
3030
node-version: [18, 20]
3131
steps:
3232
- uses: actions/checkout@v2
33-
- uses: actions/setup-node@v1
33+
- uses: actions/setup-node@v3
3434
with:
3535
node-version: ${{ matrix.node-version }}
3636
- name: Get yarn cache
3737
id: yarn-cache
3838
run: echo "::set-output name=dir::$(yarn cache dir)"
39-
- uses: actions/cache@v2
39+
- uses: actions/cache@v3
4040
with:
4141
path: ${{ steps.yarn-cache.outputs.dir }}
4242
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -51,13 +51,13 @@ jobs:
5151
node-version: [18, 20]
5252
steps:
5353
- uses: actions/checkout@v2
54-
- uses: actions/setup-node@v1
54+
- uses: actions/setup-node@v3
5555
with:
5656
node-version: ${{ matrix.node-version }}
5757
- name: Get yarn cache
5858
id: yarn-cache
5959
run: echo "::set-output name=dir::$(yarn cache dir)"
60-
- uses: actions/cache@v2
60+
- uses: actions/cache@v3
6161
with:
6262
path: ${{ steps.yarn-cache.outputs.dir }}
6363
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -72,16 +72,18 @@ jobs:
7272
node-version: [18, 20]
7373
steps:
7474
- uses: actions/checkout@v2
75-
- uses: actions/setup-java@v1
75+
- name: Set up JDK
76+
uses: actions/setup-java@v4
7677
with:
77-
java-version: '11'
78-
- uses: actions/setup-node@v1
78+
distribution: temurin
79+
java-version: 17
80+
- uses: actions/setup-node@v3
7981
with:
8082
node-version: ${{ matrix.node-version }}
8183
- name: Get yarn cache
8284
id: yarn-cache
8385
run: echo "::set-output name=dir::$(yarn cache dir)"
84-
- uses: actions/cache@v2
86+
- uses: actions/cache@v3
8587
with:
8688
path: ${{ steps.yarn-cache.outputs.dir }}
8789
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -96,13 +98,13 @@ jobs:
9698
node-version: [18, 20]
9799
steps:
98100
- uses: actions/checkout@v2
99-
- uses: actions/setup-node@v1
101+
- uses: actions/setup-node@v3
100102
with:
101103
node-version: ${{ matrix.node-version }}
102104
- name: Get yarn cache
103105
id: yarn-cache
104106
run: echo "::set-output name=dir::$(yarn cache dir)"
105-
- uses: actions/cache@v2
107+
- uses: actions/cache@v3
106108
with:
107109
path: ${{ steps.yarn-cache.outputs.dir }}
108110
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -111,21 +113,21 @@ jobs:
111113
- name: Install Podfiles
112114
run: cd example && npx pod-install
113115
- name: Build example app
114-
run: yarn ios
116+
run: yarn ios --no-packager
115117
macos:
116118
runs-on: macos-latest
117119
strategy:
118120
matrix:
119121
node-version: [18, 20]
120122
steps:
121123
- uses: actions/checkout@v2
122-
- uses: actions/setup-node@v1
124+
- uses: actions/setup-node@v3
123125
with:
124126
node-version: ${{ matrix.node-version }}
125127
- name: Get yarn cache
126128
id: yarn-cache
127129
run: echo "::set-output name=dir::$(yarn cache dir)"
128-
- uses: actions/cache@v2
130+
- uses: actions/cache@v3
129131
with:
130132
path: ${{ steps.yarn-cache.outputs.dir }}
131133
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@@ -134,4 +136,4 @@ jobs:
134136
- name: Install Podfiles
135137
run: cd example/macos && npx pod-install
136138
- name: Build example app
137-
run: yarn macos
139+
run: yarn macos --no-packager

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ npm-debug.log
1010
yarn-error.log
1111

1212

13+
1314
# Xcode
1415
#
1516
build/
@@ -75,4 +76,5 @@ web-build
7576
dist/
7677

7778
# yarn files
78-
.yarn
79+
.yarn
80+
!.yarn/releases

.yarn/releases/yarn-4.1.1.cjs

+893
Large diffs are not rendered by default.

.yarnrc.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
15
nodeLinker: node-modules
6+
7+
yarnPath: .yarn/releases/yarn-4.1.1.cjs

example/.buckconfig

-6
This file was deleted.

example/.gitignore

+12-57
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,16 @@
1-
# OSX
2-
#
1+
*.binlog
2+
*.hprof
3+
*.xcworkspace/
4+
*.zip
35
.DS_Store
4-
5-
# Xcode
6-
#
7-
build/
8-
*.pbxuser
9-
!default.pbxuser
10-
*.mode1v3
11-
!default.mode1v3
12-
*.mode2v3
13-
!default.mode2v3
14-
*.perspectivev3
15-
!default.perspectivev3
16-
xcuserdata
17-
*.xccheckout
18-
*.moved-aside
19-
DerivedData
20-
*.hmap
21-
*.ipa
22-
*.xcuserstate
23-
24-
# Android/IntelliJ
25-
#
6+
.gradle/
7+
.idea/
8+
.vs/
9+
.xcode.env
10+
Pods/
2611
build/
27-
.idea
28-
.gradle
12+
dist/*
13+
!dist/.gitignore
2914
local.properties
30-
*.iml
31-
*.hprof
32-
33-
# node.js
34-
#
15+
msbuild.binlog
3516
node_modules/
36-
npm-debug.log
37-
yarn-error.log
38-
39-
# BUCK
40-
buck-out/
41-
\.buckd/
42-
*.keystore
43-
!debug.keystore
44-
45-
# fastlane
46-
#
47-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
48-
# screenshots whenever they are needed.
49-
# For more information about the recommended setup visit:
50-
# https://docs.fastlane.tools/best-practices/source-control/
51-
52-
*/fastlane/report.xml
53-
*/fastlane/Preview.html
54-
*/fastlane/screenshots
55-
56-
# Bundle artifact
57-
*.jsbundle
58-
59-
# Ruby / CocoaPods
60-
/ios/Pods/
61-
/vendor/bundle/

example/.watchmanconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{}
1+
{}

example/App.ts

-5
This file was deleted.

example/Gemfile

-6
This file was deleted.

example/Gemfile.lock

-100
This file was deleted.

example/_bundle/config

-2
This file was deleted.

example/_ruby-version

-1
This file was deleted.

0 commit comments

Comments
 (0)