Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1923 commits
Select commit Hold shift + click to select a range
a2fd3fc
Bump [email protected]
rafeca Nov 27, 2017
028b64b
Fix logging unpacking time when it happens concurrently with eager un…
alexeylang Nov 27, 2017
03956c4
Use different symbols for SystraceSection depending on WITH_FBYSTRACE
Nov 27, 2017
ba1d7e9
【iOS】fix tvOS file 'React/Base/RCTTVRemoteHandler*' included in iOS
yacosdad Nov 27, 2017
a7d46ea
Integrate React DevTools with Sonar
RSNara Nov 28, 2017
0bef872
TextInput: Fixed autoscroll to cursor on Android
shergin Nov 28, 2017
ca7fe72
Fix border-rendering in APIs < 18 cont.
RSNara Nov 28, 2017
ae51730
Add a bundle type to logger output and type
Nov 28, 2017
72e762d
Suppress unused warnings on YGDefaultLog
woehrl01 Nov 28, 2017
0c8a3e4
closes #13034 Fixes the ScrollViewMock methods
alvaromb Nov 28, 2017
d1fc8ef
Fix embeddedBundleURL update situation
Nov 29, 2017
92c0980
Update Performance.md
kelset Nov 29, 2017
654fed4
Rename metro-bundler to metro
cpojer Nov 29, 2017
0091496
Export Config/defaults on Metro's main module
cpojer Nov 29, 2017
aba148f
Rename ReactPackager -> Metro
Nov 29, 2017
ad4b124
Update iOS RNTester header to utilize SafeAreaView
vincentriemer Nov 29, 2017
22a1419
Fix $FlowFixMe in Flatlist
cdlewis Nov 29, 2017
cd938d7
React sync for revisions 2d23a45...9491dee
Nov 29, 2017
21714fe
Removing RCTUIManager.unsafeFlushUIChangesBeforeBatchEnds experiment
shergin Nov 29, 2017
c6fe101
export SeparatorsObj type for re-use in ListItems etc.
sahrens Nov 29, 2017
2e424fb
Generalize ActionSheetManager items URL
fxfactorial Nov 29, 2017
554e873
Implement deletion of asset-library files
fxfactorial Nov 29, 2017
240039c
Remove $FixMe flow suppression
elicwhite Nov 29, 2017
d674d48
Run buildifier over all BUCK files
zertosh Nov 30, 2017
343c5a9
Tell template app .flowconfig to look for .native.js files
Ashoat Nov 30, 2017
71b498b
Introducing `[RCTUIManager _executeBlockWithShadowView:forTag:]`
shergin Nov 30, 2017
4fdaf2d
Fix min/max percentage constraints on measured nodes
woehrl01 Nov 30, 2017
dfebcb7
Don't set global.performance to undefined if it was initialized already
alexeylang Dec 1, 2017
19b0a65
Improve accessibilityLabel performance
chendo Dec 1, 2017
94cd9f5
Update native-modules-android.md
dsandmark Dec 1, 2017
3362da4
Remove website deploys
hramos Dec 1, 2017
6da8979
Fixing bad link to RN documentation.
ryanml Dec 2, 2017
c544c0d
Docs - README.md - tweaks (separator, thumbnail logo)
Dec 2, 2017
801cbdb
Autofixes for migrating to Buck's source-only ABI feature
jkeljo Dec 2, 2017
6e1db1f
Change doc link to point to AnimatedValueXY
garlic-rice-with-butter Dec 2, 2017
2e1707d
Fix RCTRefreshControl jumping
sophiebits Dec 4, 2017
11a2a35
Fix Jest mocks for Dimensions module
uk-ar Dec 4, 2017
081f7d1
RCTSurface: Fixed problem in stage propagation
shergin Dec 4, 2017
da17b23
RCTSurface: Use async dispatch to register root shadow view
shergin Dec 4, 2017
e9e0cd7
RCTSurface: Couple helper functions for Stage
shergin Dec 4, 2017
43b2509
RCTSurface: activityIndicatorViewFactory was removed from RCTSurfaceView
shergin Dec 4, 2017
ba60751
RCTSurface: Stopping the app on surface object deallocation
shergin Dec 4, 2017
d2f0abd
Fix Android comment and docblock typos
swashcap Dec 4, 2017
95dac8d
Updated broken link.
harikrishnanp Dec 4, 2017
5b83dbe
Update stale JavaDoc reference
Dec 4, 2017
ad4450a
prevent scheduling unnecessary layoutanimation
koenpunt Dec 4, 2017
1e1e491
Avoid memory leak in RCTWebSocketModule
Dec 4, 2017
ca10604
Fix local-cli's installedGlobally check to work on Windows platforms
sballew Dec 4, 2017
e19d9de
Make testID work for iOS tabs
frantic Dec 4, 2017
4ebe76d
Add lwinkyawmyat to GitHub IssueCommands.txt
lwinkyawmyat Dec 4, 2017
c8e72bb
@allow-large-files [flow] deploy flow 0.60
mroch Dec 4, 2017
4d37cf0
RCTSurface: RCTSurfaceHostingView, interop layer beteween UIKit and R…
shergin Dec 4, 2017
ff3dc2e
Silence RCTInspectorPackagerConnection logspam
adamjernst Dec 5, 2017
36ad813
Adding support for custom accessibility actions on iOS.
ericdavmsft Dec 5, 2017
d71d28f
RCTSurfaceStage.m was added to project file
shergin Dec 5, 2017
de424cc
Add inspector attach to RN Dev Menu (iOS)
pakoito Dec 5, 2017
7c7108a
Add inspector attach to RN Dev Menu (Android)
pakoito Dec 5, 2017
b08a912
vector instead of YGNodeList
priteshrnandgaonkar Dec 5, 2017
830b431
Bump [email protected]
rafeca Dec 5, 2017
b1701cc
Fix RCTInspectorPackagerConnection logspam for real
adamjernst Dec 5, 2017
71006f7
Fixes for migrating to Buck's source-only ABI feature
jkeljo Dec 5, 2017
a99f0d6
Temporarily patched Map/Set non-extensible check into RN dev renderer
Dec 5, 2017
2d86618
Split out docs to their own repo
hramos Dec 5, 2017
33d5e5b
Fix help link in issue template
charpeni Dec 6, 2017
c49b97c
Update PULL_REQUEST_TEMPLATE.md
hramos Dec 6, 2017
ec2ea58
Upgrade Jest to "21.3.0-beta.13"
Dec 6, 2017
4034feb
Round size geometry for Button and RichText components.
iaroslav-pavlov Dec 7, 2017
9f33fe2
Upgrade to 1.9.1
adamjernst Dec 7, 2017
1988ba1
react-native: BundleSegments: remove async/await
Dec 7, 2017
76a2ca4
Fix some flow errors that appear
deecewan Dec 7, 2017
8547b7e
Correct logo URL
gusgard Dec 7, 2017
3d5dc87
Add callback for Connection/Disconnection to Metro
pakoito Dec 7, 2017
a7b231a
metro: introduce asyncRequire function
Dec 7, 2017
f59140e
Use clang-5.0 -Oz
gkmhub Dec 7, 2017
d19afc7
Use currentActivity to display redbox, loading view and dev menu
kmagiera Dec 8, 2017
e76abfa
Revert D6155682: Use clang-5.0 -Oz
bnham Dec 8, 2017
5ee27ff
Fork Platform with a modified API
Dec 8, 2017
8f9b291
Providing an API to load assets from a different directory
Dec 8, 2017
3bcb912
Report all errors from running tests
sahrens Dec 9, 2017
ed2bfcb
Skalarkify flags macros.
ttsugriy Dec 10, 2017
1d16923
Add remote API to uninstall the global error handler in RN
pakoito Dec 11, 2017
c465599
Fix BadTokenException and IllegalArgmentException thrown when showing…
mdvacca Dec 11, 2017
dab313a
Revert D6437807: [react-native][PR] Generalize ActionSheetManager ite…
olegbl Dec 11, 2017
ecec431
metro-buck: add e2e testing of command
Dec 11, 2017
0a8721c
Renaming uiManagerWillFlushUIBlocks -> uiManagerWillPerformMounting
shergin Dec 12, 2017
60dc9be
-[RCTUIManagerObserver uiManagerDidPerformMounting]
shergin Dec 12, 2017
cb49877
Backed out changeset 4fe617216293
RSNara Dec 12, 2017
a255204
Removing `reactBridgeDidFinishTransaction` from RCTScrollView
shergin Dec 12, 2017
098a63a
ScrollView related files were moved to dedicated folder
shergin Dec 12, 2017
29f3f55
Do not overwrite the same text in ReactEditText
Dec 12, 2017
914ae93
Update to Flow v0.61.0
nmote Dec 12, 2017
0b1e644
remove embeddedBundleURL
Dec 12, 2017
f8fe6b0
Explicitly #define isnan __builtin_isnan for Android clang-5 to mimic…
gkmhub Dec 13, 2017
fbf0aed
Implement changes needed to HMRClient to handle wrapped modules from …
rafeca Dec 13, 2017
eaa8499
Fix - argument type in RCTEventEmitter
Dec 13, 2017
2d4bedb
add CoreEventTypes with LayoutEvent
sahrens Dec 13, 2017
434f432
Meyers singleton jsc error extractor
johnislarry Dec 13, 2017
71751e9
Allow extending props supported by native animations
andrewimm Dec 13, 2017
85503a0
Fixed retain cycle in RCTFBHTTPRequestHandler
shergin Dec 13, 2017
61d046b
Flow Type ActionSheetIOS
elicwhite Dec 14, 2017
ee8a7b4
Some TouchableHighlight cleanup
sahrens Dec 14, 2017
59c3e33
Fix isNuclideDebuggingAvailable on iOS
pakoito Dec 14, 2017
f871d25
metro-buck: check validity of segments
Dec 14, 2017
e8eec24
Fix crashing Systrace when debugging JS remotely
alexeylang Dec 14, 2017
ee521f9
Add extra data view to RN RedBox
Dec 14, 2017
ea2e2c5
Make the __DEV__ argument check more robust
mhorowitz Dec 14, 2017
b952365
std::string to const char*
johnislarry Dec 14, 2017
2fecbf6
Add RCTLibraryPathForURL in RCTUtil
Dec 14, 2017
eca51eb
Type global hooks as function pointers
johnislarry Dec 14, 2017
f4d627c
Fix failure due to missing Metro flow types
hramos Dec 14, 2017
5f8d8e9
Switch to `declare module.exports` syntax
samwgoldman Dec 15, 2017
d9c6585
Fix a crash when keyboard is visible and bridge reload happens
fromcelticpark Dec 15, 2017
88f6f69
Skylarkify config_utils_defs macros.
ttsugriy Dec 15, 2017
5a1171e
Fix backgroundColor with TouchableHighlight
sahrens Dec 15, 2017
29dafa1
Move Terminal to metro-core
Dec 15, 2017
7a5d5a4
Move formatBanner to metro-core
Dec 15, 2017
48019a0
Add metro-core to the package.jsons that use it
Dec 15, 2017
bef7967
move page registration logic in to jsinspector
bnham Dec 15, 2017
4cd685a
Bump metro and all packages to v0.24.0
Dec 15, 2017
d326c86
Update metro version to v0.24.1
Dec 15, 2017
8c8944c
Removing `inherited background color` optimization from RCTText
shergin Dec 15, 2017
d021dd2
Fix typo in RCTSurfaceHostingView
maicki Dec 16, 2017
6ae0b34
Fix FIGTabs SST race
sahrens Dec 16, 2017
4803419
Update to Jest 22.0.0
Dec 18, 2017
2789ba0
zIndex prop was removed from RCTShadowView
shergin Dec 18, 2017
c01a171
Removing `inherited background color` optimization from ARTSurfaceView
shergin Dec 18, 2017
b8e60a3
reactSetInheritedBackgroundColor was removed from RCTView
shergin Dec 18, 2017
099b280
`reactBridgeDidFinishTransaction` was removed from RCTNavigator
shergin Dec 18, 2017
b263560
reactBridgeDidFinishTransaction was removed from RCTTabBar
shergin Dec 18, 2017
d2dc451
reactBridgeDidFinishTransaction was finally removed
shergin Dec 18, 2017
2668dc8
Support virtualization and onViewableItemsChanged for nested, same-or…
logandaniels Dec 18, 2017
3852c42
add isInspectable property
bnham Dec 18, 2017
15cd98b
add isInspectable property
bnham Dec 18, 2017
0673ac2
improve detection of inspectable JS contexts
bnham Dec 18, 2017
dabb78b
Removing <TextInput autoGrow={true}>
shergin Dec 18, 2017
632f120
Switch `declare function exports` to `declare module.exports`
samwgoldman Dec 19, 2017
350377f
Tweak FIGListItem layout
sahrens Dec 19, 2017
d89901f
Use wildcard instead of manual file addition
priteshrnandgaonkar Dec 19, 2017
2679f3e
Demolishing of background color propagation infra
shergin Dec 19, 2017
30da262
avoid redbox in handleWrappedEvent
bnham Dec 19, 2017
f1055bc
Make YGNode as c++ struct with properties exposed through accessors
priteshrnandgaonkar Dec 19, 2017
a010a0c
Fix virtualized cell keys for list headers and footers
logandaniels Dec 19, 2017
6ad1f09
Kill orphaned marker end in JSCExecutor
Dec 19, 2017
5c8481e
Fixed black ARTSurfaceView
shergin Dec 20, 2017
19a9c5e
The Great File Renaming in RCTText
shergin Dec 20, 2017
4996b9a
On Android, seperate logic to initialize JS from starting the app
axe-fb Dec 20, 2017
7d1deda
New implementation of handling `didUpdateReactSubviews` and `didUpdat…
shergin Dec 20, 2017
c79246d
Removed unnecessary code path in `[RCTUIManager updateView:]`
shergin Dec 20, 2017
0ae4c47
`-[UIView _DEBUG_reactShadowView]` was removed
shergin Dec 20, 2017
59c7967
document isInspectable
bnham Dec 20, 2017
5ea5683
Separate JavaScript lint/flow checks from tests
hramos Dec 20, 2017
9b147a5
Clarify use of Flow props types in cli example
hramos Dec 20, 2017
f9f40cd
JSBigString to MAP_PRIVATE not MAP_SHARED
Dec 20, 2017
2e008bc
Bump metro to v0.24.2
rafeca Dec 20, 2017
a0ff8c7
Fix ReactLegacy and delete RCTViewControllerProtocol
javache Dec 20, 2017
4216cde
Do not use Node 8.x specific Stream.final
hramos Dec 21, 2017
fc5e340
Revert D6596375: [RN] Removed unnecessary code path in `[RCTUIManager…
shergin Dec 21, 2017
0b5e8b4
Bump metro to v0.24.3
rafeca Dec 21, 2017
4cdbb77
Do not set FB_ASSERTION_ENABLED
priteshrnandgaonkar Dec 21, 2017
ba31d29
Replace native cxx_library with fb-specific macros.
ttsugriy Dec 21, 2017
489b98b
remove embeddedBundleURL
Dec 21, 2017
7ff6657
Add top offset for react loading view on Kitkat
kmagiera Dec 21, 2017
c547f78
Update Docker images to latest Android SDK, Buck
hramos Dec 22, 2017
3559e42
Make sure VirtualizedList's windowSize is greater than 0
logandaniels Dec 22, 2017
a163f70
Optimize the performance of Origami
priteshrnandgaonkar Dec 22, 2017
077c3ab
Define internal FB macro for OSS builds.
ttsugriy Dec 22, 2017
b750e3b
Update to Danger 2.0
hramos Dec 22, 2017
4e76701
Fix buck failures on master
hramos Dec 22, 2017
33da604
Include OSS defs in Yoga BUCK
hramos Dec 22, 2017
6661633
use working getting started url
Dec 22, 2017
85ff264
Update CODEOWNERS
hramos Dec 22, 2017
4fbfbe6
Update image
hramos Dec 23, 2017
4a1bb8f
Do not set minify=true when calculating the list of dependencies
rafeca Dec 23, 2017
a6a66c5
Remove last usages of cxx_library.
ttsugriy Dec 24, 2017
33a2e53
Update HTTP -> HTTPS in links in the docs
him2him2 Dec 24, 2017
56a42e5
remove "prepareReact" call from the iOS bridge
fromcelticpark Dec 26, 2017
80f9e1f
remove "prepareReact" call from the Android bridge
fromcelticpark Dec 26, 2017
1fd7315
Remove unnecessary include
Dec 27, 2017
0ec1017
Fixed double initial prop applying for newly created views
shergin Dec 28, 2017
f9e742a
Fix buck failure
hramos Dec 28, 2017
4d33080
better Keyabord event utils
sahrens Dec 28, 2017
d3b41e0
Set minHeight instead of minWidth for calculating the layout in RCTSu…
maicki Dec 28, 2017
52f350a
Add proptypes for scrollview drag start & end handlers
ExplodingCabbage Dec 28, 2017
fa574c6
Set host of development server for setupDevtools
jhen0409 Dec 29, 2017
a8391bd
SectionList renderItem should be optional
Dec 29, 2017
ddd65f1
Support snapToInterval for horizontal scrollview on Android
Jan 3, 2018
c9ff0bc
Implement onKeyPress Android
joshjhargreaves Jan 4, 2018
e57a43b
Revert D6531148: Fix BadTokenException and IllegalArgmentException th…
mdvacca Jan 5, 2018
33d710e
adds --port option to `react-native run-ios` as well as patches port …
Jan 5, 2018
c49d249
Send scroll velocity data to Javascript on momentum scroll events.
wwalser Jan 5, 2018
45e6fcd
Modernize ScrollResponder.js
elicwhite Jan 5, 2018
e3c6f38
RNTester: Relax Bridge Release Check
yungsters Jan 5, 2018
46be5bf
Forgotten setNeedsLayout in -[UIManager intrinsicContentSize:]
shergin Jan 5, 2018
0356cbd
Fix BadTokenException when displaying warning messages
mdvacca Jan 5, 2018
2815ada
De-dupe eslint rules from xplat/js
elicwhite Jan 6, 2018
f71f4e7
RN: Create TextProps (Flow for Text Props)
yungsters Jan 6, 2018
af226ef
Designated methods to control dirty propagation
shergin Jan 8, 2018
d9e5b31
Helpers for proper conversion float values between CG and YG represen…
shergin Jan 8, 2018
f96f9c5
Sideeffectless measuring of shadow views
shergin Jan 8, 2018
b2a2519
Proper usage CGFLOAT_MAX vs INFINITY inside RCTSurface
shergin Jan 8, 2018
176a578
'-[RCTSurfaceRootShadowView sizeThatFitsMinimumSize:]' was removed
shergin Jan 8, 2018
c491b22
RCTBaseTextInputViewManager: new base class for TextInput view managers
shergin Jan 8, 2018
e46ea8c
Refined -[RCTUIManager createView:]
shergin Jan 8, 2018
c3139d7
Fixed crash happenned on deallocating RCTSurface
shergin Jan 8, 2018
654d759
Update terminal title to 'Metro Bundler'
edcs Jan 8, 2018
28968e2
Move YGCloneChildrenIfNeeded as a method on `YGNode`
priteshrnandgaonkar Jan 8, 2018
0a9e652
Move markDirtyInternal as a method in YGNode
priteshrnandgaonkar Jan 8, 2018
6627d77
Moved YGResolveFlexGrow as a method on YGNode
priteshrnandgaonkar Jan 8, 2018
d85da86
Move YGNodeResolveFlexShrink to a method on YGNode
priteshrnandgaonkar Jan 8, 2018
e5c2a66
Fix Modal not disappearing when navigating from inside a Modal to ano…
mdvacca Jan 8, 2018
6b95c4f
@allow-large-files [Flow] Upgrade xplat/js to flow v0.63
gabelevi Jan 8, 2018
183c316
Strengthen React Native eslint rules
elicwhite Jan 8, 2018
9c67e74
Move Lint Rules to React Native
elicwhite Jan 8, 2018
79902f9
Finish migration from jasmine to jest
elicwhite Jan 8, 2018
9a36872
Use jest eslint plugin to disallow disabled tests
elicwhite Jan 8, 2018
67a3c42
Require valid expect
elicwhite Jan 8, 2018
c756122
Proper implementation of [RCTWrapper sizeThatFits:]
shergin Jan 8, 2018
870bc48
Yoga float vs. CoreGraphics float in RCTWrapper
shergin Jan 8, 2018
b826596
Remove unused eslint-plugin-babel
elicwhite Jan 9, 2018
a1a0a69
Enable eslint-plugin-eslint-comments in RN
elicwhite Jan 9, 2018
11a495c
Fixing eslint-comments warnings
elicwhite Jan 9, 2018
e2c2655
Merge https://github.com/facebook/react-native into merge-0.52.0
ptmt Jan 28, 2018
e28da3a
Fix React and RNTester project files, make React target buildable
ptmt Jan 28, 2018
2a00a67
Update RCTText: add legacy text inputs implementations
ptmt Jan 29, 2018
0422181
Make RNTesterApp successfully compiled
ptmt Feb 8, 2018
60ad1aa
Fix minor js errors
ptmt Feb 20, 2018
b5b7180
Run react-codemod to transform React.createClass to the new syntax
ptmt Feb 20, 2018
aa34740
Make RNTesterApp work at some extent, update license to MIT License.
ptmt Feb 21, 2018
e90a325
Fix ActivityIndicator
ptmt Feb 25, 2018
d718805
Fix bunch of other examples
ptmt Feb 25, 2018
ada42a3
Do not process transform into matrix
ptmt Feb 25, 2018
b68c83d
Disable selection property for text inputs which is not implemented yet
ptmt Feb 25, 2018
2b8d3f9
Fix a couple of examples and single line TextInput
ptmt Mar 1, 2018
2fe3a8f
Access on ScrollView event body in main UI thread
ptmt Mar 1, 2018
713f58a
Fix a couple of tests, use .macos suffix with integrations tests
ptmt Mar 1, 2018
76ba253
Run macos scripts
Pagebakers Mar 30, 2018
5c00287
Remove trailing slash
Pagebakers Mar 30, 2018
2ed5607
Add folly to package
Pagebakers Mar 30, 2018
6905ed6
Merge pull request #191 from forwarder/merge-0.52.0
ptmt Mar 31, 2018
c586708
Fix project path resolve path
Pagebakers Apr 5, 2018
87ddb1f
Fix paths
Pagebakers Apr 5, 2018
80c87eb
Merge pull request #192 from forwarder/merge-0.52.0
ptmt Apr 5, 2018
96dc15e
Fix metro bundling not being able to resolve haste dependencies
ptmt Apr 5, 2018
1c09282
Disable bezeled border
Pagebakers May 18, 2018
0adeb09
Add cli options
Pagebakers May 18, 2018
1af1be4
Remove typescript, as it is not compiled by rnpm
Pagebakers May 18, 2018
66f9f60
Update CG context to osx API
Pagebakers Jun 1, 2018
6dfc35f
Merge pull request #197 from forwarder/merge-0.52.0-rnpm-plugin
ptmt Jun 2, 2018
68ceed1
Merge pull request #198 from forwarder/merge-0.52.0-art
ptmt Jun 2, 2018
2d7a7e8
Set correct anchor point to fix animations
Pagebakers Jun 8, 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
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions .buckconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
[android]
target = Google Inc.:Google APIs:23

[download]
max_number_of_retries = 3

[maven_repositories]
central = https://repo1.maven.org/maven2

[alias]
movies = //Examples/Movies/android/app:app
uiexplorer = //Examples/UIExplorer/android/app:app
rntester = //RNTester/android/app:app
350 changes: 350 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,350 @@
aliases:
- &restore-node-cache
keys:
- v1-dependencies-{{ arch }}-{{ checksum "package.json" }}
# Fallback in case checksum fails
- v1-dependencies-{{ arch }}-

- &save-node-cache
paths:
- node_modules
key: v1-dependencies-{{ arch }}-{{ checksum "package.json" }}

- &restore-cache-analysis
keys:
- v1-analysis-dependencies-{{ arch }}-{{ checksum "package.json" }}{{ checksum "danger/package.json" }}
# Fallback in case checksum fails
- v1-analysis-dependencies-{{ arch }}-
- &save-cache-analysis
paths:
- danger/node_modules
- node_modules
key: v1-analysis-dependencies-{{ arch }}-{{ checksum "package.json" }}{{ checksum "danger/package.json" }}

- &restore-cache-android-packages
keys:
- v2-android-sdkmanager-packages-{{ arch }}-{{ checksum "scripts/circle-ci-android-setup.sh" }}
# Fallback in case checksum fails
- v2-android-sdkmanager-packages-{{ arch }}-
- &save-cache-android-packages
paths:
- /opt/android/sdk
key: v2-android-sdkmanager-packages-{{ arch }}-{{ checksum "scripts/circle-ci-android-setup.sh" }}

- &restore-cache-ndk
keys:
- v1-android-ndk-{{ arch }}-r10e-32-64

- &install-ndk
|
source scripts/circle-ci-android-setup.sh && getAndroidNDK

- &save-cache-ndk
paths:
- /opt/ndk
key: v1-android-ndk-{{ arch }}-r10e-32-64

- &restore-cache-buck
keys:
- v2-buck-{{ arch }}-v2017.11.16.01
- &save-cache-buck
paths:
- ~/buck
key: v2-buck-{{ arch }}-v2017.11.16.01

- &restore-cache-watchman
keys:
- v1-watchman-{{ arch }}-v4.9.0
- &save-cache-watchman
paths:
- ~/watchman
key: v1-watchman-{{ arch }}-v4.9.0

- &install-node-dependencies
|
npm install --no-package-lock --no-spin --no-progress

- &install-buck
|
if [[ ! -e ~/buck ]]; then
git clone https://github.com/facebook/buck.git ~/buck --branch v2017.11.16.01 --depth=1
fi
cd ~/buck && ant
buck --version

- &install-node
|
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

- &run-node-tests
|
npm test -- --maxWorkers=2

- &run-lint-checks
|
npm run lint

- &run-flow-checks
|
npm run flow -- check


- &filter-only-master-stable
branches:
only:
- /.*-stable/
- master

- &filter-only-stable
branches:
only:
- /.*-stable/

- &filter-ignore-gh-pages
branches:
ignore: gh-pages

- &filter-ignore-master-stable
branches:
ignore:
- master
- /.*-stable/
- gh-pages

- &create-ndk-directory
|
if [[ ! -e /opt/ndk ]]; then
sudo mkdir /opt/ndk
fi
sudo chown ${USER:=$(/usr/bin/id -run)}:$USER /opt/ndk

# CircleCI does not support interpolating env variables in the environment
# https://circleci.com/docs/2.0/env-vars/#interpolating-environment-variables-to-set-other-environment-variables
- &configure-android-path
|
echo 'export PATH=${ANDROID_NDK}:~/react-native/gradle-2.9/bin:~/buck/bin:$PATH' >> $BASH_ENV
source $BASH_ENV

- &install-android-packages
|
source scripts/circle-ci-android-setup.sh && getAndroidSDK

- &install-build-dependencies
|
sudo apt-get update -y
sudo apt-get install ant autoconf automake g++ gcc libqt5widgets5 lib32z1 lib32stdc++6 make maven python-dev python3-dev qml-module-qtquick-controls qtdeclarative5-dev file -y

- &build-android-app
name: Build Android App
command: |
buck build ReactAndroid/src/main/java/com/facebook/react
buck build ReactAndroid/src/main/java/com/facebook/react/shell

- &wait-for-avd
name: Wait for Android Virtual Device
command: source scripts/circle-ci-android-setup.sh && waitForAVD

- &check-js-bundle
name: Check for JavaScript Bundle
command: |
if [[ ! -e ReactAndroid/src/androidTest/assets/AndroidTestBundle.js ]]; then
echo "JavaScript bundle missing, verify build-js-bundle step"; exit 1;
else
echo "JavaScript bundle found.";
fi

- &compile-native-libs
name: Compile Native Libs for Unit and Integration Tests
command: ./gradlew :ReactAndroid:packageReactNdkLibsForBuck -Pjobs=$BUILD_THREADS -Pcom.android.build.threadPoolSize=1
no_output_timeout: 6m

- &run-android-unit-tests
name: Unit Tests
command: buck test ReactAndroid/src/test/... --config build.threads=$BUILD_THREADS

- &run-android-integration-tests
name: Build and Install Test APK
command: source scripts/circle-ci-android-setup.sh && NO_BUCKD=1 retry3 buck install ReactAndroid/src/androidTest/buck-runner:instrumentation-tests --config build.threads=$BUILD_THREADS

- &collect-android-test-results
name: Collect Test Results
command: |
mkdir -p ~/junit/
find . -type f -regex ".*/build/test-results/debug/.*xml" -exec cp {} ~/junit/ \;
find . -type f -regex ".*/outputs/androidTest-results/connected/.*xml" -exec cp {} ~/junit/ \;
when: always

defaults: &defaults
working_directory: ~/react-native

android_defaults: &android_defaults
<<: *defaults
docker:
- image: circleci/android:api-26-alpha
resource_class: "large"
environment:
- TERM: "dumb"
- ADB_INSTALL_TIMEOUT: 10
- _JAVA_OPTIONS: "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
- GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-XX:+HeapDumpOnOutOfMemoryError"'
- ANDROID_NDK: '/opt/ndk/android-ndk-r10e'
- BUILD_THREADS: 2

version: 2
jobs:
# Runs JavaScript lint and flow checks
run-js-checks:
<<: *defaults
docker:
- image: circleci/node:8
steps:
- checkout
- restore-cache: *restore-node-cache
- run: *install-node-dependencies
- save-cache: *save-node-cache
- run: *run-lint-checks
- run: *run-flow-checks

# Runs JavaScript tests on Node 8
test-js-node-8:
<<: *defaults
docker:
- image: circleci/node:8
steps:
- checkout
- restore-cache: *restore-node-cache
- run: *install-node-dependencies
- save-cache: *save-node-cache
- run: *run-node-tests

# Runs JavaScript tests on Node 6
test-js-node-6:
<<: *defaults
docker:
- image: circleci/node:6
steps:
- checkout
- restore-cache: *restore-node-cache
- run: *install-node-dependencies
- save-cache: *save-node-cache
- run: *run-node-tests

# Runs unit tests on iOS devices
test-objc-ios:
<<: *defaults
macos:
xcode: "9.0"
dependencies:
pre:
- xcrun instruments -w "iPhone 5s (10.3.1)" || true
steps:
- checkout
- restore-cache: *restore-node-cache
- run: *install-node-dependencies
- save-cache: *save-node-cache
- run: ./scripts/objc-test-ios.sh

# Runs end to end tests
test-objc-e2e:
<<: *defaults
macos:
xcode: "9.0"
dependencies:
pre:
- xcrun instruments -w "iPhone 5s (10.3.1)" || true
steps:
- checkout
- restore-cache: *restore-node-cache
- run: *install-node-dependencies
- save-cache: *save-node-cache
- run: node ./scripts/run-ci-e2e-tests.js --ios --js --retries 3;

# # Checks podspec
# test-podspec:
# <<: *defaults
# macos:
# xcode: "9.0"
# steps:
# - checkout
# - restore-cache: *restore-node-cache
# - run: *install-node-dependencies
# - save-cache: *save-node-cache
# - run: ./scripts/process-podspecs.sh
#
# # Publishes new version onto npm
# deploy:
# <<: *android_defaults
# steps:
# - checkout
#
# # Configure Android dependencies
# - run: *configure-android-path
# - run: *install-build-dependencies
# - restore-cache: *restore-cache-android-packages
# - run: *install-android-packages
# - save-cache: *save-cache-android-packages
# - run: *create-ndk-directory
# - restore-cache: *restore-cache-ndk
# - run: *install-ndk
# - save-cache: *save-cache-ndk
# - restore-cache: *restore-cache-buck
# - run: *install-buck
# - save-cache: *save-cache-buck
# - run: *install-node
# - restore-cache: *restore-node-cache
# - run: *install-node-dependencies
# - save-cache: *save-node-cache
# - run: buck fetch ReactAndroid/src/test/java/com/facebook/react/modules
# - run: buck fetch ReactAndroid/src/main/java/com/facebook/react
# - run: buck fetch ReactAndroid/src/main/java/com/facebook/react/shell
# - run: buck fetch ReactAndroid/src/test/...
# - run: buck fetch ReactAndroid/src/androidTest/...
# - run: ./gradlew :ReactAndroid:downloadBoost :ReactAndroid:downloadDoubleConversion :ReactAndroid:downloadFolly :ReactAndroid:downloadGlog :ReactAndroid:downloadJSCHeaders
#
# - run:
# name: Publish React Native Package
# command: |
# if [ -z "$CIRCLE_PULL_REQUEST" ]; then
# echo "//registry.npmjs.org/:_authToken=${CIRCLE_NPM_TOKEN}" > ~/.npmrc
# git config --global user.email "[email protected]"
# git config --global user.name "npm Deployment Script"
# echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" > ~/.netrc
# node ./scripts/publish-npm.js
# else
# echo "Skipping deploy."
# fi

# Workflows enables us to run multiple jobs in parallel
workflows:
version: 2

build:
jobs:

# Run lint and flow checks
- run-js-checks:
filters: *filter-ignore-gh-pages

# Test JavaScript on Node 8 and 6
- test-js-node-8:
filters: *filter-ignore-gh-pages
- test-js-node-6:
filters: *filter-ignore-gh-pages

# Test iOS & tvOS
- test-objc-ios:
filters: *filter-ignore-gh-pages
- test-objc-e2e:
filters: *filter-ignore-gh-pages

# # If we are on a stable branch, deploy to `npm`
# - hold:
# type: approval
# - deploy:
# filters: *filter-only-stable
# requires:
# - hold

- analyze-pull-request:
filters: *filter-ignore-master-stable
6 changes: 5 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
**/staticBundle.js
**/main.js
Libraries/vendor/**/*
packager/src/worker-farm/**/*
Libraries/Renderer/*
pr-inactivity-bookmarklet.js
question-bookmarklet.js
flow/
danger/
Loading