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

17858 Коммитов

Автор SHA1 Сообщение Дата
Tom Underhill ef31e51828
Add `react-native-macos-init` for adding macOS apps to existing `react-native init` projects. (#291)
* Got npx command line working.

* Generating project folder.

* Added macOS template files.

* Lint fixes

* Remove temp workarounds.

* Make react-native.config.js mac and windows compatible.

* Restore parity of macOS components with iOS because the `react-native init` sample app depends on them: e.g. StatusBar.

* Updated NewAppScreen language for macOS.

* Added `--prerelease` switch to allow installing pre-rerelease versions without prompting as this will be needed in CI.
Made tweaks to templates and fixed template schemes to rename to project name.
2020-04-01 17:22:01 -07:00
React-Native Bot feed0ac06b Applying package update to 0.60.0-microsoft.63 ***NO_CI*** 2020-03-27 02:32:39 +00:00
Anandraj fd772eed16
Fixing DialogModule for Android SDK version before 26 (#285)
* Fixing DialogModule for Android SDK version before 26

* Adding a comment

Adding a comment .. as a workaround to retrigger Apple PR

Co-authored-by: Anandraj Govindan <anandrag@microsoft.com>
2020-03-26 19:17:45 -07:00
React-Native Bot 058aa0b1d7 Applying package update to 0.60.0-microsoft.62 ***NO_CI*** 2020-03-25 18:15:17 +00:00
HeyImChris 2117256a5e
Send mouse up notifications for all enabled NSControls (#263)
* remove a stale event from the native tracking queue that prevents every other click from registering

* comment change inline
2020-03-25 11:00:10 -07:00
React-Native Bot 2296bda5bc Applying package update to 0.60.0-microsoft.61 ***NO_CI*** 2020-03-23 18:50:09 +00:00
Tom Underhill d604a2d9e2
Add support for macOS legacy scroller system setting. (#262)
* Add support for macOS legacy scroller system setting.

* Add missing comment.  Whitespace cleanup

* Add locals

* Fixed ] in comment
2020-03-23 11:36:10 -07:00
React-Native Bot 08a90a0066 Applying package update to 0.60.0-microsoft.60 ***NO_CI*** 2020-03-20 21:32:42 +00:00
HeyImChris ba0ccdf7b9
MacOS mouse events show up at wrong locations (#260)
* macos mouse events showing up at wrong locations sometimes fix

* cache some vars

* minor var renames
2020-03-20 14:18:27 -07:00
React-Native Bot d380cd80a3 Applying package update to 0.60.0-microsoft.59 ***NO_CI*** 2020-03-20 17:29:55 +00:00
HeyImChris b25c2efadf
provide an anchor to our actionsheet (#261) 2020-03-20 10:15:07 -07:00
React-Native Bot 36306e3849 Applying package update to 0.60.0-microsoft.58 ***NO_CI*** 2020-03-19 01:34:51 +00:00
Anandraj 3a93643e8e
Moving the android specific changes to patch files and reverting them… (#254)
* Moving the android specific changes to patch files and reverting them from the repo.

* Apply patches immediately after cloning

* Fixing the webpack config for the bundle to run correctly

* Removing an unwanted hunk from folly makefile hwich might be causing a build failure

* Reverting src/main/jni/third-party/folly/Android.mk hoping for the best. If this doesn't work then will look deeper

* Fixing the patch scripts

* Fixing a patch file with integrity failure.. and tightening the error handling.

* Adding more diagnostics

* More diagnostics

* Fixing line splitting of patch and source files while patching

* Cleaning up the diagnostics.. Patching should work this time.

* Reverting the change needed for MAC/iOS

* More diagnostics printed out ..

* Fixing MAC/iOS build

* yarn test -u

* Update .eslintignore

Update .eslintignore to ignore patching code and patch files.

* Fixing a couple of linking errors in JS'

* Adding prettierignore and making some fixes to the patches

* More fixes to the path

* Making required changes in Apple PR/Publish build pipelines to valiate/publish patched as well as unpatched code

* A fix in the patch application condition

* More fixes in the patch application condition

* Another attempt to fix the patching condition

* Yet Another attempt to fix the patching condition

* Yet Another attempt to fix the patching condition.. forcing the parameter to be strings

* Yet Another attempt to fix the patching condition.. forcing the parameter to be strings

* Making patches work on non-windows.. and more fixes for the condition in yaml

* Diagnostics for debugging conditions

* Diagnostics for debugging conditions 2

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Diagnostics for debugging conditions 3

* Workaround

* Workaround

* Workaround

* Workaround

* Fixing Apple build failure with patch applied ..

* Refactoring the patch application to template

* Fixing the template file relative URL when referenced from another template

* Fixing a mistake introduced while refactoring the patch creating steps.

* Fixing some formatting

* Fixing some formatting

Co-authored-by: Anandraj <anandrag@microsoft.com>
2020-03-18 18:20:08 -07:00
React-Native Bot bcd99838ca Applying package update to 0.60.0-microsoft.57 ***NO_CI*** 2020-03-10 18:36:24 +00:00
HeyImChris 65f2bcad14
Remove a stale ref to a deprecated file (UIWebView) (#259)
* Remove a stale ref to a deprecated file

* remove more unneeded recovered files- remove libs by ref

* add back lib refs as we get build failures with them out

* fix up blank space issues
2020-03-10 11:22:18 -07:00
React-Native Bot e7b93a1f86 Applying package update to 0.60.0-microsoft.56 ***NO_CI*** 2020-03-08 00:37:46 +00:00
Tom Underhill 5819699717
Do not override `accessibilityRole` on `NSView` for macOS. (#258) 2020-03-07 16:24:41 -08:00
React-Native Bot 59adec8f2b Applying package update to 0.60.0-microsoft.55 ***NO_CI*** 2020-03-07 22:12:37 +00:00
Tom Underhill 8214368e58
Restore macOS <Image> and ActionSheetIOS. Cherry pick multi windows UIScene support from upstream. (#256)
* Fix manual merge error.

* Fix missing getters from react-native-implementation.macos.js.
Cherry pick https://github.com/facebook/react-native/pull/28147 into fork to Make RCTKeyWindow multi-window aware and add UIScene support to RCTRedBox.

* release _window now to ensure its UIKit ivars are dealloc'd on the main thread as the RCTRedBox can be dealloc'd on a background thread
2020-03-07 13:59:28 -08:00
React-Native Bot dadfc30bea Applying package update to 0.60.0-microsoft.54 ***NO_CI*** 2020-03-05 01:07:36 +00:00
Andrew Coates e999da1c56
Autorelease pool growth fix (#255)
* Place each run loop in its own autorelease pool to keep the memory footprint down

* fix bracket off typo
2020-03-04 16:53:50 -08:00
React-Native Bot a31bb2de18 Applying package update to 0.60.0-microsoft.53 ***NO_CI*** 2020-02-20 17:34:32 +00:00
Anandraj 18b4b049cc
Clearing dead code or unnecessary cosmetic fixes to reduce the differences (#251)
* Miscellaneous cleanups

* Cleaning up dead code and unwanted edits and renames

* Bringing back some changes for devmain to work

* Reverting unnecessary changes in a couple of files.

* Fixing the MAC/iOS PR build by including unistd.h back
2020-02-20 09:21:04 -08:00
React-Native Bot 6c0ca74ca6 Applying package update to 0.60.0-microsoft.52 ***NO_CI*** 2020-02-18 15:04:24 +00:00
Tom Underhill 38d91b7baa
Change the `reactInstance` category method from `shared_ptr` to `weak_ptr` to match the change in `RCTCxxBridge.mm` made in 71a8944b39. (#250) 2020-02-18 06:50:48 -08:00
React-Native Bot 622b87739d Applying package update to 0.60.0-microsoft.51 ***NO_CI*** 2020-02-14 06:31:33 +00:00
Anandraj de760ed5f9
Deleting unused platform.h/cpp (#248)
* Deleting unused platform.h/cpp

* Removing reference to the header
2020-02-13 22:16:20 -08:00
React-Native Bot 763ad2c1c9 Applying package update to 0.60.0-microsoft.50 ***NO_CI*** 2020-02-11 17:57:08 +00:00
Anandraj 79169b4ac7
Droid cleanups (#247)
* Some cleanup to take our fork closer to FB repo

* More cleanups.. Cleaning up the docker file and the changes in the setup
bash script. We no longer run the docker based test in our PR/publish.
They are no longer kept in the FB reporitory as well.

* Cleaning up the unused code snippets in RNTester

* Clearing some more devmain build files.
2020-02-11 09:43:58 -08:00
React-Native Bot 7343278856 Applying package update to 0.60.0-microsoft.49 ***NO_CI*** 2020-01-30 03:19:53 +00:00
Tom Underhill 1350fb6149
Add new scripts to files. (#245) 2020-01-29 19:02:41 -08:00
React-Native Bot 69bccdc084 Applying package update to 0.60.0-microsoft.48 ***NO_CI*** 2020-01-30 02:13:11 +00:00
Tom Underhill fd8f8d7680
Add postInstall step to restore the executable bit on scripts. (#244)
* Add postInstall step to restore the executable bit on scripts.

* Removed comma
2020-01-29 17:59:18 -08:00
React-Native Bot 2726564bf3 Applying package update to 0.60.0-microsoft.47 ***NO_CI*** 2020-01-29 23:31:13 +00:00
Nick Gerleman dcacb44fbe
Do not define ENUM_BITFIELDS_NOT_SUPPORTED for MSVC (#230)
In order to move to OSS React Native, Windows needs to define
ENUM_BITFIELDS_NOT_SUPPORTED. This causes warnings treated as errors on
the microsoft fork due to macro redefinition. Remove the code that
automatically adds this definiion.

This allows the removal of the YGStyle patch added to RNW. At item was
created to remove this entire chunk once we're off the fork.
2020-01-29 23:15:27 +00:00
React-Native Bot be9374b520 Applying package update to 0.60.0-microsoft.46 ***NO_CI*** 2020-01-29 20:33:41 +00:00
Tom Underhill d2d04c696f
Change to XCode 11.2.1 (#231) 2020-01-29 12:19:17 -08:00
React-Native Bot a8d3fd0435 Applying package update to 0.60.0-microsoft.45 ***NO_CI*** 2020-01-28 16:17:12 +00:00
Eloy Durán 4a0ca8cc2a
[RNTester] Add CocoaPods based macOS target. (#211)
* [RNTester] Check-in pod install artefacts

* [RNTester] Add CameraRoll pod dependency back

At least for now so we’re in sync with upstream v0.60.0

* [RNTester] First pass at adding CocoaPods based macOS target

* [RNTester] Add notifications pod to macOS target

* [CocoaPods] Make RCTText pod build for macOS

* [CocoaPods] make RCTLinking pod build for macOS

* [CocoaPods] Exclude more files from RCTText pod

* [CocoaPods] Make Core pod build for macOS

* [CocoaPods] Exclude turbomodule sample from macOS

* [RNTester] Update CocoaPods artefact

* [RNTester] Update macOS target to follow non-pods version

* [CocoaPods] Tag all macOS changes to ease updating

https://github.com/microsoft/react-native/issues/214

* [RNTester] Remove development team references

This change is already made upstream in commit
https://github.com/facebook/react-native/commit/9ece5bda, so when that
is merged in this commit can be skipped.

Until then, not making this change will just lead to file thrashing.

* [RNTester] Import Xcode artefact

This change is already made upstream in commit
https://github.com/facebook/react-native/commit/c1845810, so when that
is merged in this commit can be skipped.

Until then, not making this change will just lead to file thrashing.

* [RNTester] Start Metro on launch of macOS product

* [RCTRedBox] Fix -[RCTRedBoxWindow dismiss] on macOS

As per https://www.thecave.com/2015/08/10/dispatch-async-to-main-queue-doesnt-work-with-modal-window-on-mac-os-x/#update2
the main queue is already executing a block when we start the new
modal runloop and as the main queue is a serial queue it won’t perform
new work until the current block is finished. In short, the task is
queued, but will never be performed by GCD. This change side-steps GCD
and instead directly invokes -dismiss on the main thread.
2020-01-28 17:01:58 +01:00
React-Native Bot a6c1ff6dec Applying package update to 0.60.0-microsoft.44 ***NO_CI*** 2020-01-28 00:04:50 +00:00
Tom Underhill 0569058373
Change publish step to publish react-native-macos npm package. (#228) 2020-01-27 15:44:21 -08:00
React-Native Bot 7a4f8124d3 Applying package update to 0.60.0-microsoft.43 ***NO_CI*** 2020-01-24 19:17:33 +00:00
Tom Underhill b1a11c619a
Fix for building and deploying arm64e to devices (#226) 2020-01-24 11:02:50 -08:00
React-Native Bot e8b564b475 Applying package update to 0.60.0-microsoft.42 ***NO_CI*** 2020-01-24 18:55:47 +00:00
Tom Underhill 96ffd35640
Remove react-native commands from cli when installed as 'react-native-macos' (#227)
* Add logic to remove ios and android commands from react-native cli when installed as `react-native-macos`

* Linted the js
2020-01-24 10:41:25 -08:00
React-Native Bot 9bf2c75272 Applying package update to 0.60.0-microsoft.41 ***NO_CI*** 2020-01-23 18:04:48 +00:00
Anandraj 5fb6950a2a Fixing the publish task (#225) 2020-01-23 09:49:20 -08:00
React-Native Bot 495ca4dfdf Applying package update to 0.60.0-microsoft.40 ***NO_CI*** 2020-01-17 19:12:19 +00:00
Anandraj f5a5da14a5
Getting rid of the legacy JS integration in favor of JSI with V8 impl… (#224)
* Getting rid of the legacy JS integration in favor of JSI with V8 implementation

* Some cleanup

* A few more cleanups including removing privatedata
2020-01-17 10:56:37 -08:00
React-Native Bot e5460d377f Applying package update to 0.60.0-microsoft.39 ***NO_CI*** 2020-01-15 18:18:11 +00:00