Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update platform specific code inspiration code for Button component #19752

Closed
wants to merge 225 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
225 commits
Select commit Hold shift + click to select a range
edbc250
Update platform specific code inspiration code for Button component
cHaLkdusT Jun 16, 2018
1bdf0ad
FBJS: Upgrade to 0.8.17
yungsters Jun 16, 2018
9a4b243
React sync for revisions c0fe8d6...ae14317
yungsters Jun 16, 2018
35be485
Fix Stable release date of 0.58.0 (#19751)
ikesyo Jun 16, 2018
91b3d68
limit ndk jobs for RNTester on CI (#19755)
dulmandakh Jun 16, 2018
7f37735
Enable CocoaPods tests, add parallelism (#19764)
hramos Jun 16, 2018
1298f00
Moving more logs from Log -> Flog
mdvacca Jun 17, 2018
10a804b
Add support to receive null payload in events
mdvacca Jun 17, 2018
6597b2d
Add noop support for setJSResponder / clearJSReponder API methods
mdvacca Jun 17, 2018
2ff1f60
`Invalid JS responder` error was promoted to warning
shergin Jun 18, 2018
592d6a5
Fabric: Fixed error in parsing `position` style
shergin Jun 18, 2018
8a8cf35
Fabric: Fixed error in parsing translateX/translateY prop
shergin Jun 18, 2018
8d99416
Fabric: Fixed erratum in "borderRadius" prop name
shergin Jun 18, 2018
0dff67c
Fabric: Improved parsing EdgeInsets and CornerInsets styles
shergin Jun 18, 2018
b7c0130
Fabric: Universal `fromDynamic` for `std::vector<...>`
shergin Jun 18, 2018
1871b76
Make run-ios command play nicely with multiple Xcode versions (#19781)
futuun Jun 18, 2018
26db00b
Fix Modules concurrent access
Jun 18, 2018
1288ff6
Update Xcode projects (#19574)
Jun 18, 2018
0e70ebc
Revert D8489006: [react-native][PR] Update Xcode projects
hramos Jun 18, 2018
2b5ed42
Update react-native init's flowconfig
elicwhite Jun 18, 2018
b9fcf1c
Fabric: Fixed `Identity Transform` matrix literal
shergin Jun 19, 2018
33d0db9
Fixed RCTAssert nullability
dinhvh Jun 19, 2018
66b904d
Remove some methods that have `NS_UNAVAILABLE` set (#19790)
Jun 19, 2018
a15f854
Fix setJSResponder for Fabric
mdvacca Jun 19, 2018
15ab88a
AssetsLibrary.framework --> Photos.framework; ReactNative stuff
jdthomas Jun 19, 2018
6f41296
Replace projectRoots with projectRoot + watchRoots
Jun 19, 2018
26a439a
Fix more forwardRef displayNames
sahrens Jun 19, 2018
e2501a0
Avoid loading FabricUIManager from UIManagerModule in setJSResponder …
mdvacca Jun 19, 2018
fced1bd
iOS: Avoid double reload event when reloading JS
fkgozali Jun 20, 2018
e8f72e4
fix up double surface registration on JS load
fkgozali Jun 20, 2018
3a8b862
Include static properties in jest mocks for core components
elicwhite Jun 20, 2018
acc3d8c
Tightening the flow types for Image
elicwhite Jun 20, 2018
bd27280
Image from createReactClass -> ES6 Class
elicwhite Jun 20, 2018
ad6bd38
Remove unnecessary object check
elicwhite Jun 20, 2018
0032617
Update PULL_REQUEST_TEMPLATE.md (#19813)
hramos Jun 20, 2018
21f993e
Update Xcode projects (#19574)
Jun 20, 2018
d1eabda
Add @flow-strict support to .flowconfig
elicwhite Jun 20, 2018
1b14d09
Flow strictify possible files in RN core
elicwhite Jun 20, 2018
90e8d7b
Export Flow type for Image
elicwhite Jun 20, 2018
a0e770b
Fixed RCTAssert()
dinhvh Jun 20, 2018
13affd1
Fixed build eats
dinhvh Jun 20, 2018
c7dffe4
Bump metro@0.40.0
rafeca Jun 20, 2018
071b768
Animated Example using Image
elicwhite Jun 21, 2018
0fb6c1e
Flow type Image.android.js
elicwhite Jun 21, 2018
ed83627
Adding custom view to swipeable component
Jun 21, 2018
2772eaa
Fix broken default for Image.ios.js resizeMode back to cover
elicwhite Jun 21, 2018
587bf26
iOS: create EventTarget when creating EventEmitter and keep it until …
fkgozali Jun 21, 2018
58adb1f
Added Accessibility Feature for RN to support Smart Inversion for photos
Jun 21, 2018
4cee7d8
Added Ignore color inversion prop to components in marketplace
Jun 21, 2018
be5ae94
Deploy Flow v0.75.0 to fbsource
samwgoldman Jun 22, 2018
9c28189
Fabric: Using proper encoding for converting user-facing strings to N…
shergin Jun 22, 2018
ae13fdd
Fabric: Using `rootTag` instead of deprecated `rootViewTag` in Surfac…
shergin Jun 22, 2018
5dfc8df
Fabric: `pointScaleFactor` is now part of LayoutContext and LayoutMet…
shergin Jun 22, 2018
cca84f7
Fabric: Proxying `pointScaleFactor` to Yoga Config
shergin Jun 22, 2018
edf5803
Fabric: Introducing `ContextContainer`
shergin Jun 22, 2018
0d2af8b
Fabric: Getting rid of many `auto &&`
shergin Jun 22, 2018
d8c6a49
Fabric: Introducing ImageManager
shergin Jun 22, 2018
0c9fdc1
Fabric: <Image> component, xplat part
shergin Jun 22, 2018
c821244
Fabric: RCTImageComponentView
shergin Jun 22, 2018
fa02c4c
Fabric: `fromDynamic`: Parsing vector type when source has no array
shergin Jun 22, 2018
2612da6
Stop using projectRoots from RN cli
rafeca Jun 22, 2018
22b289f
Revert D8528543: Added Ignore color inversion prop to components in m…
Jun 22, 2018
2e65967
Clean-up parent / owner reference of children during clonning
mdvacca Jun 22, 2018
cf69071
Introduce "Sealing" of ReactShadowNodes
mdvacca Jun 22, 2018
aabbe9a
Add sealing assertion in fabric
mdvacca Jun 22, 2018
03e6dc8
Fabric: Conversion functions between NSString and std::string
shergin Jun 22, 2018
43b1366
Fabric: Added support of `accessibilityCustomActions` for <View>
shergin Jun 22, 2018
ec98caa
Fabric: Support for uniformed borders of <View>
shergin Jun 22, 2018
25c6069
Fabric: Default support of `displayType` and `layoutDirection` layout…
shergin Jun 22, 2018
cbc6a3b
Fabric: Bunch of unimplemented yet component was aliased to <View>
shergin Jun 22, 2018
047dee8
Fabric: Temporary experimental integration between old and new UIMana…
shergin Jun 22, 2018
de2b0c0
Fabric: Shadow node shallowing was removed from preventive cloning in…
shergin Jun 22, 2018
3bf2870
Fabric: Consistency assurance asserts in RCTComponentViewRegistry
shergin Jun 22, 2018
a75f170
Fabric: Fixed order of instructions in Differentiator
shergin Jun 22, 2018
5fc4677
Fabric: Dispatching `onLayout` events to only nodes which requested it
shergin Jun 23, 2018
c07d55e
Update screen-layout props during diffing
mdvacca Jun 23, 2018
3608dee
Fix deprecated glob usage.
ttsugriy Jun 24, 2018
c872221
Fabric: Fixed missed default value in parsing constructor of ViewProps
shergin Jun 24, 2018
3b2e818
Fix deprecated glob attribute usage.
ttsugriy Jun 24, 2018
ae334f8
Revert D8549084: Added Accessibility Feature for RN to support Smart …
Jun 24, 2018
a6fa49e
iOS: implement <PerformanceLoggerFlag> component
fkgozali Jun 24, 2018
40bf3fd
Move conditional logic into corresponding build defs.
ttsugriy Jun 24, 2018
c620f21
Skylarkify ReactNative OSS build defs.
ttsugriy Jun 25, 2018
4dba877
Fix external cell reference in OSS build.
ttsugriy Jun 25, 2018
5575d99
Fix deprecated glob usage.
ttsugriy Jun 25, 2018
8b61fef
Image with null source should still respect `style`
himabindugadupudi Jun 25, 2018
0a8f9f3
Revert D8576087: [RN][Android] Image with null source should still re…
himabindugadupudi Jun 25, 2018
c9d41cd
bump build tools to 26.0.3 (#19831)
dulmandakh Jun 25, 2018
5b5fee6
bump NDK APP_PLATFORM to android-16 (#19830)
dulmandakh Jun 26, 2018
ca82198
Bump Buck to v2018.06.25.01 (#19882)
hramos Jun 26, 2018
b551e63
use same signing config for debug build (#19760)
gengjiawen Jun 26, 2018
2120d85
Show packager error stack (#19705)
iyegoroff Jun 26, 2018
18f7c65
Improve performance for node reordering in FabricReconciler
mdvacca Jun 26, 2018
776bcde
Upgrade fbjni
passy Jun 26, 2018
c63ea1f
Enforce component name
Jun 26, 2018
f133951
clean buck binary_jar warnings (#19769)
dulmandakh Jun 26, 2018
e682139
Image with null source should still respect `style`
himabindugadupudi Jun 26, 2018
e606f54
Android ndk-build fix for ndk-r14+ (#18814)
dryganets Jun 26, 2018
a5108b7
Fabric: `fromDynamic` for float numbers was moved to `core` module
shergin Jun 26, 2018
1f05501
Fabric: Releasing image bitmap as part of `prepareForRecycle`
shergin Jun 26, 2018
671e885
Fabric: Embracing non-trivial default values of some Props
shergin Jun 26, 2018
4382c8b
RN: Fix Element Inspector w/ Negative Margins
yungsters Jun 26, 2018
148143c
YellowBox: Fix Off-By-1 Content Rendering Bug
yungsters Jun 26, 2018
ab1ab9a
RN: Fix Element Inspector w/ Start + End Styles
yungsters Jun 26, 2018
bb3a0d7
Suppress spurious warning about RCTCxxModule (#19880)
douglowder Jun 27, 2018
8146641
Fix: D8450498 breaks test_end_to_end job (#19910)
Jun 27, 2018
bed3247
Remove implementation of Nodes (react/flat package)
mdvacca Jun 27, 2018
80e20eb
Remove UIImplementationProvider class and refactor UIManagerModule
mdvacca Jun 27, 2018
077b734
Upgrade Prettier to 1.13.6 on fbsource
Jun 27, 2018
93c7479
Upgrading Metro to 0.39.2
Jun 27, 2018
4c0df67
bump double conversion to 1.1.6 (#19885)
dulmandakh Jun 27, 2018
a7ba9f8
Update buck website
gregoryfm Jun 27, 2018
26281b8
bump glog to 0.3.5 (#19890)
dulmandakh Jun 27, 2018
9b1dca7
Upgrade Jest to version 23.2.0 (#19876)
timwangdev Jun 27, 2018
3b70f93
android: allow registering custom packager command handlers
fkgozali Jun 27, 2018
e13cdc3
Fix extreme TextInput slowness on Android (#19645)
gnprice Jun 28, 2018
47f8648
gradle to set project-wide properties (#19845)
dulmandakh Jun 28, 2018
aca8e04
RN: Add Support for `overflow` on Android
yungsters Jun 28, 2018
86b121d
android targetSdkVersion is 26 (#19944)
dulmandakh Jun 28, 2018
6ce6924
- Correct fishhook import in RCTReconnectingWebSocket Fixes #16039 (#…
macdoum1 Jun 28, 2018
030b77c
added check for iOS 11 on ignore inverted colors
Jun 28, 2018
c17ebc2
Fix for 17497 (#17498)
ihenshaw Jun 28, 2018
1a334b6
fix undefined_arch error in Xcode 10 beta (#19841)
futuun Jun 28, 2018
f1013b8
fix: account for `ListHeaderComponent` length when calculating offset…
shakyShane Jun 28, 2018
d19c75e
Move babel-preset-react-native to metro repository
rafeca Jun 28, 2018
a5520a0
Avoid cleaning up Owner of YGNode during clonning
mdvacca Jun 29, 2018
e810ac2
RNTester: Cleanup ViewExample.js
yungsters Jun 29, 2018
758b121
RNTester: Better View Overflow Example
yungsters Jun 29, 2018
48b2cfb
RN: Revert D8666509
yungsters Jun 29, 2018
17b5f62
RN: Android Constants for Overflow Style
yungsters Jun 29, 2018
6fad10a
RN: Add Support for `overflow` on Android (Take 2)
yungsters Jun 29, 2018
c191d98
Fabric: Getting rid of `std::to_string()`
shergin Jun 29, 2018
34b8ab7
Fabric: Subtle changes that make GCC compiler happy
shergin Jun 29, 2018
ee980dd
remove useless config in circle ci (#19980)
gengjiawen Jun 29, 2018
121077f
Remove instanceHandle, pass event target instead + add dispatchToEmpt…
sebmarkbage Jun 29, 2018
b81e0bf
Fabric: Trivial implementation of prelumiary view allocation on iOS
shergin Jun 30, 2018
791b2de
Add back ImageEditingExample example (#19972)
gengjiawen Jul 1, 2018
7df6013
RN: Fix Drawing Rect for ReactScrollView
yungsters Jul 1, 2018
06e8903
Fabric: Making `fabric/graphics` compilable on Android
shergin Jul 2, 2018
1f04058
Fabric: Making `fabric/textlayoutmanager` compilable on Android
shergin Jul 2, 2018
cbcbf5a
Code clean-ups and createServer migration
Jul 2, 2018
b660b8f
Enable View flatening optimization by default
mdvacca Jul 2, 2018
9ddf681
fix missing prettier file (#20001)
gengjiawen Jul 2, 2018
9dc4fbf
Hotfix to include react-native-windows in hasteImpl accepted paths (#…
rubennorte Jul 2, 2018
986cc09
Fix some classes of incorrect Flow errors for Animated
Jul 2, 2018
abab1a9
Remove the deprecated `isIPhoneX_deprecated` constant (#19920)
janicduplessis Jul 2, 2018
81f3005
Simplify `yarn prettier` and make it work on windows (#19987)
gengjiawen Jul 2, 2018
1462797
iOS: avoid crash because of null eventTarget
fkgozali Jul 3, 2018
2c71059
Typo in DockerTests.md (#20009)
kant Jul 3, 2018
eff2cc3
RN: Add Overflow Visible Kill Switch (Android)
yungsters Jul 3, 2018
79b3b7a
Upgrade eslint to v5.0.1 on xplat
Jul 3, 2018
7fce00c
Do not use morgan internally
Jul 3, 2018
a81445f
Image source without uri should return null.
himabindugadupudi Jul 3, 2018
79222b7
@allow-large-files [react-native][PR] Upgrade Gradle to 4.4 (#19899)
dulmandakh Jul 4, 2018
b0b1bd4
Packager linking when using custom debug configuration on iOS device …
ZdravkoN Jul 4, 2018
f460c14
Fix react-native CLI (internal and external one)
Jul 4, 2018
a31d926
android: disable `setClipChildren(false)` until RN ART issue is resolved
fkgozali Jul 5, 2018
7af5978
Move ScrollView prop comments from propTypes to flow types
sahrens Jul 5, 2018
767b110
Fix some ScrollView lint
sahrens Jul 5, 2018
3becb6e
Remove ScrollView.propTypes
sahrens Jul 5, 2018
4ba13d8
Fix null source bug in Image view while accessing source's uri
himabindugadupudi Jul 5, 2018
b8da417
Back out "[react-native][PR] Remove the deprecated `isIPhoneX_depreca…
Jul 6, 2018
4f6d398
downloadBundleFromURL with an optional starting Request.Builder
yancouto Jul 6, 2018
c92cf12
Revert order of Remove Mount Item operations
mdvacca Jul 6, 2018
ce0e3c9
Reverting image source null so the fix can go all once later
himabindugadupudi Jul 6, 2018
4793071
Remove setJSEntryPoint from ReactRootView
ayc1 Jul 6, 2018
5a11550
Fabric: Improved prettyprinting of TreeMutationInstruction
shergin Jul 6, 2018
95e5a89
Fabric: The diffing algorithm does not use source nodes anymore
shergin Jul 6, 2018
8dfdb56
Revert D8683555: [react-native][PR] fix: account for `ListHeaderCompo…
bestander Jul 7, 2018
1726dab
Fix ScrollView logspew
Jul 8, 2018
5babc8d
Back out "[react-native][PR] Remove the deprecated `isIPhoneX_depreca…
Jul 8, 2018
9b7c19b
Enable RCTDevLoadingView with another flag
yancouto Jul 9, 2018
5f764c0
Flow v0.76.0
gabelevi Jul 9, 2018
bd8cd31
Upgraded babel-eslint to v9.0.0-beta.2 with better support for Flow
rubennorte Jul 9, 2018
2c2a333
added property accessibility IgnoresInvertColors to proptypes
Jul 9, 2018
44c4b96
Upgrade ESLint to 5.1.0
rubennorte Jul 9, 2018
404196a
Bump metro@0.42.0
rafeca Jul 10, 2018
22b3e08
Fixing Crush on SDK 15 (ICS) on ReactTextInputLocalData
Jul 10, 2018
cdcbf35
Bump metro@0.42.1
rafeca Jul 10, 2018
c405e3f
Unreverting Marketplace change for Inverted Color Ignorance
Jul 10, 2018
9773e07
added accessibilityRole Prop, added functionality support for role on…
Jul 10, 2018
c62a23d
Lint / reformat `YGJNI.cpp`
davidaurelio Jul 11, 2018
3e9c755
guards instead of nested if
davidaurelio Jul 11, 2018
b7ce6dd
Fixed issue with reloading bundle from remote debugger
Jul 11, 2018
4c3dbb6
Fix SingleFlex Child condition
priteshrnandgaonkar Jul 11, 2018
b7a2a26
Upgrade Jest to v23.4.0
Jul 11, 2018
f753d5c
Remove unused YGNode::*nextChild
swolchok Jul 11, 2018
af12f10
Inline simple YGNode getters/setters
swolchok Jul 11, 2018
88540eb
Lint java files
davidaurelio Jul 11, 2018
beb1795
Update deprecated glob usages.
ttsugriy Jul 11, 2018
abdb21e
Add missing tests for Animated.forkEvent (#20111)
slorber Jul 12, 2018
4905749
Add `YogaNodeProperties` interface
davidaurelio Jul 12, 2018
62b6b82
RN: Workaround for ReactNativeART on Android
yungsters Jul 12, 2018
cc98e46
Tidy up YGFloatOptional
swolchok Jul 12, 2018
02ce2b8
Fix crash in RCTImagePicker on iOS
Jul 12, 2018
ec9a321
removed tabbar for iOS 9 compatibility issues
Jul 12, 2018
8eee836
Upgraded Babel to v7.0.0-beta.48
rubennorte Jul 12, 2018
2ecaa8d
Cleanup clang compiler warnings
Jul 12, 2018
447b914
Adding new styling props to FlatList/VirtualizedList for ListHeaderCo…
Jul 12, 2018
05c4275
RN: Ignore Unused Rest Property Siblings
yungsters Jul 12, 2018
f29b32f
added in the three roles: search, adjustable, link that require local…
Jul 13, 2018
42c2172
added in the three roles: search, adjustable, link that require local…
Jul 13, 2018
80f7255
YGNode::getChildren() should return const ref
swolchok Jul 13, 2018
7affd3b
Tidy up YGFloatOptional further
swolchok Jul 13, 2018
5ce3d9e
Remove some unnecessary `const float &` uses
swolchok Jul 13, 2018
fbd0703
Skylarkify jni_instrumentation_test.
ttsugriy Jul 13, 2018
2a63583
Skylarkify ReactNative build defs.
ttsugriy Jul 15, 2018
7bd1c7d
Fix conditional load usage.
ttsugriy Jul 15, 2018
db161e2
Replace deprecated `UILineBreakModeWordWrap` with `NSLineBreakByWordW…
Jul 15, 2018
a4a57e1
Fabric: Generalizing cloning of YogaLayoutable approach
shergin Jul 15, 2018
a68ee40
Fabric: Removed last two plactical usages of `ShadowNode::sourceNode_`
shergin Jul 15, 2018
cd1ee99
Fabric: ShadowNode::getSourceNode() was finally removed
shergin Jul 15, 2018
054173e
Fabric: Enhancements in ContextContainer
shergin Jul 15, 2018
61f9114
Fabric: Computed attributed string caching inside <Paragraph>
shergin Jul 15, 2018
458a4e8
Fabric: `text` module was moved to `components` subdirectory
shergin Jul 15, 2018
cf6daf4
Fabric: `scrollview` module was moved to `components` subdirectory
shergin Jul 15, 2018
9470b0f
Fabric: `view` module was moved to `components` subdirectory
shergin Jul 15, 2018
8c88f1f
Fabric: `activityindicator` module was moved to `components` subdirec…
shergin Jul 15, 2018
4555a43
Fabric: <Root> component was decoupled from <View>
shergin Jul 15, 2018
c7fc28a
- Invalid use of destructuring
Jul 16, 2018
5e12e6b
Fix JSLocaleTest
ayc1 Jul 16, 2018
88c1675
Add @DoNotStrip to RemoteConnection methods
Hypuk Jul 16, 2018
3a5aba8
Added ImageEditor comment to clarify image access policy.
Jul 16, 2018
51a7ba7
added image button as option for accessibility role
Jul 17, 2018
bef6d4d
added image button role on iOS
Jul 17, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
138 changes: 70 additions & 68 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ aliases:

- &restore-cache-buck
keys:
- v3-buck-{{ arch }}-v2018.03.26.01
- v3-buck-{{ arch }}-v2018.06.25.01
- &save-cache-buck
paths:
- ~/buck
- ~/okbuck
key: v3-buck-{{ arch }}-v2018.03.26.01
key: v3-buck-{{ arch }}-v2018.06.25.01

- &restore-cache-watchman
keys:
Expand Down Expand Up @@ -145,7 +145,7 @@ aliases:
name: Install BUCK
command: |
if [[ ! -e ~/buck ]]; then
git clone https://github.com/facebook/buck.git ~/buck --branch v2018.03.26.01 --depth=1
git clone https://github.com/facebook/buck.git ~/buck --branch v2018.06.25.01 --depth=1
fi
cd ~/buck && ant
buck --version
Expand Down Expand Up @@ -176,7 +176,7 @@ aliases:
- &configure-android-path
name: Configure Environment Variables
command: |
echo 'export PATH=${ANDROID_NDK}:~/react-native/gradle-2.9/bin:~/buck/bin:$PATH' >> $BASH_ENV
echo 'export PATH=${ANDROID_NDK}:~/buck/bin:$PATH' >> $BASH_ENV
source $BASH_ENV

- &install-android-packages
Expand All @@ -203,13 +203,17 @@ aliases:
# eslint sometimes runs into trouble generating the reports
- &run-lint-checks
name: Lint code
command: scripts/circleci/exec_swallow_error.sh yarn lint --format junit -o ~/react-native/reports/junit/eslint/results.xml
when: always
command: |
if [ $((0 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
scripts/circleci/exec_swallow_error.sh yarn lint --format junit -o ~/react-native/reports/junit/eslint/results.xml
fi

- &run-flow-checks
name: Check for errors in code using Flow
command: yarn flow check
when: always
command: |
if [ $((0 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
yarn flow check
fi

- &run-sanity-checks
name: Sanity checks
Expand Down Expand Up @@ -281,31 +285,64 @@ aliases:

- &boot-simulator-iphone
name: Boot iPhone Simulator
command: xcrun simctl boot "iPhone 5s" || true
command: |
if [ $((0 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
xcrun simctl boot "iPhone 5s" || true
fi

- &boot-simulator-appletv
name: Boot Apple TV Simulator
command: xcrun simctl boot "Apple TV" || true
command: |
if [ $((1 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
xcrun simctl boot "Apple TV" || true
fi

- &run-objc-ios-tests
name: iOS Test Suite
command: ./scripts/objc-test-ios.sh test
command: |
if [ $((0 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
./scripts/objc-test-ios.sh test
fi

- &run-objc-tvos-tests
name: tvOS Test Suite
command: ./scripts/objc-test-tvos.sh test
command: |
if [ $((1 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
./scripts/objc-test-tvos.sh test
fi

- &run-podspec-tests
name: Test CocoaPods
command: |
if [ $((2 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
./scripts/process-podspecs.sh
fi

- &run-e2e-tests
name: End-to-End Test Suite
command: node ./scripts/run-ci-e2e-tests.js --ios --tvos --js --retries 3;
command: node ./scripts/run-ci-e2e-tests.js --android --ios --tvos --js --retries 3;

- &run-objc-ios-e2e-tests
name: iOS End-to-End Test Suite
command: node ./scripts/run-ci-e2e-tests.js --ios --retries 3;
command: |
if [ $((0 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
node ./scripts/run-ci-e2e-tests.js --ios --retries 3;
fi

- &run-objc-tvos-e2e-tests
name: tvOS End-to-End Test Suite
command: node ./scripts/run-ci-e2e-tests.js --tvos --js --retries 3;
command: |
if [ $((1 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
node ./scripts/run-ci-e2e-tests.js --tvos --js --retries 3;
fi

- &run-android-e2e-tests
name: Android End-to-End Test Suite
command: node ./scripts/run-ci-e2e-tests.js --android --retries 3;

- &run-js-e2e-tests
name: JavaScript End-to-End Test Suite
command: node ./scripts/run-ci-e2e-tests.js --js --retries 3;

defaults: &defaults
working_directory: ~/react-native
Expand Down Expand Up @@ -339,7 +376,6 @@ macos_defaults: &macos_defaults

version: 2
jobs:

# Set up a Node environment for downstream jobs
checkout_code:
<<: *js_defaults
Expand Down Expand Up @@ -386,42 +422,35 @@ jobs:
- store_test_results:
path: ~/react-native/reports/junit

# Runs unit tests on iOS devices
test_ios:
# Runs unit tests on iOS and Apple TV devices
test_objc:
<<: *macos_defaults
parallelism: 3
steps:
- attach_workspace:
at: ~/react-native

- run: *boot-simulator-iphone
- run: brew install watchman
- run: *run-objc-ios-tests

- store_test_results:
path: ~/react-native/reports/junit

# Runs unit tests on tvOS devices
test_tvos:
<<: *macos_defaults
steps:
- attach_workspace:
at: ~/react-native

- run: *boot-simulator-appletv
- run: brew install watchman

- run: *run-objc-ios-tests
- run: *run-objc-tvos-tests
- run: *run-podspec-tests

- store_test_results:
path: ~/react-native/reports/junit

# Runs end to end tests
test_end_to_end:
<<: *macos_defaults
parallelism: 2
steps:
- attach_workspace:
at: ~/react-native

- run: *boot-simulator-iphone
- run: *boot-simulator-appletv

- run:
name: Configure Environment Variables
Expand All @@ -437,19 +466,12 @@ jobs:
node -v

- run: *run-objc-ios-e2e-tests
# Disabled for now
# - run: *run-objc-tvos-e2e-tests

- store_test_results:
path: ~/react-native/reports/junit

# Checks podspec
test_podspec:
<<: *macos_defaults
steps:
- attach_workspace:
at: ~/react-native

- run: ./scripts/process-podspecs.sh

# Publishes new version onto npm
publish_npm_package:
<<: *android_defaults
Expand Down Expand Up @@ -569,7 +591,11 @@ jobs:
- run:
name: Build Android RNTester
command: |
./gradlew RNTester:android:app:assembleRelease
./gradlew RNTester:android:app:assembleRelease -Pjobs=$BUILD_THREADS

# Run Android end-to-end tests
# Disabled
# - run: *run-android-e2e-tests

# Collect Results
- run: *collect-android-test-results
Expand Down Expand Up @@ -626,7 +652,6 @@ workflows:

tests:
jobs:

# Checkout repo and run Yarn
- checkout_code:
filters: *filter-ignore-gh-pages
Expand All @@ -650,11 +675,7 @@ workflows:
- checkout_code

# Test iOS & tvOS
- test_ios:
filters: *filter-ignore-gh-pages
requires:
- checkout_code
- test_tvos:
- test_objc:
filters: *filter-ignore-gh-pages
requires:
- checkout_code
Expand All @@ -674,8 +695,8 @@ workflows:
only: /v[0-9]+(\.[0-9]+)*(\-rc(\.[0-9]+)?)?/
requires:
- test_javascript
- test_ios
- test_tvos
- test_objc
- test_android
- test_end_to_end
- analyze

Expand All @@ -691,22 +712,3 @@ workflows:
filters: *filter-ignore-master-stable
requires:
- checkout_code


# These tests are flaky or are yet to be fixed. They are placed on their own
# workflow to avoid marking benign PRs as broken.
# To run them, uncomment the entire block and open a PR (do not merge).
# Once a test is fixed, move the test definition to the 'tests' workflow.
# disabled_tests:
# jobs:
# # Checkout repo and run Yarn (pre-req, should succeed)
# - checkout_code:
# filters: *filter-ignore-gh-pages

# # The following were DISABLED because they have not run since
# # the migration from Travis, and they have broken since then,
# # CocoaPods
# - test_podspec:
# filters: *filter-ignore-gh-pages
# requires:
# - checkout_code
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"no-undef": 2, // disallow use of undeclared variables unless mentioned in a /*global */ block
"no-undefined": 0, // disallow use of undefined variable (off by default)
"no-undef-init": 1, // disallow use of undefined when initializing variables
"no-unused-vars": [1, {"vars": "all", "args": "none"}], // disallow declaration of variables that are not used in the code
"no-unused-vars": [1, {"vars": "all", "args": "none", ignoreRestSiblings: true}], // disallow declaration of variables that are not used in the code
"no-use-before-define": 0, // disallow use of variables before they are defined

// Node.js
Expand Down
25 changes: 24 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,28 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[lints]
all=warn

# There is an ESLint rule for this
unclear-type=off

sketchy-null=off
sketchy-null-number=warn
sketchy-null-mixed=warn

# This is noisy for now. We *do* still want to warn on importing types
# from untyped files, which is covered by untyped-type-import
untyped-import=off

[strict]
deprecated-type
nonstrict-import
sketchy-null
unclear-type
unsafe-getters-setters
untyped-import
untyped-type-import

[version]
^0.74.0
^0.76.0
30 changes: 7 additions & 23 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
Thank you for sending the PR! We appreciate you spending the time to work on these changes.
Help us understand your motivation by explaining why you decided to make this change.

<!--
Required: Write your motivation here.
If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged.
-->

## Test Plan

<!--
Required: Write your test plan here. If you changed any code, please provide us with
clear instructions on how you verified your changes work. Bonus points for screenshots and videos!
-->
If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged.

## Related PRs
Test Plan:
----------
Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!

<!--
Does this PR require a documentation change?
Create a PR at https://github.com/facebook/react-native-website and add a link to it here.
-->

## Release Notes

<!--
Required.
Help reviewers and the release process by writing your own release notes. See below for an example.
-->
Release Notes:
--------------
Help reviewers and the release process by writing your own release notes. See below for an example.

[CATEGORY] [TYPE] [LOCATION] - Message

Expand Down
2 changes: 1 addition & 1 deletion ContainerShip/Dockerfile.android-base
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ LABEL maintainer="Héctor Ramos <hector@fb.com>"
ARG SDK_VERSION=sdk-tools-linux-3859397.zip
ARG ANDROID_BUILD_VERSION=26
ARG ANDROID_TOOLS_VERSION=26.0.3
ARG BUCK_VERSION=v2018.03.26.01
ARG BUCK_VERSION=v2018.06.25.01
ARG NDK_VERSION=10e
ARG NODE_VERSION=8.10.0
ARG WATCHMAN_VERSION=4.9.0
Expand Down
2 changes: 1 addition & 1 deletion DockerTests.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ There are two Dockerfiles for use with the Android codebase.

The `Dockerfile.android-base` contains all the necessary prerequisites required to run the React Android tests. It is
separated out into a separate Dockerfile because these are dependencies that rarely change and also because it is quite
a beastly image since it contains all the Android depedencies for running android and the emulators (~9GB).
a beastly image since it contains all the Android dependencies for running android and the emulators (~9GB).

The good news is you should rarely have to build or pull down the base image! All iterative code updates happen as
part of the `Dockerfile.android` image build.
Expand Down
Loading