Граф коммитов

12 Коммитов

Автор SHA1 Сообщение Дата
Andrew Coates ce7f7ac062
Enable ability to codegen JSI C++ TurboModule specs (#10909)
* Example of using Meta's c++ JSI codegen

* Make codegen of jsispec's optional

* Use codegen in MS.RN.IntegrationTests tests of JSI turbomodules

* cleanup

* Change files

* build fix

* typo

* build fix

* build fix

* attributes

* update

* formatting

* lint:fix

* Try to disable padding warning in tests

* disable another warning in test code

* remove jsi from samples

* minor change
2022-11-20 08:39:09 -08:00
Andrew Coates c808a5234e
Add codegen-windows command (#10532)
* Add codegen-windows command to run windows codegen

* Do not error on codegenconfigs that do not specify windows

* Change files

* Add codegen to default build

* run codegen

* fix module

* format

* lint fix
2022-09-26 13:35:26 -07:00
Andrew Coates 36e48e2715
Hook up fabric view component codegen (#7759)
* Hook up view component codegen

* Change files

* Dont use relative imports

* format

* Change files

* Run codegen for all the view components

* fix path

* change to ignore codegen formatting

* x86 build fix

* Add clang-format override file for codegen

* codegen uses LF

* yse yargs required

* tmp

* readd codegen'd files using LF

* Disable sort includes on the codegen files

* updated clang-format file
2021-05-12 22:40:17 +00:00
Andrew Coates (REDMOND) 6a7cf4f51e Use LF for codegen'd files to avoid them showing edited on build 2020-04-24 21:11:48 -07:00
Julio César Rocha f39c1628b7 Use templates for main RNW build tasks. (#3255) (#3272)
* Run Desktop and Universal builds in parallel.

* Update

* Simplify publish jobs display names.

* Use template for building ReactNative variants.

* Pass UseRNFork from strategy.

* Use join to pass multiple solutions.

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Relocate header nuget layout tasks.

* Parameterized layoutHeaders.

* Update

* Update

* Publish headers to Artifact directory root.

* Use build-rnw in publish definition.

* Removed vs-build.yml.

* Fix usage of LayoutHeaders var.

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Update

* Restored publish tasks.

* Clean publish-build-artifacts...
2019-09-27 14:53:08 -07:00
acoates-ms 388743e157
Hook up some basic formatting configuration for vscode (#2655)
* Hook up some basic formatting configuration for vscode

* Replace tslint with eslint

* Format on save

* Fix a bunch of eslint errors

* Dont run lint on already build files

* lint now enforces LF to match community
2019-07-01 12:38:12 -07:00
Julio César Rocha f8c9e20cf0
Enable WebSocket resource unit tests. (#2415)
* Define test WebSocket types.

* Use CRLF for C++ files.

* Try basic_stream_socket over IWebSocketStream.

* Use boost::beast::test::stream.

* Defined async_connect(test::stream& ...

* Move custom async_connect into WebSocket.cpp.

* Defined MockStreamLayer subtype.

* Use errc::make_error_code.

* Define MockStream, equivalent to websocket::stream

* Implement async read and write in MockStreamLayer.

* Override boost::beast::http::async_read and write.

* Move TestWebSocket implementation to CPP file.

* Stop including <boost/beast/experimental/test/stream.hpp>.

* Simplify template decls for SecureWebSocket.

* Simplified WebSocket template declaration.

* Updated namespace for WebSocket-related APIs.

* Reset default platform to x64 in SLN.

* Re-located BaseWebSocketTest.
2019-05-06 14:49:32 -07:00
Julio César Rocha cedbb3c745
Fix integration test setup script (#2318)
* Add newline to package.json.

* Fixed default ReactNative path for IntegrationTests script.
2019-04-19 18:33:46 -07:00
Julio César Rocha b08530c0d8 Fix Git newline handling. (#2305) 2019-04-17 17:05:57 +00:00
Matt Hargett a21611b17f apply consistent whitespace normalization for project files to avoid noise when VS2017 decides to change EOL. (#1658) 2018-02-21 04:47:32 -05:00
Eric Rozell e6753f3af1 perf(NativeModuleBase): Adds cleanup to GenericDelegate approach
Adds cleanup, including generated delegates for all .NET generic delegate types (Func and Action), and removes unrelated changes.
2018-02-09 16:43:08 -05:00
Matt Hargett 87a341c495 perf(NativeModuleBase): Use delegates instead of reflection invokes to reduce CPU overhead.
This change reclaims ~3ms of frametime, eliminating jank in a fast scrolling grid view we saw.

The templates file is generated, but VS2017 broke automatic generation of T4 templates, so I didn't include it in this PR.
2018-02-09 16:43:08 -05:00