Skip to content

Commit 2348d05

Browse files
authored
Add test for React Native 0.65 (#358)
1 parent 5f5424c commit 2348d05

Some content is hidden

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

65 files changed

+9643
-3
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,20 +218,20 @@ workflows:
218218
- test-ios:
219219
matrix:
220220
parameters:
221-
react-native-version: ['0.63', '0.64']
221+
react-native-version: ['0.64', '0.65']
222222
requires:
223223
- lint
224224
- test-js
225225
- test-hermes-ios:
226226
matrix:
227227
parameters:
228-
react-native-version: ['0.64']
228+
react-native-version: ['0.64', '0.65']
229229
requires:
230230
- test-ios-<< matrix.react-native-version >>
231231
- test-hermes-android:
232232
matrix:
233233
parameters:
234-
react-native-version: ['0.63', '0.64']
234+
react-native-version: ['0.64', '0.65']
235235
requires:
236236
- lint
237237
- test-js

detox/rn-0.65/.buckconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
[android]
3+
target = Google Inc.:Google APIs:23
4+
5+
[maven_repositories]
6+
central = https://repo1.maven.org/maven2

detox/rn-0.65/.detoxrc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"testRunner": "jest",
3+
"runnerConfig": "e2e/config.json",
4+
"configurations": {
5+
"ios.sim.release": {
6+
"type": "ios.simulator",
7+
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/Detox.app",
8+
"build": "xcodebuild -workspace ios/Detox.xcworkspace -scheme Detox -configuration Release -sdk iphonesimulator -derivedDataPath ios/build",
9+
"device": {
10+
"type": "iPhone 11 Pro"
11+
}
12+
},
13+
"android.emu.release": {
14+
"type": "android.emulator",
15+
"binaryPath": "android/app/build/outputs/apk/release/app-release.apk",
16+
"build": "cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..",
17+
"device": {
18+
"avdName": "Pixel_3_API_29"
19+
}
20+
}
21+
}
22+
}

detox/rn-0.65/.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Windows files
2+
[*.bat]
3+
end_of_line = crlf

detox/rn-0.65/.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native-community',
4+
};

detox/rn-0.65/.flowconfig

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
[ignore]
2+
; We fork some components by platform
3+
.*/*[.]android.js
4+
5+
; Ignore "BUCK" generated dirs
6+
<PROJECT_ROOT>/\.buckd/
7+
8+
; Ignore polyfills
9+
node_modules/react-native/Libraries/polyfills/.*
10+
11+
; Flow doesn't support platforms
12+
.*/Libraries/Utilities/LoadingView.js
13+
14+
[untyped]
15+
.*/node_modules/@react-native-community/cli/.*/.*
16+
17+
[include]
18+
19+
[libs]
20+
node_modules/react-native/interface.js
21+
node_modules/react-native/flow/
22+
23+
[options]
24+
emoji=true
25+
26+
exact_by_default=true
27+
28+
module.file_ext=.js
29+
module.file_ext=.json
30+
module.file_ext=.ios.js
31+
32+
munge_underscores=true
33+
34+
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
35+
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
36+
37+
suppress_type=$FlowIssue
38+
suppress_type=$FlowFixMe
39+
suppress_type=$FlowFixMeProps
40+
suppress_type=$FlowFixMeState
41+
42+
[lints]
43+
sketchy-null-number=warn
44+
sketchy-null-mixed=warn
45+
sketchy-number=warn
46+
untyped-type-import=warn
47+
nonstrict-import=warn
48+
deprecated-type=warn
49+
unsafe-getters-setters=warn
50+
unnecessary-invariant=warn
51+
signature-verification-failure=warn
52+
53+
[strict]
54+
deprecated-type
55+
nonstrict-import
56+
sketchy-null
57+
unclear-type
58+
unsafe-getters-setters
59+
untyped-import
60+
untyped-type-import
61+
62+
[version]
63+
^0.149.0

detox/rn-0.65/.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Windows files should use crlf line endings
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
*.bat text eol=crlf

detox/rn-0.65/.gitignore

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# OSX
2+
#
3+
.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+
#
26+
build/
27+
.idea
28+
.gradle
29+
local.properties
30+
*.iml
31+
32+
# node.js
33+
#
34+
node_modules/
35+
npm-debug.log
36+
yarn-error.log
37+
38+
# BUCK
39+
buck-out/
40+
\.buckd/
41+
*.keystore
42+
!debug.keystore
43+
44+
# fastlane
45+
#
46+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47+
# screenshots whenever they are needed.
48+
# For more information about the recommended setup visit:
49+
# https://docs.fastlane.tools/best-practices/source-control/
50+
51+
*/fastlane/report.xml
52+
*/fastlane/Preview.html
53+
*/fastlane/screenshots
54+
55+
# Bundle artifact
56+
*.jsbundle
57+
58+
# CocoaPods
59+
/ios/Pods/

detox/rn-0.65/.prettierrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
bracketSpacing: false,
3+
jsxBracketSameLine: true,
4+
singleQuote: true,
5+
trailingComma: 'all',
6+
arrowParens: 'avoid',
7+
};

detox/rn-0.65/.watchmanconfig

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

0 commit comments

Comments
 (0)