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

Facebook 0.58.6 merge (with conflicts) #11

Merged
merged 1,047 commits into from
Mar 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1047 commits
Select commit Hold shift + click to select a range
41eb2da
Fix inline styles warning in Libraries (#22161)
ignacioola Nov 6, 2018
e02a154
Allow overriding Metro server host with a system prop
stepanhruda Nov 6, 2018
1f394fa
iOS: Attempt to load lazy modules when asked from native
fkgozali Nov 7, 2018
31439f8
Fix build error caused by -Werror=class-memaccess (#823)
hooddanielc Nov 7, 2018
2a8f6c3
Add Yoga JNI bindings to libcoldstart
davidaurelio Nov 7, 2018
bccc454
console polyfill: pass unsupported messages to original console
Hypuk Nov 7, 2018
e57ad4e
Fix IllegalArgumentException when dismissing ReactModalHostView
mdvacca Nov 8, 2018
70e9e26
TextInput: Remove PropTypes, NativeMethodsMixin; Convert to ES6 class…
empyrical Nov 8, 2018
ad7d8f8
Fix internal types on top of TextInput refactor
elicwhite Nov 8, 2018
7e818ae
Fixing TextInput related jest tests
elicwhite Nov 8, 2018
e6a8dca
TextInput add back propTypes
elicwhite Nov 8, 2018
0cb59b5
React sync for revisions 4773fdf...3ff2c7c
yungsters Nov 8, 2018
54e8d6c
Fix args passed when measuring Androidwitch
axe-fb Nov 8, 2018
50e9b0f
Enable unused-private-field warning (#13450)
Nov 8, 2018
8d5d144
Update oss lockfile
Nov 8, 2018
fe49809
Replace String with constants for Module names in Fb4aCoreInfraPackage
axe-fb Nov 8, 2018
81b74ec
Give eagerly loaded modules precedent over lazily loaded one.
d16r Nov 8, 2018
8329c10
Stop mounting of Views when there is an exception in Native
mdvacca Nov 9, 2018
cd5009f
Temporary disable AndroidSwipeRefreshLayout
mdvacca Nov 9, 2018
fe7eb61
Force navigation to use root tag
mdvacca Nov 9, 2018
7b04f6a
Add systrace support in Fabric C++
mdvacca Nov 9, 2018
95b21b4
Refactor 'induce' of events in Fabric Android
mdvacca Nov 9, 2018
2b01da0
Expose rootTag / surfaceId as part of schedulerDidRequestPreliminaryV…
mdvacca Nov 9, 2018
bf2500e
Switch to synchronous strategy for unprotect
mhorowitz Nov 9, 2018
7b3c91e
Fix inline styles eslint warnings for examples (#22123)
ignacioola Nov 9, 2018
f386f83
Back out TextInput es6 conversion
elicwhite Nov 9, 2018
d623679
`Removing UIManager.measureViewsInRect()`
shergin Nov 9, 2018
918a7d5
Turn off static linking for cxxreact:bridge
christolliday Nov 9, 2018
0b31496
Adds support for `publicPath` to enable serving assets from different…
gdborton Nov 9, 2018
28278e1
Fix Shimmer in Fabric Android
mdvacca Nov 9, 2018
803e993
Use static constants instead of strings when referring to View Manage…
axe-fb Nov 9, 2018
d2408dd
Fabric: Making EventEmitter::setEnabled additive
shergin Nov 9, 2018
fba7c1e
Add copyright header into ContextUtils class
mdvacca Nov 9, 2018
d7865eb
Add another guard to lazilyLoadView
Nov 9, 2018
80f92ad
iOS: ignore double registration of lazy modules with chrome attached
fkgozali Nov 9, 2018
df7e8c6
Fix ReactInstanceManager deadlock
ayc1 Nov 9, 2018
1850906
Use nativeQPLTimestamp for InitializeCore marker point
Nov 9, 2018
d4aef08
Add a marker to indicate when JS thread priority is lowered
axe-fb Nov 9, 2018
be282b5
Fix ReactRootView attachRootView race condition
ayc1 Nov 10, 2018
2bf0d54
Only include ServerHost constant in debug builds
stepanhruda Nov 10, 2018
188cbb0
Reset module registry flag when resetting React Instance
Nov 10, 2018
9f9390d
Moved androidID constant to a method
axe-fb Nov 10, 2018
94d49e5
Fabric: Codemod: All `<fabric/...` includes were renamed to `<react/...`
shergin Nov 10, 2018
33b9661
Avoid pre-allocating views for non-layoutable shadow nodes
mdvacca Nov 11, 2018
0436bfc
UITemplateProcessor: Fix case of include path (#22239)
empyrical Nov 12, 2018
bea57d8
DeltaPatcher: better support for the new Delta format
Nov 12, 2018
c787866
Clearer HMR error messages
Nov 12, 2018
eebc8e2
NetInfo: try to solve crash with releasing _firstTimeReachability
Nov 12, 2018
de60e86
Bump [email protected]
rafeca Nov 12, 2018
a525941
Bump [email protected]
rafeca Nov 12, 2018
11d4512
Update React Native OSS Yarn and Gradle caches
hramos Nov 14, 2018
8826d8b
Allow CxxModules to implement methods with two callbacks (#21586)
Nov 14, 2018
d7a0c44
iOS: add moduleForNameForcedLoad: to lookup modules by name and force…
fkgozali Nov 14, 2018
339d9d3
Guard Platform.isTesting under __DEV__
fkgozali Nov 14, 2018
2e465bc
Android: Close websocket properly when remote server initiates close …
syaau Nov 14, 2018
0408533
Fix regression in StyleSheet.setStyleAttributePreprocessor (#22262)
brentvatne Nov 14, 2018
a508134
Fixed HTTP connection timeout on Android (#22164)
Nov 14, 2018
6eb5bd3
added functionality using which child node can tell parent node to us…
SidharthGuglani-zz Nov 14, 2018
e02a24b
Dispatch events asynchronously
mdvacca Nov 14, 2018
39b8fa9
iOS TM: Rename RCTJSINativeModule => RCTTurboModule
fkgozali Nov 14, 2018
9b781bd
Remove unused loads from xplat.
ttsugriy Nov 14, 2018
83405ff
Fix crash when releasing RN views
ayc1 Nov 14, 2018
56a416e
nullptr -> folly::none in fbobjc/xplat
chadaustin Nov 14, 2018
b649fa9
Fix crash when removing root nodes
ayc1 Nov 14, 2018
06c13b3
Upgrade jest to v24.0.0-alpha.6
rafeca Nov 14, 2018
5b71408
Remove dynamic exception specification in RN MethodCall.h/cpp
yiding Nov 15, 2018
43ad3a6
Flow v0.86.0 in xplat/js [3/n]
panagosg7 Nov 15, 2018
984eef8
Revert D12994045: Flow v0.86.0 in xplat/js [3/n]
Nov 15, 2018
b971c5b
Workaround a wrong fling direction for inverted ScrollViews on Androi…
mandrigin Nov 15, 2018
619de16
Back to yearless format for MIT license
davidaurelio Nov 15, 2018
aacb06c
Fix React Native AsyncMode and DevTools
Nov 15, 2018
5939d07
Fix compatibility issue for android 16 device.Fixes #22294 (#22295)
gengjiawen Nov 15, 2018
d9c2cda
JS: Switch from `new Buffer` to `Buffer.from`
yungsters Nov 15, 2018
4aeea4d
Changed front-facing camera so that it shows consistent image during …
Nov 15, 2018
271ace9
Defining explicit clang-format for Objective-C part of React Native
shergin Nov 16, 2018
673ef39
resizeMode applies to Image.defaultSource (#22216)
dulmandakh Nov 16, 2018
a009406
New TextInput-test that would have prevented S168585
sahrens Nov 16, 2018
9ea1295
reapply TextInput es6 conversion with fixes, attemps to fix
sahrens Nov 16, 2018
0c05409
CxxReact: Silence 'unused lambda capture' warnings in open-source (#2…
empyrical Nov 16, 2018
8fb228f
Flow v0.86.0 in xplat/js
panagosg7 Nov 16, 2018
383ea99
Add bounce method to TouchableBounce
Nov 16, 2018
6f34bc4
Back out "reapply TextInput es6 conversion with fixes, attemps to fix"
sahrens Nov 16, 2018
17ced57
Add test for WritableNativeMap
ayc1 Nov 17, 2018
8911353
create api to allow clients to present a client credential for authen…
jsonblob Nov 17, 2018
1de79e1
Fabric: Fixed bug in RCTSurfaceTouchHandler::PointerHasher
shergin Nov 17, 2018
868406d
Fabric: Using non-mutating `at` instead of `[]` for `-[RCTSurfaceTouc…
shergin Nov 17, 2018
560652c
Fabric: Proper implementation `-[RCTSurfaceTouchHandler reset]`
shergin Nov 17, 2018
74f6575
Cleanup old Fabric methods from ReactShadowNodeImpl
mdvacca Nov 17, 2018
d3a7325
Fix scrolling with multiple fingers in RN Fabric scrollView
mdvacca Nov 17, 2018
dcf72ff
Change font size default from 12 to 14
mdvacca Nov 17, 2018
2dbe769
NIT remove unnecessary cast in measure
mdvacca Nov 17, 2018
8367fa9
Implement layout constraint when measuring text
mdvacca Nov 17, 2018
7b2030b
Fix padding for Text Views in Fabric
mdvacca Nov 17, 2018
bea3bb6
DrawerLayoutAndroid: Convert to ES6 class (#21980)
empyrical Nov 17, 2018
346c9d5
Surface: Using screen size as a default maximum size of Fabric Surface
shergin Nov 17, 2018
1fa56a0
Rename requiresMainThreadSetup -> requiresMainQueueSetup in code comm…
karanjthakkar Nov 18, 2018
55994f5
Replace global.alert use to fix eslint warnings (#22184)
vcalvello Nov 20, 2018
27cfba2
Remove useless additionnal blur call (#22156)
Nov 20, 2018
70826db
iOS: Support inline view truncation (#21456)
Nov 20, 2018
aad83cc
iOS TM: RCTEnableJSINativeModule => RCTEnableTurboModule
fkgozali Nov 20, 2018
45c5183
Flow strict TouchableBounce (#22197)
exced Nov 21, 2018
7927497
Flow strict TextProps (#22122)
exced Nov 21, 2018
35a65cd
Flow strict TextInput (#22250)
exced Nov 21, 2018
da0b139
Improve Flow types
RSNara Nov 21, 2018
f22473e
Fix jsc regression.Fixes #22274 (#22293)
gengjiawen Nov 21, 2018
a97d104
Flow strict TouchableHighlight (#22173)
exced Nov 21, 2018
fb4825a
Flow strict ScrollResponder (#22181)
saitoxu Nov 21, 2018
c127000
Flow strict-local in TimePickerAndroid.android.js (#22188)
binaryta Nov 21, 2018
6fa997d
Flow strict StatusBar (#22282)
watanabeyu Nov 21, 2018
3649a50
Flow TouchableNativeFeedback.android.js (#22176)
mottox2 Nov 21, 2018
1f32b5d
then to thenValue changes to allow deletion of value-taking continuat…
LeeHowes Nov 22, 2018
3ecf4ea
Fabric: ShadowNode::backtrackAncestors(...)
shergin Nov 22, 2018
9eec2c3
Fabric: LayoutableShadowNode::getRelativeLayoutMetrics()
shergin Nov 22, 2018
71208f0
Fabric: Getting rid of leftovers in Scheduler
shergin Nov 22, 2018
b4fa1fa
Fabric: Introducing ShadowTreeRegistry
shergin Nov 22, 2018
f8be867
Fabric: Sharing a pointer to ShadowTreeRegister with UIManager
shergin Nov 22, 2018
7e57755
Fabric: `UIManager::getRelativeLayoutMetrics`
shergin Nov 22, 2018
9c96133
Fabric: `ParagraphShadowNode::updateLocalDataIfNeeded()`
shergin Nov 22, 2018
0a293a0
Fix ReactAndroid build break. (#22377)
Kudo Nov 22, 2018
02a3517
Fix allocating Buffer in early commit (#22379)
radeno Nov 22, 2018
ecc7012
Fabric: Fixed `AttributedString::operator==`
shergin Nov 22, 2018
3337a1d
Add getUndefined() method to obtain the undefined value
amir-shalem Nov 22, 2018
f8ff6bd
Pass primitives by value
davidaurelio Nov 22, 2018
64d162e
Dealloc JNI implementation experiment
davidaurelio Nov 22, 2018
c34ad17
Pass enums by value
davidaurelio Nov 22, 2018
8f283b9
`YGNodeComputeFlexBasisForChildren`: remove output param
davidaurelio Nov 22, 2018
696bd89
Merge branch 'master' into 0.58-stable
grabbou Nov 22, 2018
b864e7e
Revert "Merge branch 'master' into 0.58-stable"
grabbou Nov 22, 2018
d4d457b
Fix jsc regression.Fixes #22274 (#22293)
gengjiawen Nov 21, 2018
64dd60f
Fix ReactAndroid build break. (#22377)
Kudo Nov 22, 2018
e0ea58e
Add missing Metro Config
grabbou Nov 22, 2018
26bdd5b
Make Metro untyped instead of ignored to let Metro-config resolve typ…
grabbou Nov 22, 2018
e71fb64
Apply same config for Android
grabbou Nov 22, 2018
0c1c66e
[0.58.0-rc.0] Bump version numbers
grabbou Nov 22, 2018
19a7ecc
Fix Xcode 10 builds (broken by folly upgrade) (#22394)
radko93 Nov 26, 2018
3fbefa8
Revert D13105396
RSNara Nov 27, 2018
0b32a65
Fix: Add displayName to ActivityIndicator (#22417)
miblanchard Nov 27, 2018
747b5e4
Fix text alpha bug
necolas Nov 27, 2018
f6566c7
Summary:
shergin Nov 29, 2018
e54d1e2
React sync for revisions 3ff2c7c...6bf5e85
yungsters Dec 4, 2018
c0bf7a1
[0.58.0-rc.1] Bump version numbers
grabbou Dec 6, 2018
8e39451
Bump Android SDK to 28, Build Tools to 28.0.2, Gradle to 4.7, Gradle …
dulmandakh Dec 5, 2018
860d01a
Enable ci for windows (#22028)
gengjiawen Dec 4, 2018
0189ea2
Add Touchable E2E tests (#22570)
CodingItWrong Dec 10, 2018
1fdfed5
Detox debug build (#22572)
CodingItWrong Dec 10, 2018
00c7c5a
Add e2e tests, bug fixes for testIDs (#22537)
rickhanlonii Dec 7, 2018
cb85396
fix windows ci
gengjiawen Dec 7, 2018
cd8051c
Remove trailing slash from origin header if no port is specified (#22…
Dec 7, 2018
d1e312d
Fix ActivityIndicator snapshot test, add toMatchShallowSnapshot
rickhanlonii Dec 6, 2018
808a156
Merge appveyor.yml with .appveyor/config.yml (#22529)
hramos Dec 5, 2018
1b302b3
Add detox tests for Switch (#22470)
elicwhite Dec 5, 2018
370fde3
Propagate exit code in test_objc (#22562)
hramos Dec 11, 2018
d8f28ce
Bump ws package to 1.1.5 due to vulnerability issues (#21769)
prog1dev Dec 4, 2018
c43b7b9
fix possible NPE in StatusBarModule
mdvacca Dec 1, 2018
3c454ee
Fix NPE when opening Google Search Assist when a RN Dialog is displayed
mdvacca Dec 7, 2018
319fa03
Ensure RCTImageCache's DateFormatter is only allocated once
fatalsun Nov 30, 2018
06dc51f
Don't crash on second resolve or reject in PromiseImpl. (#20303)
esprehn Dec 10, 2018
e7a5267
Extend reason message for `RCTFatalException` (#22532)
Dec 7, 2018
7709285
Fix bug in comparison logic of object property (#22348)
vreality64 Dec 5, 2018
2472e65
Record thread cpu time for native modules thread
johnislarry Dec 5, 2018
e3b7e81
Avoid using `-[UITextView setAttributedString:]` while user is typing…
Dec 4, 2018
8302e0c
Fixes animated gifs incorrectly looping/not stopping on last frame (#…
staufman Dec 1, 2018
1d949a1
Allow 'userInfo' for native promise.reject + add native error stack s…
Salakar Dec 11, 2018
76fc78e
Use relative path for SCRIPTDIR (#22598)
sunnylqm Dec 11, 2018
26af339
Fix bad application of windows ci commit
grabbou Dec 17, 2018
8c3111a
[0.58.0-rc.2] Bump version numbers
grabbou Dec 18, 2018
7c04c09
Revert "[0.58.0-rc.2] Bump version numbers"
grabbou Dec 18, 2018
b8c0d9d
Bump RN OSS iOS tests to iOS SDK 12.1, Xcode 10.1
hramos Dec 4, 2018
6ae2ebf
[0.58.0-rc.2] Bump version numbers
grabbou Dec 18, 2018
e4fffa2
Fix RNTesterUnitTests failure (#22658)
hramos Dec 17, 2018
be40199
§Revert "[0.58.0-rc.2] Bump version numbers"
grabbou Dec 19, 2018
94e7a10
Update RNTester snapshots
hramos Dec 18, 2018
f09ab6d
Remove ActivityIndicator from ScrollView snapshot tests (#22729)
radko93 Dec 20, 2018
1df4713
test_ios → ✅: Update iOS Snapshots, remove tvOS tests, disable failin…
hramos Dec 20, 2018
1c22c10
Remove persistence from RNTester app (#22596)
CodingItWrong Dec 11, 2018
68f6325
Fix failing Switch E2E tests (#22698)
CodingItWrong Dec 18, 2018
bd79303
Added filtering to RNTester example screens (#22777)
CodingItWrong Dec 30, 2018
54cb03c
Fix a ESLint error
grabbou Jan 3, 2019
e29ca07
Ignore a Flow error
grabbou Jan 3, 2019
19c3a08
Update some snapshots, still need to run tvOS and iOS 10
grabbou Jan 3, 2019
e0093fc
Revert "Update some snapshots, still need to run tvOS and iOS 10"
grabbou Jan 3, 2019
c88a7ca
Do not display filter when doing snapshot tests on iOS
grabbou Jan 3, 2019
c8b1bdb
Fix missing header on single-example pages
grabbou Jan 3, 2019
57c6403
Trigger tests
grabbou Jan 3, 2019
c162c89
Attempt fixing Detox
grabbou Jan 3, 2019
d25e304
[0.58.0-rc.2] Bump version numbers
grabbou Jan 3, 2019
7546aea
Copy bundled resources and js in Android App Bundle builds (#21738)
edilaic Jan 15, 2019
34a585e
bump okhttp to 3.12.1 (#22877)
dulmandakh Jan 14, 2019
dbdb509
Updated RedBox screen (#22242)
Monte9 Jan 15, 2019
54e82a8
Added WebView deprecation warning (#22980)
Titozzz Jan 15, 2019
bbf4398
Remove unused files and code for old JSC and gcc build (#23014)
Kudo Jan 16, 2019
4ff693b
Re-trigger Android build
grabbou Jan 16, 2019
fb4e4fd
evert "Remove unused files and code for old JSC and gcc build (#23014)"
grabbou Jan 17, 2019
0244caf
Fix ReactAndroid bundle issue (#22799)
gengjiawen Jan 16, 2019
22af50a
[0.58.0-rc.3] Bump version numbers
grabbou Jan 17, 2019
9151e0d
Revert "[0.58.0-rc.3] Bump version numbers"
grabbou Jan 17, 2019
60b3942
[0.58.0-rc.3] Bump version numbers
grabbou Jan 17, 2019
9f14ac2
Add Network Security Config file (fixes #22375) (#23105)
Salakar Jan 23, 2019
fd5042d
Upgrade Android support library to version 28 in RN
mdvacca Jan 22, 2019
ec887c2
android support library 28.0.0 (#23109)
dulmandakh Jan 23, 2019
26793a0
Add HTTP cache by default (like iOS) (#18348)
Minishlink Jan 17, 2019
23cfa29
Fix tests in template project (0.58-stable) (#23128)
vovkasm Jan 23, 2019
d811d38
Bump to Android Build Tools 28.0.3, Gradle 4.10.2, Gradle Plugin 3.2.1
hramos Jan 11, 2019
1d5fe77
fix validate-android-test-env.sh (#22961)
dulmandakh Jan 14, 2019
57ad197
[0.58.0] Bump version numbers
grabbou Jan 24, 2019
abf9b26
fix packager start in 0.58 (#23160)
dulmandakh Jan 25, 2019
a289b7e
[0.58.1] Bump version numbers
grabbou Jan 25, 2019
9d19ab0
Bring missing changes to 0.58-stable branch
grabbou Jan 28, 2019
f8c484d
Update Flow config
grabbou Jan 28, 2019
1add9b4
Update few files after syncing changes:
grabbou Jan 28, 2019
6084cf1
[0.58.2] Bump version numbers
grabbou Jan 28, 2019
9e42e00
Back out "[react-native][PR] [flow-strict] Flow strict StatusBar"
Nov 23, 2018
adf1274
[0.58.3] Bump version numbers
grabbou Jan 28, 2019
6943b2e
Remove jest and jest-junit from runtime dependencies (#23276)
vovkasm Feb 4, 2019
e1694ee
bump soloader to 0.6.0 (#23239)
dulmandakh Feb 1, 2019
c3bd341
Fix Native Rotation Android (#18872)
scisci Jan 31, 2019
2781ef0
Android: Add error description to Image onError callback (#22737)
Jyrno42 Jan 25, 2019
6c83945
[0.58.4] Bump version numbers
grabbou Feb 4, 2019
9a8c959
handles simulator where prefix is included
osunnarvik Feb 5, 2019
98bcfe0
Merge pull request #23293 from osunnarvik/parse_simulator_list
cpojer Feb 5, 2019
8bddcb6
Backport fix from https://github.com/react-native-community/react-nat…
cpojer Feb 6, 2019
4a57276
Invalidade Gradle cache
grabbou Feb 6, 2019
0bb1ba8
Two more paths
grabbou Feb 6, 2019
5e87547
fix incorrect type which makes animated gifs not loop forever on devi…
chrisnojima Jan 16, 2019
6436157
Revert "[0.58.4] Bump version numbers"
grabbou Feb 6, 2019
de90192
[0.58.4] Bump version numbers
grabbou Feb 6, 2019
a4f8820
Fixes capitalized I's when emojiis are present after the text being e…
dchersey Feb 7, 2019
519ad8c
Fix broken jsiexecutor search path. (#23274)
amccarri Feb 4, 2019
805e4fe
Fix duplicate symbols linker error in xcodeproj (#23284)
tyrone-sudeium Feb 4, 2019
0af31ce
Don't attempt to load RCTDevLoadingView lazily
fkgozali Feb 15, 2019
b5270e8
apply Network Security Config file (fixes #22375) (part 2 of #23105) …
Salakar Feb 1, 2019
fbd31c5
improve Android Network Security config (#23429)
dulmandakh Feb 13, 2019
0fc2392
Fix crash for web socket in some race conditions (#22439)
zhongwuzw Jan 2, 2019
9d90696
[0.58.5] Bump version numbers
grabbou Feb 18, 2019
ee2bf1c
Revert "[0.58.5] Bump version numbers"
grabbou Feb 19, 2019
9d60c20
Remove fallback cache
grabbou Feb 19, 2019
41577ec
[0.58.5] Bump version numbers
grabbou Feb 19, 2019
2aa2420
Fix Inverted Horizontal ScrollView on Android (#23233)
dmainas Feb 1, 2019
2d56e06
Map TextInput textContentType strings to Objective-C constants (#22611)
levibuzolic Feb 20, 2019
82c84c5
Don't reconnect inspector if connection refused (#22625)
msand Feb 21, 2019
7da8642
[0.58.6] Bump version numbers
grabbou Feb 28, 2019
27381d3
facebook 0.58.6 merge with conflicts (although some iOS files had con…
HeyImChris Mar 11, 2019
9663356
Bunch of build fixes in ReactAndroid and ReactCommon
rohitjainMS Mar 12, 2019
f741133
more build fixes
rohitjainMS Mar 12, 2019
d35546a
Fixing few JS related merge issues and generating new bundle for RN T…
rohitjainMS Mar 13, 2019
2696dc6
Fixes for windows
Mar 19, 2019
d884bae
iOS 0.58.6 merge building, linking, running
HeyImChris Mar 19, 2019
810173f
iOS building/running fixes
HeyImChris Mar 20, 2019
baa51f2
Resolve remaining merges
acoates-ms Mar 23, 2019
1b12e2c
merge master
acoates-ms Mar 23, 2019
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions appveyor.yml → .appveyor/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
environment:
ANDROID_HOME: "C:\\android-sdk-windows"
ANDROID_NDK: "C:\\android-sdk-windows\\android-ndk-r17c"
ANDROID_BUILD_VERSION: 27
ANDROID_TOOLS_VERSION: 27.0.3
ANDROID_BUILD_VERSION: 28
ANDROID_TOOLS_VERSION: 28.0.3

GRADLE_OPTS: -Dorg.gradle.daemon=false

Expand Down
2 changes: 1 addition & 1 deletion .buckconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

[maven_repositories]
central = https://repo1.maven.org/maven2
google = https://maven.google.com
google = https://dl.google.com/dl/android/maven2/

[alias]
rntester = //RNTester/android/app:app
154 changes: 86 additions & 68 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ aliases:
- &restore-yarn-cache
keys:
- v1-yarn-cache-{{ arch }}-{{ checksum "package.json" }}
- v1-yarn-cache-{{ arch }}
- v1-yarn-cache-{{ arch }}-fixed
- &save-yarn-cache
paths:
- ~/.cache/yarn
Expand Down Expand Up @@ -36,16 +36,14 @@ aliases:

- &restore-cache-gradle
keys:
- v1-gradle-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum "ReactAndroid/build.gradle" }}
- v2-gradle-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum "ReactAndroid/build.gradle" }}
# Fallback in case checksum fails
- v1-gradle-{{ .Branch }}-{{ checksum "build.gradle" }}-
- v1-gradle-{{ .Branch }}-
# Fallback in case this is a first-time run on a fork
- v1-gradle-master-
- v2-gradle-{{ .Branch }}-{{ checksum "build.gradle" }}-
- v2-gradle-{{ .Branch }}-fixed
- &save-cache-gradle
paths:
- ~/.gradle
key: v1-gradle-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum "ReactAndroid/build.gradle" }}
key: v2-gradle-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum "ReactAndroid/build.gradle" }}

- &restore-cache-ndk
keys:
Expand All @@ -57,13 +55,13 @@ aliases:

- &restore-cache-downloads-buck
keys:
- v3-buck-v2018.07.23.01-{{ checksum "scripts/circleci/buck_fetch.sh" }}}
- v3-buck-v2018.07.23.01-
- v3-buck-v2018.10.29.01-{{ checksum "scripts/circleci/buck_fetch.sh" }}}
- v3-buck-v2018.10.29.01-fixed
- &save-cache-downloads-buck
paths:
- ~/buck
- ~/okbuck
key: v3-buck-v2018.07.23.01-{{ checksum "scripts/circleci/buck_fetch.sh" }}
key: v3-buck-v2018.10.29.01-{{ checksum "scripts/circleci/buck_fetch.sh" }}

- &restore-cache-watchman
keys:
Expand All @@ -75,14 +73,22 @@ aliases:

- &restore-cache-downloads-gradle
keys:
- v1-gradle-{{ checksum "ReactAndroid/build.gradle" }}-{{ checksum "scripts/circleci/gradle_download_deps.sh" }}
- v1-gradle-
- v2-gradle-{{ checksum "ReactAndroid/build.gradle" }}-{{ checksum "scripts/circleci/gradle_download_deps.sh" }}
- v2-gradle-fixed
- &save-cache-downloads-gradle
paths:
- ~/.gradle
- ReactAndroid/build/downloads
- ReactAndroid/build/third-party-ndk
key: v1-gradle-{{ checksum "ReactAndroid/build.gradle" }}-{{ checksum "scripts/circleci/gradle_download_deps.sh" }}
key: v2-gradle-{{ checksum "ReactAndroid/build.gradle" }}-{{ checksum "scripts/circleci/gradle_download_deps.sh" }}

- &restore-cache-homebrew
keys:
- v1-homebrew-fixed
- &save-cache-homebrew
paths:
- /usr/local/Homebrew
key: v1-homebrew

# Branch Filtering
- &filter-only-master-stable
Expand Down Expand Up @@ -132,7 +138,7 @@ aliases:
name: Install BUCK
command: |
if [[ ! -e ~/buck ]]; then
git clone https://github.com/facebook/buck.git ~/buck --branch v2018.07.23.01 --depth=1
git clone https://github.com/facebook/buck.git ~/buck --branch v2018.10.29.01 --depth=1
fi
cd ~/buck && ant
buck --version
Expand Down Expand Up @@ -185,15 +191,19 @@ aliases:
name: Lint code
command: scripts/circleci/exec_swallow_error.sh yarn lint --format junit -o ~/react-native/reports/junit/eslint/results.xml

- &run-flow-checks
name: Check for errors in code using Flow
command: yarn flow check
- &run-flow-checks-ios
name: Check for errors in code using Flow (iOS)
command: yarn flow-check-ios

- &run-flow-checks-android
name: Check for errors in code using Flow (Android)
command: yarn flow-check-android

- &run-sanity-checks
name: Sanity checks
command: |
./scripts/circleci/check_license.sh
./scripts/circleci/check_cache.sh
./scripts/circleci/validate_yarn_lockfile.sh
when: always

- &download-dependencies-gradle
Expand Down Expand Up @@ -229,7 +239,7 @@ aliases:

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

- &run-android-unit-tests
Expand Down Expand Up @@ -273,20 +283,12 @@ aliases:

- &boot-simulator-iphone
name: Boot iPhone Simulator
command: xcrun simctl boot "iPhone 5s" || true

- &boot-simulator-appletv
name: Boot Apple TV Simulator
command: xcrun simctl boot "Apple TV" || true
command: source scripts/.tests.env && xcrun simctl boot "$IOS_DEVICE" || true

- &run-objc-ios-tests
name: iOS Test Suite
command: ./scripts/objc-test-ios.sh test

- &run-objc-tvos-tests
name: tvOS Test Suite
command: ./scripts/objc-test-tvos.sh test

- &display-broken-tests-warning
name: Running broken tests (Ignore any failures past this point)
command: |
Expand All @@ -300,16 +302,12 @@ aliases:

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

- &run-objc-ios-e2e-tests
name: iOS End-to-End Test Suite (Disabled)
command: ./scripts/circleci/exec_author_check.sh node ./scripts/run-ci-e2e-tests.js --ios --retries 3;

- &run-objc-tvos-e2e-tests
name: tvOS End-to-End Test Suite (Disabled)
command: ./scripts/circleci/exec_author_check.sh node ./scripts/run-ci-e2e-tests.js --tvos --js --retries 3;

- &run-android-e2e-tests
name: Android End-to-End Test Suite (Disabled)
command: ./scripts/circleci/exec_author_check.sh node ./scripts/run-ci-e2e-tests.js --android --retries 3;
Expand Down Expand Up @@ -346,7 +344,7 @@ android_defaults: &android_defaults
macos_defaults: &macos_defaults
<<: *defaults
macos:
xcode: "9.4.0"
xcode: "10.1.0"

version: 2
jobs:
Expand Down Expand Up @@ -377,7 +375,8 @@ jobs:
at: ~/react-native

- run: *run-lint-checks
- run: *run-flow-checks
- run: *run-flow-checks-ios
- run: *run-flow-checks-android

- store_test_results:
path: ~/react-native/reports/junit
Expand Down Expand Up @@ -411,25 +410,19 @@ jobs:
- store_test_results:
path: ~/react-native/reports/junit

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

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

- restore-cache: *restore-cache-homebrew
- run: *brew-install-watchman
- save-cache: *save-cache-homebrew
- run: *run-objc-ios-tests
- run: *run-objc-tvos-tests

# TODO: Fix these failing tests.
- run: *display-broken-tests-warning
- run: *run-podspec-tests
- run: *run-objc-ios-e2e-tests
- run: *run-objc-tvos-e2e-tests

- store_test_results:
path: ~/react-native/reports/junit
Expand Down Expand Up @@ -538,12 +531,18 @@ jobs:
# Analyze pull request and raise any lint/flow issues.
# Issues will be posted to the PR itself via GitHub bots.
# This workflow should only fail if the bots fail to run.
# The public github tokens are publicly visible by design
analyze_pr:
<<: *defaults
docker:
- image: circleci/node:10
environment:
- PATH: "/opt/yarn/yarn-v1.5.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
- PUBLIC_PULLBOT_GITHUB_TOKEN_A: "a6edf8e8d40ce4e8b11a"
- PUBLIC_PULLBOT_GITHUB_TOKEN_B: "150e1341f4dd9c944d2a"
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_A: "78a72af35445ca3f8180"
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_B: "b1a98e0bbd56ff1ccba1"

steps:
- checkout
- run: *setup-artifacts
Expand All @@ -552,29 +551,41 @@ jobs:
- run: *yarn

- run:
name: Analyze Code
name: Analyze Shell Scripts
command: |
# GITHUB_TOKEN=eslint-bot public_repo access token
if [ -n "$CIRCLE_PR_NUMBER" ]; then
echo -e "\\x1B[36mInstalling additional dependencies\\x1B[0m"; yarn add @octokit/[email protected]
echo -e "\\x1B[36mAnalyzing code\\x1B[0m"; GITHUB_TOKEN="af6ef0d15709bc91d""06a6217a5a826a226fb57b7" ./scripts/circleci/analyze_code.sh
else
echo "Skipping code analysis."
fi
echo -e "\\x1B[36mInstalling additional dependencies\\x1B[0m"
sudo apt-get install -y shellcheck
yarn add @octokit/[email protected]
echo -e "\\x1B[36mAnalyzing shell scripts\\x1B[0m"; \
GITHUB_TOKEN="$PUBLIC_ANALYSISBOT_GITHUB_TOKEN_A""$PUBLIC_ANALYSISBOT_GITHUB_TOKEN_B" \
GITHUB_OWNER="$CIRCLE_PROJECT_USERNAME" \
GITHUB_REPO="$CIRCLE_PROJECT_REPONAME" \
GITHUB_PR_NUMBER="$CIRCLE_PR_NUMBER" \
./scripts/circleci/analyze_scripts.sh
when: always

- restore-cache: *restore-cache-analysis
- run:
name: Analyze Code
command: |
echo -e "\\x1B[36mInstalling additional dependencies\\x1B[0m"; yarn add @octokit/[email protected]
echo -e "\\x1B[36mAnalyzing code\\x1B[0m"; \
GITHUB_TOKEN="$PUBLIC_ANALYSISBOT_GITHUB_TOKEN_A""$PUBLIC_ANALYSISBOT_GITHUB_TOKEN_B" \
GITHUB_OWNER="$CIRCLE_PROJECT_USERNAME" \
GITHUB_REPO="$CIRCLE_PROJECT_REPONAME" \
GITHUB_PR_NUMBER="$CIRCLE_PR_NUMBER" \
./scripts/circleci/analyze_code.sh
when: always

- run:
name: Analyze Pull Request
command: |
# DANGER_GITHUB_API_TOKEN=React-Linter public_repo access token
if [ -n "$CIRCLE_PR_NUMBER" ]; then
cd bots
yarn install --non-interactive --cache-folder ~/.cache/yarn
DANGER_GITHUB_API_TOKEN="80aa64c50f38a267e9ba""575d41d528f9c234edb8" yarn danger
else
echo "Skipping pull request analysis."
fi
echo -e "\\x1B[36mInstalling additional dependencies\\x1B[0m"
cd bots
yarn install --non-interactive --cache-folder ~/.cache/yarn
echo -e "\\x1B[36mAnalyzing pull request\\x1B[0m"; \
DANGER_GITHUB_API_TOKEN="$PUBLIC_PULLBOT_GITHUB_TOKEN_A""$PUBLIC_PULLBOT_GITHUB_TOKEN_B" \
yarn danger
when: always
- save-cache: *save-cache-analysis

Expand Down Expand Up @@ -659,8 +670,8 @@ workflows:
requires:
- checkout_code

# Test iOS & tvOS
- test_objc:
# Test iOS
- test_ios:
filters: *filter-ignore-gh-pages
requires:
- checkout_code
Expand All @@ -670,15 +681,22 @@ workflows:
requires:
- checkout_code

# Tooling Compatibility Checks
- test_node10:
filters: *filter-ignore-gh-pages

# Only runs on vX.X.X tags if all tests are green
- publish_npm_package:
filters:
# ignore any commit on any branch by default
branches:
only:
- /.*-stable/
ignore: /.*/
# only act on version tags
tags:
only: /v[0-9]+(\.[0-9]+)*(\-rc(\.[0-9]+)?)?/

# Run code checks
# Run code checks on PRs from forks
- analyze_pr:
filters: *filter-ignore-master-stable
filters:
branches:
only: /^pull\/.*$/
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ indent_size = 2

[*.gradle]
indent_size = 4

[BUCK]
indent_size = 4
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"no-constant-condition": 0, // disallow use of constant expressions in conditions
"no-control-regex": 1, // disallow control characters in regular expressions
"no-debugger": 1, // disallow use of debugger
"no-dupe-class-members": 2, // Disallow duplicate name in class members
"no-dupe-keys": 2, // disallow duplicate keys when creating object literals
"no-empty": 0, // disallow empty statements
"no-ex-assign": 1, // disallow assigning to the exception in a catch block
Expand Down
10 changes: 7 additions & 3 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module.system.haste.paths.blacklist=.*/__mocks__/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/Libraries/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/RNTester/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/IntegrationTests/.*
module.system.haste.paths.blacklist=<PROJECT_ROOT>/Libraries/react-native/react-native-implementation.js
module.system.haste.paths.blacklist=<PROJECT_ROOT>/Libraries/Animated/src/polyfills/.*

munge_underscores=true
Expand All @@ -75,8 +76,8 @@ suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_ios\\)?_oss|react_native\\(_ios\\)?_fb][a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_ios\\)?_oss|react_native\\(_ios\\)?_fb][a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

Expand Down Expand Up @@ -105,4 +106,7 @@ untyped-import
untyped-type-import

[version]
^0.78.0
^0.86.0

[untyped]
.*/node_modules/metro/.*
Loading