Alexey Lang
028b64bcd3
Fix logging unpacking time when it happens concurrently with eager unpacking
...
Reviewed By: dcaspi
Differential Revision: D6413546
fbshipit-source-id: 9ae167ea2f816b070da29cf81f653af568aed01a
2017-11-27 12:32:32 -08:00
Alexander Komissarov
ad89ea7b50
check if listener is still in the set before calling onHostResume
...
Reviewed By: achen1
Differential Revision: D6341419
fbshipit-source-id: e49188803bbf3641bad6a9cc8c497d453798bbce
2017-11-17 11:20:45 -08:00
Dmitry Zakharov
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
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
f1258181ee
Rename "js-bundles" to "js-segments"
...
Differential Revision: D6244399
fbshipit-source-id: d1606d126e3b598b19fa8a0955438c8dec76f5d0
2017-11-06 18:25:52 -08:00
Alex Dvornikov
b5651d945c
Add "setJsBundlesDirectory" method to CatalystInstanceImpl
...
Differential Revision: D6042493
fbshipit-source-id: 950c6d6bdc2e0b62b14c9bcfc86233159a002c67
2017-11-01 06:54:44 -07:00
Jonathan Keljo
dd016f334c
Automated fixups for Instagram
...
Reviewed By: dreiss
Differential Revision: D6168048
fbshipit-source-id: 0e51319d93fd697db01ea3933f48cd06a6ffac12
2017-10-27 00:52:40 -07:00
Charles Dick
1c104310fb
RN catalyst instance destroy markers
...
Reviewed By: alexeylang
Differential Revision: D6109891
fbshipit-source-id: 2cd1491381220a80f71f9ab205a2c6a309ed35ae
2017-10-26 10:28:41 -07:00
Dmitry Zakharov
f0fb720eaa
Introduce mobile config flag to load classes for View Managers
...
Reviewed By: kathryngray
Differential Revision: D6148468
fbshipit-source-id: d0f919f63922dae4b0720f22fa70ab4a7f67b48a
2017-10-26 08:51:11 -07:00
Alexey Lang
95073f8589
Use ReactMarker for all perf logging in the bridge
...
Reviewed By: AaaChiuuu
Differential Revision: D6030270
fbshipit-source-id: c9fa04d4f2816e4e0a4a14caf41795d0f547a7a0
2017-10-22 04:04:42 -07:00
Alexey Lang
adde2ed5e9
Fix the debug logging regression
...
Reviewed By: AaaChiuuu
Differential Revision: D5975880
fbshipit-source-id: 39c632ddf84e57c814b54fac465651120e4127da
2017-10-04 15:04:53 -07:00
Paco Estevez Garcia
e7765a32f7
Fix DeviceIdentity on RN for Android
...
Reviewed By: Hypuk
Differential Revision: D5963912
fbshipit-source-id: 3959e5ab6af66512f0035efea7919572554e10b4
2017-10-03 08:07:41 -07:00
Paco Estevez Garcia
da14fad829
Add AppIdentity and DeviceIdentity to Inspector
...
Reviewed By: Hypuk
Differential Revision: D5924011
fbshipit-source-id: a81d420dbe1a5ede203d2fa313548e19664b9587
2017-10-03 06:03:23 -07:00
Charles Dick
e9aab0d452
Add locking around CatalystInstance.getJavaScriptContext()
...
Reviewed By: kathryngray
Differential Revision: D5861693
fbshipit-source-id: 226ff15622d5e1a8ae3ad4c63f1434bd95c1fa21
2017-09-22 08:37:22 -07:00
Alexey Lang
b9be9a01a9
Break down PRE_REACT_CONTEXT
...
Reviewed By: cwdick
Differential Revision: D5874529
fbshipit-source-id: 0ee9d740b4445419e3143942514475751763520d
2017-09-21 08:04:08 -07:00
Aaron Chiu
565a24140b
add Native Module init
...
Reviewed By: achen1
Differential Revision: D5740540
fbshipit-source-id: 9989424812fdcfd0a54c2ccf1e973aa7cc2a1f67
2017-09-20 10:57:12 -07:00
Aaron Chiu
12f123d3e4
add JS->Java Bridge traffic
...
Reviewed By: achen1
Differential Revision: D5740501
fbshipit-source-id: 3a88cd95d3a58aac24968e577f4eb3096d47d4ec
2017-09-19 12:03:15 -07:00
Kathy Gray
cf2ef84b16
Move destroy threads in catalystinstance off the UI thread
...
Reviewed By: cwdick
Differential Revision: D5842135
fbshipit-source-id: e9c44c4129d4d10da8781798df121f5c676766f8
2017-09-15 05:48:57 -07:00
Ben Nham
b7096c1136
fix logging of tagged markers
...
Reviewed By: alexeylang
Differential Revision: D5694590
fbshipit-source-id: 29e9cd7be88645e1c2c9f43d6e12261962c6ed09
2017-08-30 05:15:35 -07:00
Nurzhan Bakibayev
7d0c128174
Remove 'Debug JS on-device (experimental)' feature
...
Reviewed By: bnham
Differential Revision: D5706200
fbshipit-source-id: f389222a9266819c5730860a2e3e461eb1068d0e
2017-08-29 04:29:57 -07:00
Kathy Gray
f266ab9bac
Move cleanup back to destructor
...
Reviewed By: javache
Differential Revision: D5697611
fbshipit-source-id: e8bce63aec02d08421eea52b20343576e914e5aa
2017-08-24 07:59:56 -07:00
Kathy Gray
f0d98104ae
Reduce possible race condition on gc of catalyst instance
...
Reviewed By: cwdick
Differential Revision: D5669579
fbshipit-source-id: 165e19b68199e89bb99f7f93f2b1ec70729b2848
2017-08-22 03:30:22 -07:00
Michał Gregorczyk
73f17908e6
Make JavaScriptExecutor.Factory a configurable property of ReactInstanceManager
...
Reviewed By: mhorowitz
Differential Revision: D5662431
fbshipit-source-id: 17dca2744de645740cef252efbf83902acde5046
2017-08-21 13:42:34 -07:00
Michał Gregorczyk
606a876df7
Kill JSCConfig
...
Reviewed By: mhorowitz
Differential Revision: D5662181
fbshipit-source-id: 71a4d6cf4eb34030d4f86e96e8bc6f8e8efe5fdd
2017-08-21 13:42:34 -07:00
Alexey Lang
caaf7fd417
Add more perf counters
...
Reviewed By: AaaChiuuu
Differential Revision: D5624307
fbshipit-source-id: a7fd744b7a1989f35efe99d7471337a411870934
2017-08-17 08:00:28 -07:00
Ben Nham
c080fe54d6
add perf markers for reload and download
...
Reviewed By: alexeylang
Differential Revision: D5633613
fbshipit-source-id: 1fe39669cf4ba4e1475bb57de59c696771ebf8c7
2017-08-17 05:44:27 -07:00
Kathy Gray
84e80eb781
Allow reactinstancemanager to set an initialization function
...
Reviewed By: javache
Differential Revision: D5227811
fbshipit-source-id: e7868481de2a8799af5d6a6bcad26369d054b35e
2017-08-14 07:02:07 -07:00
Charles Dick
37754c5c83
refactor MemoryPressureListener to use Android levels
...
Reviewed By: bnham
Differential Revision: D5603426
fbshipit-source-id: 6d09a56544c27e46f4b9ef491798720e37214e47
2017-08-12 06:31:02 -07:00
Ben Nham
d013ba3915
add perf marker that fires first time content is added to root view
...
Reviewed By: javache
Differential Revision: D5582838
fbshipit-source-id: f90376ab11b4d44c002759829e4b2bbb4bbeeb56
2017-08-08 10:48:27 -07:00
Pieter De Baets
5d79b26011
Limit calls to SoLoader
...
Reviewed By: kathryngray
Differential Revision: D5536048
fbshipit-source-id: 525d5a37f41671abd4b56e5a6f4b88e9af9927b8
2017-08-07 09:53:20 -07:00
Pieter De Baets
ed3c018ee4
Remove legacy JSC profiler
...
Reviewed By: bnham
Differential Revision: D5433406
fbshipit-source-id: 8cbea8b9b46a0d9f29c57a5bcf605e6bb61ed8a7
2017-07-20 04:21:16 -07:00
Guichaguri
bc0717c6cc
Android: Added support to arrays in toBundle
...
Summary:
The support for `ReadableArray` in `toBundle` was never implemented, throwing an `UnsupportedOperationException` when trying to convert an array.
* Created `toList` -- A method that converts a `ReadableArray` to an `ArrayList`
* Modified `toBundle` to support arrays using `toList`
* Created `fromList` -- A method that converts a `List` to a `WritableArray`
* Modified `fromBundle` to also support lists using `fromList`
This PR allows `toBundle` and `fromBundle` (as well as `toList` and `fromList`) to work consistently without loosing information.
**Test Plan**
I've created three different arrays: one full of integers, one full of strings, and one mixed (with a integer, a boolean, a string, null, a map with a string and a boolean array), putting all of them inside a map.
After converting the map to a `Bundle` using `toBundle`, the integer array was retrieved through `Bundle.getIntegerArrayList`, the string array through `Bundle.getStringArrayList` and the mixed array through `Bundle.get` (casting it to an `ArrayList`)
After checking whether each value from the bundle was correct, I converted the bundle back to a map using `fromBundle`, and checked again every value.
The code and results from the test can be found in [this gist](https://gist.github.com/Guichaguri/5c7574b31f9584b6a9a0c182fd940a86 ).
Closes https://github.com/facebook/react-native/pull/15056
Differential Revision: D5460966
Pulled By: javache
fbshipit-source-id: a11b450eae4186e68bed7b8ce7dea8e5982e689a
2017-07-20 02:44:12 -07:00
Paco Estevez Garcia
a1e053cc50
Add Framework name to Attach selection
...
Reviewed By: Hypuk, javache
Differential Revision: D5389047
fbshipit-source-id: 90e2a5f805561e47e7705e7935ced7556a374616
2017-07-14 07:50:40 -07:00
Alexander Komissarov
1ab96fd077
Converting android support library dependencies to be provided_deps in React Native.
...
Reviewed By: bestander
Differential Revision: D5326236
fbshipit-source-id: 3f2ca43a78c4c868ed6665b4d9f61630631f9502
2017-07-05 19:15:22 -07:00
Joana Lopes
25d19e3830
Translating NativeArray into NativeMap on getConstants
...
Reviewed By: javache
Differential Revision: D5321741
fbshipit-source-id: 2465c69a5bd1d4f3cf20ba73e163372b12616312
2017-06-29 04:19:30 -07:00
Pieter De Baets
83faa4b608
Simplify Catalyst handleMemoryPressure
...
Reviewed By: cwdick
Differential Revision: D5200555
fbshipit-source-id: 86f12acca33ece265d3482ba52de9afcc83173cd
2017-06-26 06:01:14 -07:00
Kathy Gray
5c5410459e
Setting bridge up for sharing: allowing native modules to register after init
...
Reviewed By: javache
Differential Revision: D4945784
fbshipit-source-id: 80e7236e9ccd5d5c9a7fba7c96b98fc38b43a2fc
2017-06-21 12:08:45 -07:00
Aaron Chiu
e48ad9609c
tag INITIALIZE_MODULE marker with the non-zero instance key
...
Reviewed By: javache
Differential Revision: D5255044
fbshipit-source-id: 9bd72970488cfba4271562e83416f6515b9e77b3
2017-06-15 02:50:37 -07:00
Aaron Chiu
7464d5e1a2
use .contains
...
Reviewed By: achen1
Differential Revision: D5242469
fbshipit-source-id: d666b1264e6e40bb2649ab91bc63ecb6decb1532
2017-06-14 16:31:10 -07:00
Pieter De Baets
ce6fb337a1
Breaking - remove unused registration of JS modules
...
Summary: It's now unnecessary to declare which JS modules you want to expose on your package. To upgrade, remove all overrides of `createJSModules` and keeping calling your JS modules as before.
Reviewed By: AaaChiuuu
Differential Revision: D5229259
fbshipit-source-id: 1160826c951433722f1fe0421c1200883ba1a348
2017-06-14 03:52:17 -07:00
Pieter De Baets
53d5504f40
Stop requiring registration of callable JS modules
...
Reviewed By: AaaChiuuu
Differential Revision: D5229073
fbshipit-source-id: d6d1967982ae379733a7e9667515ca9f074aadd4
2017-06-13 05:46:31 -07:00
Aaron Chiu
a1321aedd7
add a bunch of debug log statements
...
Reviewed By: achen1
Differential Revision: D5216191
fbshipit-source-id: 8e8e05d4bcd8b2112fbd15b3809946f1caa0edbe
2017-06-09 15:49:57 -07:00
Ben Nham
2984628357
add marker surrounding entire native module creation
...
Reviewed By: javache
Differential Revision: D5200856
fbshipit-source-id: 35b0e627224d518126a1cfdd36d6af264dd186cf
2017-06-09 06:22:39 -07:00
Ben Nham
80bc07fd60
add support for multiple bridge listeners
...
Reviewed By: AaaChiuuu
Differential Revision: D5200830
fbshipit-source-id: 2a12267edddd2558146721e02a0b80d649755050
2017-06-09 06:22:39 -07:00
Pieter De Baets
a9e8b7bca5
Remove unused package_js.py
...
Reviewed By: AaaChiuuu
Differential Revision: D5200573
fbshipit-source-id: 5bc5cc66d3ce979a6ca2db9241e1de4eab45f234
2017-06-08 03:45:41 -07:00
Aaron Chiu
ce52f404f2
remove some markers
...
Reviewed By: fkgozali
Differential Revision: D5196382
fbshipit-source-id: b12b56a7f7d1c4309ebcb61e840cc570d87acf3b
2017-06-06 20:45:33 -07:00
Michał Gregorczyk
46b3a89a70
Stop SystraceMessage markers with SystraceMessage.endSection
...
Reviewed By: javache
Differential Revision: D5182628
fbshipit-source-id: f5112a434cb7564410b0e2e69840e45a0777a184
2017-06-06 11:20:47 -07:00
Pieter De Baets
964c3a1b7a
Don't include JNI dep in OSS build
...
Summary:
When circle is using Buck, it uses prebuilt native libraries. I added this dependency internally to avoid callers having to depend on it explicitly but it looks like that broken open-source.
Closes https://github.com/facebook/react-native/pull/14343
Differential Revision: D5191531
Pulled By: javache
fbshipit-source-id: 5397026daac085694b3320bf6d3e7b3f5d680691
2017-06-06 10:34:23 -07:00
Kathy Gray
3c89bafad5
Reducing lock contention in module creation
...
Reviewed By: javache
Differential Revision: D5147499
fbshipit-source-id: b420cc67ee97fd8cf4bb390098465f968478509f
2017-06-06 09:02:12 -07:00
Aaron Chiu
37536e93b7
properly clean up RN
...
Reviewed By: javache
Differential Revision: D5170608
fbshipit-source-id: 065cf4ba4244c26bf5fdf9f5183a6bb1295676ad
2017-06-02 23:47:37 -07:00