Héctor Ramos
1151c096da
Update copyright headers to yearless format
...
Summary: This change drops the year from the copyright headers and the LICENSE file.
Reviewed By: yungsters
Differential Revision: D9727774
fbshipit-source-id: df4fc1e4390733fe774b1a160dd41b4a3d83302a
2018-09-11 15:33:07 -07:00
Michael Lee
c5daf3fed9
Reformat BUCK files to follow new buildifier format
...
Summary: buildifier was updated and now we sort loads!
Reviewed By: zertosh
Differential Revision: D9771824
fbshipit-source-id: 0001aa5f656d4aa40b3498d5bfd792a3d14e56e1
2018-09-11 15:20:48 -07:00
Jonathan Kim
f9e823fb5a
Update loads for glob_defs.bzl
...
Reviewed By: mzlee
Differential Revision: D9565702
fbshipit-source-id: df38928394a90367492a25ed52ec552b89c1f903
2018-08-30 01:46:51 -07:00
Jonathan Kim
2515e4861a
Move RN's DEFS.bzl to tools and rename to rn_defs.bzl
...
Reviewed By: mzlee
Differential Revision: D9553765
fbshipit-source-id: cb65081668ea2726f24d2c9c02661e859cc7a994
2018-08-29 13:21:52 -07:00
Alex Dvornikov
1cd9aa2dea
Add REGISTER_JS_SEGMENT perf markers
...
Reviewed By: cwdick
Differential Revision: D9244289
fbshipit-source-id: 9004a0405f9622cbd0bbb837b99df32454f35bb8
2018-08-10 09:37:42 -07:00
Dulmandakh
6117a6c720
Bump Android NDK to r17b ( #20357 )
...
Summary:
This PR bumps Android NDK version to r17b (latest). Cleaned up redundant **LOCAL_EXPORT_CPPFLAGS** rules in .mk files
Pull Request resolved: https://github.com/facebook/react-native/pull/20357
Differential Revision: D9068424
Pulled By: hramos
fbshipit-source-id: 8578637e38e807288b819a36cb75ea9feefcc09f
2018-07-30 14:02:11 -07:00
Ram N
c7fdd2701f
Added more info to Module Registry systraces
...
Summary:
Added module names to systraces for getConstants and getMethods.
Also added systrace for moduleNames.
We are starting to look at ways to optimize native modules, and having these traces helps
Reviewed By: javache
Differential Revision: D9012702
fbshipit-source-id: c79222f36988bef3a108ed91d1ea1318d3576b40
2018-07-26 15:35:54 -07:00
Kevin Gozali
201ba8c69d
Catch JS bundle load failure and prevent calls to JS after that
...
Summary: There are cases where JS bundle fails to be evaluated, which throws an exception already, but then there were pending calls into JS which would fail in a weird way. This prevents those calls (because it's mostly meaningless at that point). For now, those extra calls will still throw an exception, but with a specific message so that it doesn't confuse people.
Reviewed By: yungsters
Differential Revision: D8961622
fbshipit-source-id: 3f67fb63fdfa9fc5b249de0096e893b07956776a
2018-07-24 19:48:32 -07:00
Taras Tsugrii
12d98db901
Fix conditional load usage.
...
Summary:
Conditional `load` statements are not allowed in new Buck build file parser - Skylark.
https://buckbuild.com/concept/skylark.html
Reviewed By: mzlee
Differential Revision: D8842756
fbshipit-source-id: f22dff00f594978e4cab5736268ad3225182c39b
2018-07-14 18:32:20 -07:00
Taras Tsugrii
6b1d99686d
Skylarkify jni_instrumentation_test.
...
Summary: https://our.intern.facebook.com/intern/wiki/Buck/python-to-skylark/
Reviewed By: mzlee
Differential Revision: D8842575
fbshipit-source-id: 2de5efa8b00397e751f6c213b8c8630deea21f00
2018-07-13 15:03:15 -07:00
Taras Tsugrii
71cd2d79ec
Move conditional logic into corresponding build defs.
...
Summary:
Conditional `load`s are not allowed in Skylark. The logic
that belongs to different environments has to be part of environment
specific build defs and include as part of cell resolution or CI
configuration.
More context: https://buckbuild.com/concept/skylark.html
Differential Revision: D8604673
fbshipit-source-id: 385f2e155c4d80219e6ed3a2e0a82c909ebabb13
2018-06-24 14:46:38 -07:00
Taras Tsugrii
346ac75ed6
Fix deprecated glob usage.
...
Summary: https://our.intern.facebook.com/intern/wiki/Buck/python-to-skylark/
Differential Revision: D8595731
fbshipit-source-id: 0e3046a7fd2a25e9b13462713ae9a008ad546770
2018-06-23 18:33:48 -07:00
Marc Horowitz
83c990b25c
make logMarker visible for consistency with logTaggedMarker
...
Differential Revision: D8240294
fbshipit-source-id: 8d056dc89adff41ff43c0df2f752b01ac1fb189f
2018-06-01 15:20:01 -07:00
Héctor Ramos
da7873563b
Migrate Android sources to MIT license header
...
Reviewed By: fkgozali
Differential Revision: D8065619
fbshipit-source-id: 719c303b40c96950bab8e5dde9a75f449b2956c6
2018-05-31 15:37:30 -07:00
Dan Zimmerman
2bf47559b5
Export JSExecutor
...
Reviewed By: rzito
Differential Revision: D8187754
fbshipit-source-id: e0da3781e2b3e24cef04086d15e3f5394e059d30
2018-05-29 12:19:12 -07:00
Dmitry Zakharov
7c5845a5a2
Remove Native Extensions
...
Reviewed By: michalgr
Differential Revision: D8057885
fbshipit-source-id: 6af7f7729201d26a704adaadb15813979cd035f8
2018-05-21 12:21:56 -07:00
Taras Tsugrii
1a7682b2a1
Re-format BUCK to use recommended style.
...
Reviewed By: yfeldblum
Differential Revision: D8073585
fbshipit-source-id: 12322aebc09b89d5af9cc257b16c1bc0fbb066c1
2018-05-20 23:24:51 -07:00
Marc Horowitz
9d0b7d8f31
Fix BUCK bugs which were breaking tests after refactoring
...
Reviewed By: johnislarry
Differential Revision: D7874275
fbshipit-source-id: 7f9c8648571bc7f41649ec4ef547e7c34b479221
2018-05-09 22:12:03 -07:00
Marc Horowitz
a363a7b501
Refactor ReactMarker out of Platform
...
Reviewed By: fromcelticpark
Differential Revision: D7803908
fbshipit-source-id: 957e80519c209732b163ece2bccb7c8c36ff8107
2018-05-09 22:12:03 -07:00
Marc Horowitz
042449f24a
simplify handleMemoryPressure conditionalization, delete some dead code
...
Reviewed By: javache
Differential Revision: D7803912
fbshipit-source-id: 0bab4be07fc006a208caa75f94b5716c99b5d265
2018-05-09 22:12:03 -07:00
Marc Horowitz
09f3d7ab49
reformat JSCExecutor.cpp
...
Reviewed By: fromcelticpark
Differential Revision: D7803913
fbshipit-source-id: fc4637d0f9ab8c01f2f257e34e435c9573ecf948
2018-05-09 22:12:03 -07:00
Marc Horowitz
ef258b0106
Remove unnecessary #includes to reduce dependencies
...
Reviewed By: davidaurelio
Differential Revision: D7803909
fbshipit-source-id: 2ccafdbfcb786c4c5f703714fb0c92cda1026cef
2018-05-09 22:12:02 -07:00
Jonathan Kim
255b97ddd1
Load and use fb_xplat_cxx_test
...
Reviewed By: mzlee
Differential Revision: D7854278
fbshipit-source-id: 2a4c4fc27fc665a192fc04a8c8fae19f7f221566
2018-05-03 16:04:29 -07:00
David Aurelio
4d931d529e
Add native delta client for Metro
...
Summary:
Adds C++ delta client that keeps modules in memory, and can be used as a RAM bundle.
For now, this client expects a `folly::dynamic` object as payload for patches, i.e. the JSON response retrieved from Metro needs to be parsed with `folly::parseJson` by the caller.
In the future, we will replace JSON with a streaming friendly binary format.
Reviewed By: fromcelticpark
Differential Revision: D7845136
fbshipit-source-id: f003f98a2607c8354c427a7e60e01e19e20295b1
2018-05-03 08:47:47 -07:00
Jonathan Kim
62784f35d8
load in platform macros
...
Reviewed By: ttsugriy
Differential Revision: D7809673
fbshipit-source-id: aacff1a99ba50393ed8f74842afa59384b846e63
2018-04-29 16:01:17 -07:00
Jean Lauliac
5fd92f90af
cxxreact: executors: insert ID of segment reliably into the bundle path
...
Reviewed By: fromcelticpark
Differential Revision: D7623232
fbshipit-source-id: df833d18f0445d52e3098b58aac347a2e9aa0040
2018-04-20 07:03:23 -07:00
Jean Lauliac
281ed9f4ce
cxxreact/RAMBundleRegistry: nit fixes
...
Reviewed By: mhorowitz
Differential Revision: D7587411
fbshipit-source-id: 516753247af585914381308248de9652f18a6cf5
2018-04-17 12:02:35 -07:00
Jean Lauliac
c9094e952b
cxxreact/RAMBundleRegistry: prepend segment ID
...
Reviewed By: fromcelticpark
Differential Revision: D7594348
fbshipit-source-id: 0b433de8722f8a952fd056139a350dc481f0af38
2018-04-17 12:02:35 -07:00
Taras Tsugrii
1433d15557
Avoid top-level read_config invocations.
...
Reviewed By: danzimm
Differential Revision: D7651745
fbshipit-source-id: 5cbc82b3c9da3ab514278d438f97f98e19946dc7
2018-04-17 09:41:20 -07:00
Jonathan Kim
2fd7fda05d
Delete fb_xplat_cxx.bzl
...
Reviewed By: mzlee, ttsugriy
Differential Revision: D7625836
fbshipit-source-id: 3169d43f028b895e1075268495de66816c778b35
2018-04-14 19:17:47 -07:00
Jakub Grzmiel
a42b2988ae
Clean up BUCK files for missing dependencies and tests
...
Differential Revision: D7618360
fbshipit-source-id: 421834892519998ad088a138b3fc3d96afe34d79
2018-04-14 13:18:08 -07:00
Michael Lee
7a29ad1d83
Specify platforms for the a few targets
...
Differential Revision: D7516968
fbshipit-source-id: db9d6df7c1b67dbdd998ea017229a976f78b2eb1
2018-04-05 16:02:31 -07:00
Dmitry Zakharov
8e85bf84e8
Gatekeeper for Native Extensions
...
Reviewed By: danzimm, johnislarry
Differential Revision: D6965463
fbshipit-source-id: 28bcfbff980abfda3c63d7016ccf05beb1d178eb
2018-03-15 09:27:40 -07:00
Dmitry Zakharov
c989ea8728
Extract NativeExtensionsProvider definition
...
Reviewed By: danzimm
Differential Revision: D6964355
fbshipit-source-id: e20dfa99bd9d8784a5f31a313302104d6dc33652
2018-03-15 09:27:40 -07:00
Jakub Grzmiel
5f497ca302
Convert constant with build flags to function
...
Reviewed By: ttsugriy
Differential Revision: D7184372
fbshipit-source-id: c66f473ad15898532f24c6276898ab250e749744
2018-03-08 00:17:53 -08:00
Dan Zimmerman
19a4a7d3cb
Remove callFunctionSync experimental APIs
...
Reviewed By: michalgr
Differential Revision: D6124038
fbshipit-source-id: 219afe30783da92cf10f800dc35e64823b61cf4b
2018-03-05 14:32:00 -08:00
Jonathan Kim
f389ad8b76
Move fb_xplat_cxx.bzl to xplat/build_defs
...
Reviewed By: mzlee, ttsugriy
Differential Revision: D7152463
fbshipit-source-id: ad7ca85f225343a043e2f606c6b3bbf74f42bbcd
2018-03-05 10:55:50 -08:00
Alex Dvornikov
1a1a956831
JSIExecutor Bundle Splitting Support
...
Reviewed By: mhorowitz
Differential Revision: D6847638
fbshipit-source-id: d9ae3d182d6f07bcac81cfd06dcc19f8139bb1e4
2018-02-09 03:45:37 -08:00
Jakub Grzmiel
a8c95d2417
Convert fb_xplat_cxx to Skylark
...
Reviewed By: ttsugriy
Differential Revision: D6937683
fbshipit-source-id: 472c95b393d054c29413a46b86bf03559aff8741
2018-02-08 13:16:55 -08:00
Taras Tsugrii
79a63d040f
Skylarkify RN defs.
...
Reviewed By: adamjernst
Differential Revision: D6934209
fbshipit-source-id: 59f50b739482a53473c157f9e0183024dc88dc67
2018-02-08 09:47:28 -08:00
Dmitry Zakharov
0c49c1f332
Native Modules -> Native Extensions
...
Reviewed By: danzimm
Differential Revision: D6887988
fbshipit-source-id: 475c05f60a2e1ddcfaa9263ab363bff8a528236a
2018-02-07 08:07:13 -08:00
Jakub Grzmiel
d3db764f38
Convert intent_binary_defs to Skylark
...
Reviewed By: ttsugriy
Differential Revision: D6910777
fbshipit-source-id: b661be9f2383ca93b940dc7b625f46ae9725ebd7
2018-02-06 22:32:41 -08:00
Marc Horowitz
816d417189
Delete RCTBatchedBridge
...
Summary:
I've talked to several major community users, and they're all ok with deleting this
code. There's several doc fixes which will make it easier for third
party developers which should land about the same time this will.
Also buried along with it is RCTJSCExecutor.
Reviewed By: javache
Differential Revision: D6880781
fbshipit-source-id: b4cb1143def6fd23a96290e478fa728adbedacd3
2018-02-05 12:02:35 -08:00
Michael Lee
b8e79a7e8b
Split folly/Memory out from headers-only targets
...
Reviewed By: yfeldblum
Differential Revision: D6732464
fbshipit-source-id: 9d9498e0faa02c2003ab0e363444b7a2be51fd93
2018-01-22 08:42:18 -08:00
Jonathan Kim
4f2cc42a2d
Make xplat react native files buildable
...
Reviewed By: mzlee
Differential Revision: D6605611
fbshipit-source-id: baa33947319a27b95020924d177a9398a276dabe
2018-01-21 22:05:05 -08:00
Scott Wolchok
cec2e80fc2
Fix dependencies
...
Reviewed By: adamjernst
Differential Revision: D6754488
fbshipit-source-id: 49f2a45d024c7bd6b52f51f7705bcd167a499e47
2018-01-20 12:16:52 -08:00
Alex Dvornikov
9e34cbda9d
Add Bundle Splitting support for source code bundles
...
Reviewed By: amnn
Differential Revision: D6695431
fbshipit-source-id: 76f4c09b7caadabad5b327af29c02afe61f31abd
2018-01-16 15:20:45 -08:00
Semen Zhydenko
d2c569795c
Typos in comments and log messages
...
Summary:
No code changes, no testing required.
alligned -> aligned
allignment -> alignment
completly -> completely
conseptually -> conceptually
decendents -> descendants
indefinetly -> indefinitely
dimention -> dimension
doesnt -> doesn't
safegaurd -> safeguard
intialization -> initialization
hierachy -> hierarchy
happend -> happened
gaurd -> guard
programatically -> programmatically
initalized -> initialized
immidiately -> immediately
occured -> occurred
unkown -> unknown
neccessary -> necessary
neccesarily -> necessarily
occuring -> occurring
comoponent -> component
propogate -> propagate
recieved -> received
referece -> reference
perfomance -> performance
recieving -> receiving
subsquently -> subsequently
scoll -> scroll
suprisingly -> surprisingly
targetting -> targeting
tranform -> transform
symetrical -> symmetrical
wtih -> with
Closes https://github.com/facebook/react-native/pull/17578
Differential Revision: D6718791
Pulled By: shergin
fbshipit-source-id: 4ab79c1131ec5971d35a0c7199eba7ec0a0918ad
2018-01-12 22:18:45 -08:00
Alex Dvornikov
8f358a2088
Report module id as string and as double, in case of invalid values are passed to nativeRequire
...
Differential Revision: D6695769
fbshipit-source-id: b578b9d52ed711fb5a3e51717ac555fa8a232d7a
2018-01-11 14:21:00 -08:00
Michał Gregorczyk
702b7e877e
(almost) kill fbjsc
...
Reviewed By: johnislarry
Differential Revision: D6701327
fbshipit-source-id: 17630f336e2b275c1de30ebfa32d1cbfbc1b9634
2018-01-11 13:16:37 -08:00