Skip to content

Commit

Permalink
[pull] master from microsoft:master (#11)
Browse files Browse the repository at this point in the history
* Deprecated api (microsoft#853)

* Remove deprecated/unused context param
* Update a few Mac deprecated APIs

* Packing RN dependencies, hermes and ignoring javadoc failure,  (microsoft#852)

* Ignore javadoc failure

* Bringing few more changes from 0.63-stable

* Fixing a patch in engine selection

* Fixing a patch in nuget spec

* Fixing the output directory of nuget pack

* Packaging dependencies in the nuget

* Fix onMouseEnter/onMouseLeave callbacks not firing on Pressable (microsoft#855)

* add pull yml

* match handleOpenURLNotification event payload with iOS (microsoft#755) (#2)

Co-authored-by: Ryan Linton <[email protected]>

* fix mouse evetns on pressable

* delete extra yml from this branch

* Add macOS tags

* reorder props to have onMouseEnter/onMouseLeave always be before onPress

Co-authored-by: pull[bot] <39814207+pull[bot]@users.noreply.github.com>
Co-authored-by: Ryan Linton <[email protected]>

* Grammar fixes. (microsoft#856)

Updates simple grammar issues.

Co-authored-by: Nick Trescases <[email protected]>
Co-authored-by: Anandraj <[email protected]>
Co-authored-by: Saad Najmi <[email protected]>
Co-authored-by: pull[bot] <39814207+pull[bot]@users.noreply.github.com>
Co-authored-by: Ryan Linton <[email protected]>
Co-authored-by: Muhammad Hamza Zaman <[email protected]>
  • Loading branch information
6 people authored Oct 14, 2021
1 parent d82a01b commit d9faa3a
Show file tree
Hide file tree
Showing 17 changed files with 774 additions and 364 deletions.
17 changes: 15 additions & 2 deletions .ado/android-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,18 @@ jobs:

- template: templates\prep-android-nuget.yml

# Verify depenendencies can be enumerated and downloaded ..
- task: CmdLine@2
displayName: 'Verify Dependencies can be enumerated'
inputs:
script: sudo apt-get install python3-pip && sudo apt-get install python3-setuptools && pip3 install BeautifulSoup4 && pip3 install wheel && pip3 install wget && python3 android-patches/scripts/downloadDependencies.py $(Build.SourcesDirectory) && tree $(Build.SourcesDirectory)/android


# Very similar to the default pack task .. but appends 'ndk21' to the nuget pack version
- task: CmdLine@2
displayName: 'Verify NuGet can be packed'
inputs:
script: NDK=ndk`cat ${ANDROID_SDK_ROOT}/ndk-bundle/source.properties 2>&1 | grep Pkg.Revision | awk '{ print $3}' | awk -F. '{ print $1 }'`; mono $(System.DefaultWorkingDirectory)/nuget-bin/nuget.exe pack $(System.DefaultWorkingDirectory)/ReactAndroid/ReactAndroid.nuspec -OutputDirectory $(System.DefaultWorkingDirectory) -Properties buildNumber=$(buildNumber)-$NDK;commitId=$(Build.SourceVersion)
script: NDK=ndk`cat ${ANDROID_SDK_ROOT}/ndk-bundle/source.properties 2>&1 | grep Pkg.Revision | awk '{ print $3}' | awk -F. '{ print $1 }'`; mono $(System.DefaultWorkingDirectory)/nuget-bin/nuget.exe pack $(System.DefaultWorkingDirectory)/ReactAndroid/ReactAndroid.nuspec -OutputDirectory $(Build.StagingDirectory)/final -Properties buildNumber=$(buildNumber)-$NDK;commitId=$(Build.SourceVersion)

# Android CI doesn't create a nuget now, but this check is failing builds. Quickest fix to unblock builds is to disable the check... but we need to find the root cause and fix it and enable this again.
# - script: '[ -f $(System.DefaultWorkingDirectory)/*.nupkg ]'
Expand All @@ -70,4 +77,10 @@ jobs:
- task: CmdLine@2
displayName: gradlew clean
inputs:
script: ./gradlew clean
script: ./gradlew clean

- task: PublishBuildArtifacts@1
displayName: 'Publish final artifacts'
inputs:
PathtoPublish: '$(Build.StagingDirectory)/final'
ArtifactName: 'ReactNative-Final'
7 changes: 7 additions & 0 deletions .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@ jobs:

- template: templates\prep-android-nuget.yml

# Enumerate and download all dependencies ..
- task: CmdLine@2
displayName: 'Verify Dependencies can be enumerated'
inputs:
script: sudo apt-get install python3-pip && sudo apt-get install python3-setuptools && pip3 install BeautifulSoup4 && pip3 install wheel && pip3 install wget && python3 android-patches/scripts/downloadDependencies.py $(Build.SourcesDirectory) && tree $(Build.SourcesDirectory)/android


# Very similar to the default pack task .. but appends 'ndk21b' to the nuget pack version
- task: CmdLine@2
displayName: 'NuGet pack'
Expand Down
6 changes: 6 additions & 0 deletions Libraries/Components/Pressable/Pressable.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ function Pressable(props: Props, forwardedRef): React.Node {
delayLongPress,
disabled,
focusable,
onMouseEnter, // [TODO(macOS GH#774)
onMouseLeave, // ]TODO(macOS GH#774)
onLongPress,
onPress,
onPressIn,
Expand Down Expand Up @@ -208,6 +210,8 @@ function Pressable(props: Props, forwardedRef): React.Node {
android_disableSound,
delayLongPress,
delayPressIn: unstable_pressDelay,
onHoverIn: onMouseEnter, // [TODO(macOS GH#774)
onHoverOut: onMouseLeave, // ]TODO(macOS GH#774)
onLongPress,
onPress,
onPressIn(event: PressEvent): void {
Expand Down Expand Up @@ -236,6 +240,8 @@ function Pressable(props: Props, forwardedRef): React.Node {
delayLongPress,
disabled,
hitSlop,
onMouseEnter, // [TODO(macOS GH#774)
onMouseLeave, // ]TODO(macOS GH#774)
onLongPress,
onPress,
onPressIn,
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

This repository is a working fork of **facebook/react-native** that adds support for the official React Native for macOS implementation from Microsoft.

You can read more about the macOS implementation in our website - [React Native for Windows + macOS](https://microsoft.github.io/react-native-windows/)
You can read more about the macOS implementation on our website - [React Native for Windows + macOS](https://microsoft.github.io/react-native-windows/)

## Contents

Expand Down Expand Up @@ -50,14 +50,14 @@ Search the [existing issues](https://github.com/microsoft/react-native-macos/iss
- Ensure the [appropriate template](https://github.com/microsoft/react-native-macos/issues/new/choose) is used when filing your issue(s).

## Contributing
See [Contributing guidelines](https://github.com/microsoft/react-native-macos/blob/master/CONTRIBUTING.md) for how to setup your fork of the repo and start a PR to contribute to React Native for macOS.
See [Contributing guidelines](https://github.com/microsoft/react-native-macos/blob/master/CONTRIBUTING.md) for how to set up your fork of the repo and start a PR to contribute to React Native for macOS.

[Good First Issue](https://github.com/microsoft/react-native-macos/labels/good%20first%20issue) and [help wanted](https://github.com/microsoft/react-native-macos/labels/help%20wanted) are great starting points for PRs.

## Documentation
[React Native already has great documentation](https://reactnative.dev/docs/getting-started) and we're working to ensure the React Native for Windows + macOS are part of that documentation story.

[React Native for Windows + macOS](https://microsoft.github.io/react-native-windows/) has it's own separate documentation site where Windows and macOS
[React Native for Windows + macOS](https://microsoft.github.io/react-native-windows/) has its own separate documentation site where Windows and macOS
specific information, like API docs and blog updates live. We are bootstrapping documentation for macOS at this time, tune in for updates.

### Examples
Expand Down
12 changes: 6 additions & 6 deletions React/Base/macOS/RCTPlatformDisplayLink.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#import <CoreVideo/CVDisplayLink.h>
#import <CoreVideo/CVHostTime.h>

#import <libkern/OSAtomic.h>
#import <os/lock.h>

@interface RCTPlatformDisplayLink ()

Expand All @@ -30,7 +30,7 @@ @implementation RCTPlatformDisplayLink
__weak id _target;
NSRunLoop *_runLoop;
NSMutableArray<NSRunLoopMode> *_modes;
OSSpinLock _lock; // OS_SPINLOCK_INIT == 0
os_unfair_lock _lock; // OS_UNFAIR_LOCK_INIT == 0
}

+ (RCTPlatformDisplayLink *)displayLinkWithTarget:(id)target selector:(SEL)sel
Expand All @@ -47,15 +47,15 @@ static CVReturn RCTPlatformDisplayLinkCallBack(__unused CVDisplayLinkRef display
RCTPlatformDisplayLink *rctDisplayLink = (__bridge RCTPlatformDisplayLink*)displayLinkContext;

// Lock and check for invalidation prior to calling out to the runloop
OSSpinLockLock(&rctDisplayLink->_lock);
os_unfair_lock_lock(&rctDisplayLink->_lock);
if (rctDisplayLink->_runLoop != nil) {
CFRunLoopRef cfRunLoop = [rctDisplayLink->_runLoop getCFRunLoop];
CFRunLoopPerformBlock(cfRunLoop, kCFRunLoopDefaultMode, ^{
[rctDisplayLink tick];
});
CFRunLoopWakeUp(cfRunLoop);
}
OSSpinLockUnlock(&rctDisplayLink->_lock);
os_unfair_lock_unlock(&rctDisplayLink->_lock);
}
return kCVReturnSuccess;
}
Expand Down Expand Up @@ -98,10 +98,10 @@ - (void)removeFromRunLoop:(__unused NSRunLoop *)runloop forMode:(NSRunLoopMode)m
- (void)invalidate
{
if (_runLoop != nil) {
OSSpinLockLock(&_lock);
os_unfair_lock_lock(&_lock);
_runLoop = nil;
_modes = nil;
OSSpinLockUnlock(&_lock);
os_unfair_lock_unlock(&_lock);

// CVDisplayLinkStop attempts to acquire a mutex possibly held during the callback's invocation.
// Stop the display link outside of the lock to avoid deadlocking here.
Expand Down
4 changes: 2 additions & 2 deletions React/Views/RCTActivityIndicatorView.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ - (instancetype)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame])) {
self.displayedWhenStopped = NO;
self.style = NSProgressIndicatorSpinningStyle;
self.style = NSProgressIndicatorStyleSpinning;
}
return self;
}
Expand Down Expand Up @@ -82,7 +82,7 @@ - (void)updateLayer
[super updateLayer];
if (_color != nil) {
CGFloat r, g, b, a;
[[_color colorUsingColorSpaceName:NSCalibratedRGBColorSpace] getRed:&r green:&g blue:&b alpha:&a];
[[_color colorUsingColorSpace:[NSColorSpace genericRGBColorSpace]] getRed:&r green:&g blue:&b alpha:&a];

CIFilter *colorPoly = [CIFilter filterWithName:@"CIColorPolynomial"];
[colorPoly setDefaults];
Expand Down
6 changes: 3 additions & 3 deletions React/Views/RCTProgressViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ @implementation RCTConvert (RCTProgressViewManager)

#if TARGET_OS_OSX // [TODO(macOS GH#774)
RCT_ENUM_CONVERTER(NSProgressIndicatorStyle, (@{
@"default": @(NSProgressIndicatorBarStyle),
@"bar": @(NSProgressIndicatorBarStyle),
}), NSProgressIndicatorBarStyle, integerValue)
@"default": @(NSProgressIndicatorStyleBar),
@"bar": @(NSProgressIndicatorStyleBar),
}), NSProgressIndicatorStyleBar, integerValue)
#else // ]TODO(macOS GH#774)
RCT_ENUM_CONVERTER(
UIProgressViewStyle,
Expand Down
2 changes: 1 addition & 1 deletion React/Views/RCTSlider.m
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ @implementation RCTSlider {
- (instancetype)initWithFrame:(NSRect)frameRect
{
if (self = [super initWithFrame:frameRect]) {
self.cell.controlSize = NSRegularControlSize;
self.cell.controlSize = NSControlSizeRegular;
((RCTSliderCell*)self.cell).delegate = self;
}
return self;
Expand Down
8 changes: 4 additions & 4 deletions React/Views/RCTSwitch.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ @implementation RCTSwitch
- (instancetype)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame])) {
self.buttonType = NSSwitchButton;
self.buttonType = NSButtonTypeSwitch;
self.title = @""; // default is "Button"
}
return self;
Expand All @@ -34,20 +34,20 @@ - (void)setOn:(BOOL)on animated:(BOOL)animated
}
#else // [TODO(macOS GH#774)
- (void)setOn:(BOOL)on animated:(BOOL)animated {
self.state = on ? NSOnState : NSOffState;
self.state = on ? NSControlStateValueOn : NSControlStateValueOff;
}
#endif // ]TODO(macOS GH#774)

#if TARGET_OS_OSX

- (BOOL)on
{
return self.state == NSOnState;
return self.state == NSControlStateValueOn;
}

- (void)setOn:(BOOL)on
{
self.state = on ? NSOnState : NSOffState;
self.state = on ? NSControlStateValueOn : NSControlStateValueOff;
}

#endif // ]TODO(macOS GH#774)
Expand Down
76 changes: 73 additions & 3 deletions android-patches/patches/Build/ReactAndroid/ReactAndroid.nuspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- "E:\\github\\rnm-63-fresh\\ReactAndroid\\ReactAndroid.nuspec" 1969-12-31 16:00:00.000000000 -0800
+++ "E:\\github\\rnm-63\\ReactAndroid\\ReactAndroid.nuspec" 2020-10-27 20:20:54.071789900 -0700
@@ -0,0 +1,130 @@
--- "E:\\gh\\react-native-macos2\\ReactAndroid\\ReactAndroid.nuspec" 1969-12-31 16:00:00.000000000 -0800
+++ "E:\\gh\\react-native-macos\\ReactAndroid\\ReactAndroid.nuspec" 2021-10-12 19:48:38.934480100 -0700
@@ -0,0 +1,200 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <metadata>
Expand Down Expand Up @@ -64,6 +64,41 @@
+ <file src="build\react-ndk\all\armeabi-v7a\libyoga.so" target="lib\droidarm"/>
+ <file src="build\react-ndk\all\x86\libyoga.so" target="lib\droidx86"/>
+ <file src="build\react-ndk\all\arm64-v8a\libyoga.so" target="lib\droidarm64"/>
+
+ <file src="build\react-ndk\all\x86_64\libhermes-executor-common-debug.so" target="lib\droidx64"/>
+ <file src="build\react-ndk\all\armeabi-v7a\libhermes-executor-common-debug.so" target="lib\droidarm"/>
+ <file src="build\react-ndk\all\x86\libhermes-executor-common-debug.so" target="lib\droidx86"/>
+ <file src="build\react-ndk\all\arm64-v8a\libhermes-executor-common-debug.so" target="lib\droidarm64"/>
+
+ <file src="build\react-ndk\all\x86_64\libhermes-executor-common-release.so" target="lib\droidx64"/>
+ <file src="build\react-ndk\all\armeabi-v7a\libhermes-executor-common-release.so" target="lib\droidarm"/>
+ <file src="build\react-ndk\all\x86\libhermes-executor-common-release.so" target="lib\droidx86"/>
+ <file src="build\react-ndk\all\arm64-v8a\libhermes-executor-common-release.so" target="lib\droidarm64"/>
+
+ <file src="build\react-ndk\all\x86_64\libhermes-executor-debug.so" target="lib\droidx64"/>
+ <file src="build\react-ndk\all\armeabi-v7a\libhermes-executor-debug.so" target="lib\droidarm"/>
+ <file src="build\react-ndk\all\x86\libhermes-executor-debug.so" target="lib\droidx86"/>
+ <file src="build\react-ndk\all\arm64-v8a\libhermes-executor-debug.so" target="lib\droidarm64"/>
+
+ <file src="build\react-ndk\all\x86_64\libhermes-executor-release.so" target="lib\droidx64"/>
+ <file src="build\react-ndk\all\armeabi-v7a\libhermes-executor-release.so" target="lib\droidarm"/>
+ <file src="build\react-ndk\all\x86\libhermes-executor-release.so" target="lib\droidx86"/>
+ <file src="build\react-ndk\all\arm64-v8a\libhermes-executor-release.so" target="lib\droidarm64"/>
+
+ <file src="build\react-ndk\all\x86_64\libhermes-inspector.so" target="lib\droidx64"/>
+ <file src="build\react-ndk\all\armeabi-v7a\libhermes-inspector.so" target="lib\droidarm"/>
+ <file src="build\react-ndk\all\x86\libhermes-inspector.so" target="lib\droidx86"/>
+ <file src="build\react-ndk\all\arm64-v8a\libhermes-inspector.so" target="lib\droidarm64"/>
+
+ <file src="build\react-ndk\all\x86_64\libjsijniprofiler.so" target="lib\droidx64"/>
+ <file src="build\react-ndk\all\armeabi-v7a\libjsijniprofiler.so" target="lib\droidarm"/>
+ <file src="build\react-ndk\all\x86\libjsijniprofiler.so" target="lib\droidx86"/>
+ <file src="build\react-ndk\all\arm64-v8a\libjsijniprofiler.so" target="lib\droidarm64"/>
+
+ <file src="build\react-ndk\all\x86_64\libfolly_futures.so" target="lib\droidx64"/>
+ <file src="build\react-ndk\all\armeabi-v7a\libfolly_futures.so" target="lib\droidarm"/>
+ <file src="build\react-ndk\all\x86\libfolly_futures.so" target="lib\droidx86"/>
+ <file src="build\react-ndk\all\arm64-v8a\libfolly_futures.so" target="lib\droidarm64"/>
+
+ <!-- Unstripped binaries -->
+ <file src="build\tmp\buildReactNdkLib\local\x86_64\libfb.so" target="lib\droidx64\unstripped"/>
Expand Down Expand Up @@ -116,6 +151,40 @@
+ <file src="build\tmp\buildReactNdkLib\local\x86\libyoga.so" target="lib\droidx86\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\arm64-v8a\libyoga.so" target="lib\droidarm64\unstripped"/>
+
+ <file src="build\tmp\buildReactNdkLib\local\x86_64\libhermes-executor-common-debug.so" target="lib\droidx64\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\armeabi-v7a\libhermes-executor-common-debug.so" target="lib\droidarm\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\x86\libhermes-executor-common-debug.so" target="lib\droidx86\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\arm64-v8a\libhermes-executor-common-debug.so" target="lib\droidarm64\unstripped"/>
+
+ <file src="build\tmp\buildReactNdkLib\local\x86_64\libhermes-executor-common-release.so" target="lib\droidx64\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\armeabi-v7a\libhermes-executor-common-release.so" target="lib\droidarm\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\x86\libhermes-executor-common-release.so" target="lib\droidx86\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\arm64-v8a\libhermes-executor-common-release.so" target="lib\droidarm64\unstripped"/>
+
+ <file src="build\tmp\buildReactNdkLib\local\x86_64\libhermes-executor-debug.so" target="lib\droidx64\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\armeabi-v7a\libhermes-executor-debug.so" target="lib\droidarm\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\x86\libhermes-executor-debug.so" target="lib\droidx86\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\arm64-v8a\libhermes-executor-debug.so" target="lib\droidarm64\unstripped"/>
+
+ <file src="build\tmp\buildReactNdkLib\local\x86_64\libhermes-executor-release.so" target="lib\droidx64\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\armeabi-v7a\libhermes-executor-release.so" target="lib\droidarm\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\x86\libhermes-executor-release.so" target="lib\droidx86\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\arm64-v8a\libhermes-executor-release.so" target="lib\droidarm64\unstripped"/>
+
+ <file src="build\tmp\buildReactNdkLib\local\x86_64\libhermes-inspector.so" target="lib\droidx64\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\armeabi-v7a\libhermes-inspector.so" target="lib\droidarm\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\x86\libhermes-inspector.so" target="lib\droidx86\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\arm64-v8a\libhermes-inspector.so" target="lib\droidarm64\unstripped"/>
+
+ <file src="build\tmp\buildReactNdkLib\local\x86_64\libjsijniprofiler.so" target="lib\droidx64\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\armeabi-v7a\libjsijniprofiler.so" target="lib\droidarm\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\x86\libjsijniprofiler.so" target="lib\droidx86\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\arm64-v8a\libjsijniprofiler.so" target="lib\droidarm64\unstripped"/>
+
+ <file src="build\tmp\buildReactNdkLib\local\x86_64\libfolly_futures.so" target="lib\droidx64\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\armeabi-v7a\libfolly_futures.so" target="lib\droidarm\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\x86\libfolly_futures.so" target="lib\droidx86\unstripped"/>
+ <file src="build\tmp\buildReactNdkLib\local\arm64-v8a\libfolly_futures.so" target="lib\droidarm64\unstripped"/>
+ <!-- AAR and POM -->
+ <file src="..\android\com\facebook\react\react-native\*\react-native-*.aar" target="lib"/>
+ <file src="..\android\com\facebook\react\react-native\*\react-native-*.pom" target="lib"/>
Expand All @@ -128,6 +197,7 @@
+ <file src="..\ReactCommon\cxxreact\**\*.h" target="inc\cxxreact"/>
+ <file src="..\ReactCommon\jsi\**\*.h" target="inc\jsi"/>
+ <file src="..\ReactCommon\yoga\yoga\**\*.h" target="inc\Yoga"/>
+ <file src="..\android\dependencies\**\*.*" target="dependencies"/>
+ </files>
+</package>
+
10 changes: 10 additions & 0 deletions android-patches/patches/Build/ReactAndroid/release.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- /home/mganandraj/github/rnm-64-vanilla/ReactAndroid/release.gradle 2021-10-11 17:51:44.286455263 -0700
+++ /home/mganandraj/github/rnm-64/ReactAndroid/release.gradle 2021-10-07 16:35:28.636536900 -0700
@@ -74,6 +74,7 @@
afterEvaluate { project ->

task androidJavadoc(type: Javadoc) {
+ failOnError false
source = android.sourceSets.main.java.srcDirs
classpath += files(android.bootClasspath)
classpath += files(project.getConfigurations().getByName("compile").asList())
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
--- "E:\\github\\rnm-63-fresh\\ReactAndroid\\src\\main\\java\\com\\facebook\\react\\bridge\\ReactBridge.java" 2020-10-27 20:26:16.762190600 -0700
+++ "E:\\github\\rnm-63\\ReactAndroid\\src\\main\\java\\com\\facebook\\react\\bridge\\ReactBridge.java" 2020-10-13 21:38:04.995797000 -0700
@@ -31,6 +31,14 @@
--- "E:\\gh\\react-native-macos2\\ReactAndroid\\src\\main\\java\\com\\facebook\\react\\bridge\\ReactBridge.java" 2021-10-12 13:35:49.124099000 -0700
+++ "E:\\gh\\react-native-macos\\ReactAndroid\\src\\main\\java\\com\\facebook\\react\\bridge\\ReactBridge.java" 2021-10-12 13:22:46.508704400 -0700
@@ -31,6 +31,24 @@
Systrace.beginSection(
TRACE_TAG_REACT_JAVA_BRIDGE, "ReactBridge.staticInit::load:reactnativejni");
ReactMarker.logMarker(ReactMarkerConstants.LOAD_REACT_NATIVE_SO_FILE_START);
+
+ SoLoader.loadLibrary("v8jsi");
+ // JS Engine is configurable .. And we expect only one packaged.
+ // Hence ignore failure.
+
+ try {
+ SoLoader.loadLibrary("hermes");
+ } catch (UnsatisfiedLinkError jscE) {}
+
+ try {
+ SoLoader.loadLibrary("v8jsi");
+ } catch (UnsatisfiedLinkError jscE) {}
+
+ SoLoader.loadLibrary("glog_init");
+ SoLoader.loadLibrary("fb");
+ SoLoader.loadLibrary("fbjni");
Expand Down
Loading

0 comments on commit d9faa3a

Please sign in to comment.