Skip to content

Commit 1d31948

Browse files
Alfonso Curbeloalfonsocj-cb
andauthored
chore: migrate example to react-native-test-app (#653)
* Migrate example to react-native-test-app * Upgrade example to 0.70 * Update CONTRIBUTING.md * update flow version Co-authored-by: Alfonso Curbelo <[email protected]>
1 parent 268b2de commit 1d31948

File tree

87 files changed

+3535
-4922
lines changed

Some content is hidden

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

87 files changed

+3535
-4922
lines changed

.circleci/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
- run:
4848
command: yarn install --frozen-lockfile
4949
name: yarn install
50+
- run:
51+
command: yarn bundle:ios
52+
name: bundle js
5053
- rn/pod_install:
5154
pod_install_directory: 'example/ios'
5255
- run:
@@ -90,6 +93,9 @@ jobs:
9093
- run:
9194
command: yarn install --frozen-lockfile
9295
name: yarn install
96+
- run:
97+
command: yarn bundle:android
98+
name: bundle js
9399
- run:
94100
command: yarn detox:android:build:release
95101
name: build app for e2e tests

.flowconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ nonstrict-import=warn
5050
deprecated-type=warn
5151
unsafe-getters-setters=warn
5252
unnecessary-invariant=warn
53-
signature-verification-failure=warn
5453

5554
[strict]
5655
deprecated-type
@@ -62,4 +61,4 @@ untyped-import
6261
untyped-type-import
6362

6463
[version]
65-
^0.158.0
64+
^0.182.0

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ For cleaning all the detox builds just run `npm run detox:clean`.
4242
- release:
4343

4444
```sh
45+
yarn bundle:ios # we need to bundle js first
46+
cd "example/ios" && npx pod-install && cd - # run pod install to include bundle
4547
yarn detox:ios:build:release
4648
yarn detox:ios:test:release
4749
```
@@ -62,6 +64,7 @@ An existing Android emulator is required to match the name defined in `detox.con
6264
- release:
6365

6466
```sh
67+
yarn bundle:android # we need to bundle js first
6568
yarn detox:android:build:release
6669
yarn detox:android:test:release
6770
```

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ['module:metro-react-native-babel-preset'],
3+
}

example/.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/.gitignore

Lines changed: 10 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,14 @@
1-
# OSX
2-
#
1+
*.binlog
2+
*.hprof
3+
*.xcworkspace/
4+
*.zip
35
.DS_Store
4-
5-
# Xcode
6-
#
6+
.gradle/
7+
.idea/
8+
.vs/
9+
Pods/
710
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-
project.xcworkspace
24-
25-
# Android/IntelliJ
26-
#
27-
build/
28-
.idea
29-
.gradle
11+
dist/
3012
local.properties
31-
*.iml
32-
33-
# node.js
34-
#
13+
msbuild.binlog
3514
node_modules/
36-
npm-debug.log
37-
yarn-error.log
38-
39-
# BUCK
40-
buck-out/
41-
\.buckd/
42-
43-
# fastlane
44-
#
45-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
46-
# screenshots whenever they are needed.
47-
# For more information about the recommended setup visit:
48-
# https://docs.fastlane.tools/best-practices/source-control/
49-
50-
*/fastlane/report.xml
51-
*/fastlane/Preview.html
52-
*/fastlane/screenshots
53-
54-
# Bundle artifact
55-
*.jsbundle

example/.watchmanconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

example/android/app/BUCK

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)