Héctor Ramos and Facebook Github Bot
e28d8f6eeb
Fix copyright headers
...
Summary:
Update several files to use the proper copyright header:
```
// Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
```
In the case of Xcode project files, I used the shortform version, `Copyright (c) Facebook, Inc. and its affiliates.`
Reviewed By: axe-fb
Differential Revision: D10114529
fbshipit-source-id: a1f2d5a46d04797c1cf281ea9ab80d3a2caa6fb4
2018-09-28 17:33:12 -07:00
Héctor Ramos and Facebook Github Bot
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
Sergei Dryganets and Facebook Github Bot
09c78fe968
Incorrect ref API usage fixed. ( #20913 )
...
Summary:
release method of local_ref and global_ref doesn't call deallocator, in fact, it leaves the caller responsible for deletion of the reference, while otherwise the reference is released on scope left.
Fixes #18292 .
Pull Request resolved: https://github.com/facebook/react-native/pull/20913
Differential Revision: D9616237
Pulled By: hramos
fbshipit-source-id: 021aa3e4f039e6b7a98da3e4224c1ee49d5a4921
2018-08-31 12:50:02 -07:00
Jonathan Kim and Facebook Github Bot
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 and Facebook Github Bot
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 and Facebook Github Bot
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
Simon Jensen and Facebook Github Bot
17485e8ed4
Fix conversion from double to int16_t in JSC bindings
...
Summary:
Converting from double to int16_t is undefined behavior if the value
doesn't fit in int16_t.
Reviewed By: tmikov
Differential Revision: D8925246
fbshipit-source-id: 4cf57631686a4ce05546f8d30a46e3f9def3aee2
2018-07-24 12:03:30 -07:00
Yuanda Tang and Facebook Github Bot
8ee60e9b0d
Cleanup clang compiler warnings
...
Summary:
Cleanup clang compiler warnings.
The last version delete some variables that still used in code.
Fix the problem and try to launch again.
Reviewed By: hershi
Differential Revision: D8704442
fbshipit-source-id: 8bd37fc9f2b27104fe15c4c8b8323e2bfd8c1060
2018-07-12 13:22:22 -07:00
Sergei Dryganets and Facebook Github Bot
8ce758f48a
Android ndk-build fix for ndk-r14+ ( #18814 )
...
Summary:
According to [ndk release notes](https://github.com/android-ndk/ndk/wiki/Changelog-r14-beta1#ndk-build ) flag APP_ALLOW_MISSING_DEPS should be set to true in order to fix ndk-build tool.
If it builds it will work. On older ndk flag is ignored.
[ANDROID] [MINOR] [Application.mk] - build with android-ndk-14+ supported
Closes https://github.com/facebook/react-native/pull/18814
Differential Revision: D8643513
Pulled By: hramos
fbshipit-source-id: d96f8c039a754b9b95839f0a0bd98fcfdaf39bd4
2018-06-26 11:02:10 -07:00
Taras Tsugrii and Facebook Github Bot
0644785ad3
Fix deprecated glob attribute usage.
...
Summary: https://our.intern.facebook.com/intern/wiki/Buck/python-to-skylark/
Differential Revision: D8601889
fbshipit-source-id: f95ed015c7fe0d15cca826829ff30d0e6372eafa
2018-06-23 20:01:23 -07:00
Oleksandr Sokolov and Facebook Github Bot
078d6e3a9d
QuickPerformanceLogger.js: markerPoint + iOS/Android JS binding
...
Reviewed By: alexeylang
Differential Revision: D8125546
fbshipit-source-id: bb02921c7d89faba64001bff3b9aaf13f64a7f8b
2018-06-08 08:32:05 -07:00
Héctor Ramos and Facebook Github Bot
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
Dmitry Zakharov and Facebook Github Bot
7c5845a5a2
Remove Native Extensions
...
Reviewed By: michalgr
Differential Revision: D8057885
fbshipit-source-id: 6af7f7729201d26a704adaadb15813979cd035f8
2018-05-21 12:21:56 -07:00
Taras Tsugrii and Facebook Github Bot
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 and Facebook Github Bot
a810e6875f
move nativeLoggingHook into AndroidJSCFactory
...
Reviewed By: fromcelticpark
Differential Revision: D7803905
fbshipit-source-id: 797f5250a4a129a8dff3fb447c01837d68bea452
2018-05-09 22:12:03 -07:00
Marc Horowitz and Facebook Github Bot
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 and Facebook Github Bot
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 and Facebook Github Bot
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
David Aurelio and Facebook Github Bot
36f254aa75
CatalystInstanceImpl: Method for loading from delta client
...
Summary:
Adds `loadScriptFromDeltaBundle` / `jniLoadScriptFromDeltaBundle` methods to `CatalystInstanceImpl`.
These methods allow to run JS coming from a native delta client as RAM bundles, to leverage the RAM bundle mechanism for development / reload scenarios.
Reviewed By: fromcelticpark
Differential Revision: D7845140
fbshipit-source-id: b79b340f36c28939a31eb63a3c463d0792a208f7
2018-05-03 08:47:47 -07:00
David Aurelio and Facebook Github Bot
82b8a9221a
Add hybrid class to hold native delta client
...
Summary:
Adds hybrid JNI wrapper class that can hold a native delta client.
This class allows Java code in the `devsupport` package to hold onto a native delta client across reloads.
It also takes care of passing `okhttp` response objects to native code, where we build a `std::string` to hold JSON messages coming from Metro, and parse them with `folly::parseJson`.
In a follow-up, we will switch to a streaming-friendly binary format that will make allocating memory for the whole message unnecessary.
Reviewed By: fromcelticpark
Differential Revision: D7845138
fbshipit-source-id: 7a29b30645331addf843097dd0d05c03b3143991
2018-05-03 08:47:47 -07:00
David Aurelio and Facebook Github Bot
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
Riley Dulin and Facebook Github Bot
0150a0c85b
Add nativeLoggingHook to JSIExecutor
...
Reviewed By: danzimm
Differential Revision: D7203114
fbshipit-source-id: 2f4640d19267dc4d75f6d6c8a7876c92abc22276
2018-03-27 11:13:34 -07:00
Dmitry Zakharov and Facebook Github Bot
c989ea8728
Extract NativeExtensionsProvider definition
...
Reviewed By: danzimm
Differential Revision: D6964355
fbshipit-source-id: e20dfa99bd9d8784a5f31a313302104d6dc33652
2018-03-15 09:27:40 -07:00
Michael Lee and Facebook Github Bot
5d3efa7d6f
Mark targets as explicitly Android
...
Reviewed By: mmmulani
Differential Revision: D7141568
fbshipit-source-id: 6c8679790309e72ca220443ecf693087f82ece85
2018-03-02 17:22:35 -08:00
Paco Estevez Garcia and Facebook Github Bot
ad2d9e7fab
Forward VM version to inspector
...
Reviewed By: bnham
Differential Revision: D6938018
fbshipit-source-id: c79853ddf835acab86a16ebd539874d29d3aa60a
2018-02-13 08:16:50 -08:00
Taras Tsugrii and Facebook Github Bot
79a63d040f
Skylarkify RN defs.
...
Reviewed By: adamjernst
Differential Revision: D6934209
fbshipit-source-id: 59f50b739482a53473c157f9e0183024dc88dc67
2018-02-08 09:47:28 -08:00
Dmitry Zakharov and Facebook Github Bot
0c49c1f332
Native Modules -> Native Extensions
...
Reviewed By: danzimm
Differential Revision: D6887988
fbshipit-source-id: 475c05f60a2e1ddcfaa9263ab363bff8a528236a
2018-02-07 08:07:13 -08:00
Kathy Gray and Facebook Github Bot
28be33ac34
Remove release from ReadableNativeArray and Map
...
Reviewed By: mhorowitz
Differential Revision: D6846268
fbshipit-source-id: 2f750a05ee63a744e7f64b3fe67736df3614ef3d
2018-02-01 07:30:07 -08:00
Jonathan Kim and Facebook Github Bot
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
Kathy Gray and Facebook Github Bot
7891805d22
move native accesses of map into two accesses instead of per-element
...
Differential Revision: D6650192
fbshipit-source-id: 0eb0719fd3b7813add33a3d4fe3fb70e6f375fd7
2018-01-17 10:51:49 -08:00
Kathy Gray and Facebook Github Bot
5649aed6d3
Move native accesses of array into one access instead of per-element
...
Differential Revision: D6578349
fbshipit-source-id: 84ebd66ed791a845e9cc0fbc7e12a377534aa903
2018-01-17 10:51:49 -08:00
Taras Tsugrii and Facebook Github Bot
ba31d29dc9
Replace native cxx_library with fb-specific macros.
...
Reviewed By: adamjernst
Differential Revision: D6618153
fbshipit-source-id: 188e2ca3cc78efad6e71f0a22547e26abf2f62e1
2017-12-21 08:58:50 -08:00
Ben Nham and Facebook Github Bot
bef7967f9a
move page registration logic in to jsinspector
...
Reviewed By: pakoito
Differential Revision: D6531199
fbshipit-source-id: ed1ae9e2f0c19e7656cd022e438693798320e55a
2017-12-15 09:20:13 -08:00
Max Sherman and Facebook Github Bot
b952365ba6
std::string to const char*
...
Reviewed By: danzimm
Differential Revision: D6570194
fbshipit-source-id: 84dae925b9269393b6925e0977598e3872acb14e
2017-12-14 13:36:51 -08:00
Ben Nham and Facebook Github Bot
70c359000a
move inspector out of jschelpers
...
Differential Revision: D6385924
fbshipit-source-id: 1913d903077494cc0d86d5a8c8839620f1ecab0c
2017-11-27 07:23:37 -08:00
Dmitry Zakharov and Facebook Github Bot
dd888d3346
Fix boolean conversion in sync RN method calls.
...
Reviewed By: fromcelticpark
Differential Revision: D6408182
fbshipit-source-id: 251ab0cfe3197e59de0cb86816d5f0b908433b43
2017-11-24 12:31:41 -08:00
Dmitry Zakharov and Facebook Github Bot
4f886a29a1
Remove android_react_native_perf.use_separate_ui_bg_thread experiment.
...
Reviewed By: AaaChiuuu
Differential Revision: D6313250
fbshipit-source-id: 583a729a157a2053827631a43e38917753e78477
2017-11-14 06:58:46 -08:00
Alex Dvornikov and Facebook Github Bot
a47431ed74
Adopt split segments registration approach on Android
...
Differential Revision: D6284863
fbshipit-source-id: 0df6b90eb0cbeab4c8a2b11f1e4dcbd5d5dfab72
2017-11-09 12:23:51 -08:00
Alex Dvornikov and Facebook Github Bot
cff0d8e0e5
Register split segment paths with RAMBundleRegistry
...
Differential Revision: D6284466
fbshipit-source-id: c80cf929af38f92f06cca5b366c58785ae992d83
2017-11-09 12:23:46 -08:00
Alex Dvornikov and Facebook Github Bot
6ecae73fe5
Remove RAMBundleRegistry subclasses
...
Differential Revision: D6262247
fbshipit-source-id: 708f919e34f1706d9aca19a34ad8ea506e9f8d8b
2017-11-08 04:12:20 -08:00
Alex Dvornikov and Facebook Github Bot
f1258181ee
Rename "js-bundles" to "js-segments"
...
Differential Revision: D6244399
fbshipit-source-id: d1606d126e3b598b19fa8a0955438c8dec76f5d0
2017-11-06 18:25:52 -08:00
Dan Caspi and Facebook Github Bot
19de7fcb22
Moving some RAM logic to Instance.
...
Reviewed By: michalgr
Differential Revision: D6208977
fbshipit-source-id: 28339d07c58f1acc816be02f2707ef75529fa069
2017-11-03 05:32:02 -07:00
Alex Dvornikov and Facebook Github Bot
b5651d945c
Add "setJsBundlesDirectory" method to CatalystInstanceImpl
...
Differential Revision: D6042493
fbshipit-source-id: 950c6d6bdc2e0b62b14c9bcfc86233159a002c67
2017-11-01 06:54:44 -07:00
Max Sherman and Facebook Github Bot
f3b117abd0
Un-revert logMarker for hermes diff
...
Reviewed By: mhorowitz
Differential Revision: D6051880
fbshipit-source-id: 0ce4bbed9ba8579033ee5397ff6c0975b6886fb1
2017-10-13 14:01:43 -07:00
Max Sherman and Facebook Github Bot
e60a2d0a53
Revert D5939688: [hermes][rn] Share logPerfMarker with hermes
...
Differential Revision: D5939688
fbshipit-source-id: 37daeeaa01144472c26383106c88dd49bb99a37b
2017-10-12 19:21:42 -07:00
Max Sherman and Facebook Github Bot
fe62da34a6
Share logPerfMarker with hermes
...
Reviewed By: mhorowitz
Differential Revision: D5939688
fbshipit-source-id: ab6a86eb66a3d9501b9b5a55b562b277b5ab0620
2017-10-12 15:33:04 -07:00
Max Sherman and Facebook Github Bot
790eabcdff
Replace getInt with asInt in native collections
...
Reviewed By: mhorowitz
Differential Revision: D5904751
fbshipit-source-id: 995412196fd76ea60a65253719e49852322be6e6
2017-10-05 10:07:24 -07:00
Alex Dvornikov and Facebook Github Bot
9e01d72103
Unify supplimentary bundle path creation logic between Android and iOS
...
Differential Revision: D5941546
fbshipit-source-id: c9b8fab887f480faa373c26a1d5ba310e8acde78
2017-10-04 15:16:27 -07:00
Alex Dvornikov and Facebook Github Bot
4162d73ec0
Added Android support for loading multiple RAM bundles
...
Differential Revision: D5901574
fbshipit-source-id: 395bae41e58505918d7ad20ac432eba3361361ea
2017-09-29 14:46:00 -07:00
Alex Dvornikov and Facebook Github Bot
7d115730dc
Configure JSExector with BundleRegistry instead of JSModulesUnbundle
...
Differential Revision: D5890458
fbshipit-source-id: 968be95786ffbf53aa98928d4d3e3bd52a84b3dc
2017-09-22 09:58:46 -07:00