react-native-tvos 0.68.1-1 → 0.68.2-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +6 -6
- package/Libraries/Components/Pressable/Pressable.js +13 -2
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +3 -1
- package/Libraries/Components/{AppleTV → TV}/NativeTVNavigationEventEmitter.js +0 -0
- package/Libraries/Components/{AppleTV → TV}/TVEventControl.js +0 -0
- package/Libraries/Components/{AppleTV → TV}/TVEventHandler.js +0 -0
- package/Libraries/Components/{AppleTV → TV}/TVFocusEventHandler.js +0 -0
- package/Libraries/Components/TV/TVFocusGuideView.js +135 -0
- package/Libraries/Components/{AppleTV → TV}/TVTextScrollView.js +0 -0
- package/Libraries/Components/{AppleTV → TV}/TVViewPropTypes.js +0 -0
- package/Libraries/Components/{AppleTV → TV}/tagForComponentOrHandle.js +0 -0
- package/Libraries/Components/{AppleTV → TV}/useTVEventHandler.js +0 -0
- package/Libraries/Components/Touchable/TVTouchable.js +1 -1
- package/Libraries/Components/Touchable/Touchable.js +1 -1
- package/Libraries/Components/Touchable/TouchableHighlight.js +19 -5
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +7 -6
- package/Libraries/Components/Touchable/TouchableOpacity.js +2 -2
- package/Libraries/Components/View/ReactNativeViewViewConfig.js +1 -1
- package/Libraries/Components/View/ViewPropTypes.js +1 -1
- package/Libraries/Lists/VirtualizedSectionList.js +2 -1
- package/Libraries/LogBox/UI/AnsiHighlight.js +4 -2
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +2 -2
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +1 -1
- package/Libraries/Utilities/BackHandler.ios.js +1 -1
- package/Libraries/Utilities/ReactNativeTestTools.js +5 -7
- package/README.md +6 -1
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +4 -0
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +83 -30
- package/React/Views/RCTTVView.h +9 -5
- package/React/Views/RCTTVView.m +98 -52
- package/ReactAndroid/build.gradle +2 -11
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/Android.mk +1 -0
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/Android.mk +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/Android.mk +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Android.mk +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/Android.mk +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/Android.mk +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/reactperflogger/jni/Android.mk +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/Android.mk +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/Android.mk +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +173 -103
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +20 -0
- package/ReactAndroid/src/main/jni/first-party/yogajni/Android.mk +1 -0
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +2 -0
- package/ReactAndroid/src/main/jni/third-party/boost/Android.mk +1 -0
- package/ReactCommon/butter/Android.mk +1 -0
- package/ReactCommon/cxxreact/Android.mk +1 -0
- package/ReactCommon/hermes/executor/Android.mk +2 -0
- package/ReactCommon/hermes/inspector/Android.mk +1 -0
- package/ReactCommon/jsi/Android.mk +2 -0
- package/ReactCommon/jsiexecutor/Android.mk +1 -0
- package/ReactCommon/jsinspector/Android.mk +1 -0
- package/ReactCommon/logger/Android.mk +1 -0
- package/ReactCommon/react/config/Android.mk +1 -0
- package/ReactCommon/react/debug/Android.mk +1 -0
- package/ReactCommon/react/nativemodule/core/Android.mk +1 -0
- package/ReactCommon/react/nativemodule/samples/platform/android/Android.mk +1 -0
- package/ReactCommon/react/renderer/animations/Android.mk +1 -0
- package/ReactCommon/react/renderer/attributedstring/Android.mk +1 -0
- package/ReactCommon/react/renderer/componentregistry/Android.mk +1 -0
- package/ReactCommon/react/renderer/componentregistry/native/Android.mk +1 -0
- package/ReactCommon/react/renderer/components/image/Android.mk +1 -0
- package/ReactCommon/react/renderer/components/modal/Android.mk +1 -0
- package/ReactCommon/react/renderer/components/progressbar/Android.mk +1 -0
- package/ReactCommon/react/renderer/components/root/Android.mk +1 -0
- package/ReactCommon/react/renderer/components/scrollview/Android.mk +1 -0
- package/ReactCommon/react/renderer/components/slider/Android.mk +1 -0
- package/ReactCommon/react/renderer/components/switch/Android.mk +1 -0
- package/ReactCommon/react/renderer/components/text/Android.mk +1 -0
- package/ReactCommon/react/renderer/components/textinput/Android.mk +1 -0
- package/ReactCommon/react/renderer/components/unimplementedview/Android.mk +1 -0
- package/ReactCommon/react/renderer/components/view/Android.mk +1 -0
- package/ReactCommon/react/renderer/core/Android.mk +1 -0
- package/ReactCommon/react/renderer/debug/Android.mk +1 -0
- package/ReactCommon/react/renderer/graphics/Android.mk +1 -0
- package/ReactCommon/react/renderer/imagemanager/Android.mk +1 -0
- package/ReactCommon/react/renderer/leakchecker/Android.mk +1 -0
- package/ReactCommon/react/renderer/mapbuffer/Android.mk +1 -0
- package/ReactCommon/react/renderer/mounting/Android.mk +1 -0
- package/ReactCommon/react/renderer/runtimescheduler/Android.mk +1 -0
- package/ReactCommon/react/renderer/scheduler/Android.mk +1 -0
- package/ReactCommon/react/renderer/telemetry/Android.mk +1 -0
- package/ReactCommon/react/renderer/templateprocessor/Android.mk +1 -0
- package/ReactCommon/react/renderer/textlayoutmanager/Android.mk +1 -0
- package/ReactCommon/react/renderer/uimanager/Android.mk +1 -0
- package/ReactCommon/react/utils/Android.mk +1 -0
- package/ReactCommon/reactperflogger/Android.mk +1 -0
- package/ReactCommon/yoga/Android.mk +1 -0
- package/android/com/facebook/react/react-native/{0.68.1-1/react-native-0.68.1-1-sources.jar → 0.68.2-2/react-native-0.68.2-2-sources.jar} +0 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2-sources.jar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2-sources.jar.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2-sources.jar.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2-sources.jar.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.68.1-1/react-native-0.68.1-1.aar → 0.68.2-2/react-native-0.68.2-2.aar} +0 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2.aar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2.aar.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2.aar.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2.aar.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.68.1-1/react-native-0.68.1-1.module → 0.68.2-2/react-native-0.68.2-2.module} +15 -15
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2.module.md5 +1 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2.module.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2.module.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2.module.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.68.1-1/react-native-0.68.1-1.pom → 0.68.2-2/react-native-0.68.2-2.pom} +1 -1
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2.pom.md5 +1 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2.pom.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2.pom.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.68.2-2/react-native-0.68.2-2.pom.sha512 +1 -0
- package/android/com/facebook/react/react-native/maven-metadata.xml +4 -4
- package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -1
- package/index.js +11 -11
- package/package.json +2 -2
- package/template/android/app/build.gradle +1 -3
- package/template/android/build.gradle +0 -4
- package/template/package.json +1 -1
- package/tvos-types.d.ts +4 -0
- package/Libraries/Components/AppleTV/TVFocusGuideView.js +0 -79
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1-sources.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1-sources.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1-sources.jar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1-sources.jar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1.aar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1.aar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1.module.md5 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1.module.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1.module.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1.module.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1.pom.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1.pom.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.68.1-1/react-native-0.68.1-1.pom.sha512 +0 -1
package/React/Views/RCTTVView.m
CHANGED
|
@@ -127,6 +127,18 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
|
|
|
127
127
|
return (self.isTVSelectable);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
- (RCTRootView *)rootView
|
|
131
|
+
{
|
|
132
|
+
UIView *rootview = self;
|
|
133
|
+
while (![rootview isReactRootView] && rootview != nil) {
|
|
134
|
+
rootview = [rootview superview];
|
|
135
|
+
}
|
|
136
|
+
if (rootview == nil) return nil;
|
|
137
|
+
|
|
138
|
+
rootview = [rootview superview];
|
|
139
|
+
return (RCTRootView *)rootview;
|
|
140
|
+
}
|
|
141
|
+
|
|
130
142
|
- (void)addParallaxMotionEffects
|
|
131
143
|
{
|
|
132
144
|
if(![self.tvParallaxProperties[@"enabled"] boolValue]) {
|
|
@@ -237,11 +249,13 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
|
|
|
237
249
|
}
|
|
238
250
|
if (context.nextFocusedView == self && self.isTVSelectable ) {
|
|
239
251
|
[self becomeFirstResponder];
|
|
252
|
+
[self enableDirectionalFocusGuides];
|
|
240
253
|
[coordinator addCoordinatedAnimations:^(void){
|
|
241
254
|
[self addParallaxMotionEffects];
|
|
242
255
|
[self sendFocusNotification:context];
|
|
243
256
|
} completion:^(void){}];
|
|
244
257
|
} else {
|
|
258
|
+
[self disableDirectionalFocusGuides];
|
|
245
259
|
[coordinator addCoordinatedAnimations:^(void){
|
|
246
260
|
[self sendBlurNotification:context];
|
|
247
261
|
[self removeParallaxMotionEffects];
|
|
@@ -250,41 +264,93 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
|
|
|
250
264
|
}
|
|
251
265
|
}
|
|
252
266
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
267
|
+
// In tvOS, to support directional focus APIs, we add a UIFocusGuide for each
|
|
268
|
+
// side of the view where a nextFocus has been set. Set layout constraints to
|
|
269
|
+
// make the guide 1 px thick, and set the destination to the nextFocus object.
|
|
270
|
+
//
|
|
271
|
+
// This is only done once the view is focused.
|
|
272
|
+
//
|
|
273
|
+
- (void)enableDirectionalFocusGuides
|
|
274
|
+
{
|
|
275
|
+
if (self->_nextFocusUp != nil) {
|
|
276
|
+
if (self.focusGuideUp == nil) {
|
|
277
|
+
self.focusGuideUp = [UIFocusGuide new];
|
|
278
|
+
[[self rootView] addLayoutGuide:self.focusGuideUp];
|
|
279
|
+
|
|
280
|
+
[self.focusGuideUp.bottomAnchor constraintEqualToAnchor:self.topAnchor].active = YES;
|
|
281
|
+
[self.focusGuideUp.widthAnchor constraintEqualToAnchor:self.widthAnchor].active = YES;
|
|
282
|
+
[self.focusGuideUp.heightAnchor constraintEqualToConstant:1.0].active = YES;
|
|
283
|
+
[self.focusGuideUp.leftAnchor constraintEqualToAnchor:self.leftAnchor].active = YES;
|
|
259
284
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
285
|
+
|
|
286
|
+
self.focusGuideUp.preferredFocusEnvironments = @[self->_nextFocusUp];
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
if (self->_nextFocusDown != nil) {
|
|
290
|
+
if (self.focusGuideDown == nil) {
|
|
291
|
+
self.focusGuideDown = [UIFocusGuide new];
|
|
292
|
+
[[self rootView] addLayoutGuide:self.focusGuideDown];
|
|
293
|
+
|
|
294
|
+
[self.focusGuideDown.topAnchor constraintEqualToAnchor:self.bottomAnchor].active = YES;
|
|
295
|
+
[self.focusGuideDown.widthAnchor constraintEqualToAnchor:self.widthAnchor].active = YES;
|
|
296
|
+
[self.focusGuideDown.heightAnchor constraintEqualToConstant:1.0].active = YES;
|
|
297
|
+
[self.focusGuideDown.leftAnchor constraintEqualToAnchor:self.leftAnchor].active = YES;
|
|
264
298
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
299
|
+
|
|
300
|
+
self.focusGuideDown.preferredFocusEnvironments = @[self->_nextFocusDown];
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
if (self->_nextFocusLeft != nil) {
|
|
304
|
+
if (self.focusGuideLeft == nil) {
|
|
305
|
+
self.focusGuideLeft = [UIFocusGuide new];
|
|
306
|
+
[[self rootView] addLayoutGuide:self.focusGuideLeft];
|
|
307
|
+
|
|
308
|
+
[self.focusGuideLeft.topAnchor constraintEqualToAnchor:self.topAnchor].active = YES;
|
|
309
|
+
[self.focusGuideLeft.widthAnchor constraintEqualToConstant:1.0].active = YES;
|
|
310
|
+
[self.focusGuideLeft.heightAnchor constraintEqualToAnchor:self.heightAnchor].active = YES;
|
|
311
|
+
[self.focusGuideLeft.rightAnchor constraintEqualToAnchor:self.leftAnchor].active = YES;
|
|
269
312
|
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
313
|
+
|
|
314
|
+
self.focusGuideLeft.preferredFocusEnvironments = @[self->_nextFocusLeft];
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
if (self->_nextFocusRight != nil) {
|
|
318
|
+
if (self.focusGuideRight == nil) {
|
|
319
|
+
self.focusGuideRight = [UIFocusGuide new];
|
|
320
|
+
[[self rootView] addLayoutGuide:self.focusGuideRight];
|
|
321
|
+
|
|
322
|
+
[self.focusGuideRight.topAnchor constraintEqualToAnchor:self.topAnchor].active = YES;
|
|
323
|
+
[self.focusGuideRight.widthAnchor constraintEqualToConstant:1.0].active = YES;
|
|
324
|
+
[self.focusGuideRight.heightAnchor constraintEqualToAnchor:self.heightAnchor].active = YES;
|
|
325
|
+
[self.focusGuideRight.leftAnchor constraintEqualToAnchor:self.rightAnchor].active = YES;
|
|
274
326
|
}
|
|
275
|
-
|
|
276
|
-
|
|
327
|
+
|
|
328
|
+
self.focusGuideRight.preferredFocusEnvironments = @[self->_nextFocusRight];
|
|
277
329
|
}
|
|
278
|
-
self->_nextFocusActiveTarget = nil;
|
|
279
|
-
return true;
|
|
280
330
|
}
|
|
281
331
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
332
|
+
// Called when focus leaves this view -- disable the directional focus guides
|
|
333
|
+
// (if they exist) so that they don't interfere with focus navigation from
|
|
334
|
+
// other views
|
|
335
|
+
//
|
|
336
|
+
- (void)disableDirectionalFocusGuides
|
|
337
|
+
{
|
|
338
|
+
if (self.focusGuideUp != nil) {
|
|
339
|
+
[[self rootView] removeLayoutGuide:self.focusGuideUp];
|
|
340
|
+
self.focusGuideUp = nil;
|
|
341
|
+
}
|
|
342
|
+
if (self.focusGuideDown != nil) {
|
|
343
|
+
[[self rootView] removeLayoutGuide:self.focusGuideDown];
|
|
344
|
+
self.focusGuideDown = nil;
|
|
345
|
+
}
|
|
346
|
+
if (self.focusGuideLeft != nil) {
|
|
347
|
+
[[self rootView] removeLayoutGuide:self.focusGuideLeft];
|
|
348
|
+
self.focusGuideLeft = nil;
|
|
349
|
+
}
|
|
350
|
+
if (self.focusGuideRight != nil) {
|
|
351
|
+
[[self rootView] removeLayoutGuide:self.focusGuideRight];
|
|
352
|
+
self.focusGuideRight = nil;
|
|
353
|
+
}
|
|
288
354
|
}
|
|
289
355
|
|
|
290
356
|
- (void)sendFocusNotification:(__unused UIFocusUpdateContext *)context
|
|
@@ -339,15 +405,11 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
|
|
|
339
405
|
_hasTVPreferredFocus = hasTVPreferredFocus;
|
|
340
406
|
if (hasTVPreferredFocus) {
|
|
341
407
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
342
|
-
|
|
343
|
-
while (![rootview isReactRootView] && rootview != nil) {
|
|
344
|
-
rootview = [rootview superview];
|
|
345
|
-
}
|
|
346
|
-
if (rootview == nil) return;
|
|
408
|
+
RCTRootView *rootview = [self rootView];
|
|
347
409
|
|
|
348
|
-
rootview
|
|
410
|
+
if (rootview == nil) return;
|
|
349
411
|
|
|
350
|
-
[
|
|
412
|
+
[rootview setReactPreferredFocusedView:self];
|
|
351
413
|
[rootview setNeedsFocusUpdate];
|
|
352
414
|
[rootview updateFocusIfNeeded];
|
|
353
415
|
});
|
|
@@ -356,23 +418,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : unused)
|
|
|
356
418
|
|
|
357
419
|
- (void)setHasTVPreferredFocus:(BOOL)hasTVPreferredFocus
|
|
358
420
|
{
|
|
359
|
-
|
|
360
|
-
if (hasTVPreferredFocus) {
|
|
361
|
-
dispatch_async(dispatch_get_main_queue(), ^{
|
|
362
|
-
UIView *rootview = self;
|
|
363
|
-
while (![rootview isReactRootView] && rootview != nil) {
|
|
364
|
-
rootview = [rootview superview];
|
|
365
|
-
}
|
|
366
|
-
if (rootview == nil)
|
|
367
|
-
return;
|
|
368
|
-
|
|
369
|
-
rootview = [rootview superview];
|
|
370
|
-
|
|
371
|
-
[(RCTRootView *)rootview setReactPreferredFocusedView:self];
|
|
372
|
-
[rootview setNeedsFocusUpdate];
|
|
373
|
-
[rootview updateFocusIfNeeded];
|
|
374
|
-
});
|
|
375
|
-
}
|
|
421
|
+
[self setPreferredFocus:hasTVPreferredFocus];
|
|
376
422
|
}
|
|
377
423
|
|
|
378
424
|
- (void)addFocusGuide:(NSArray*)destinations {
|
|
@@ -333,18 +333,9 @@ android {
|
|
|
333
333
|
arguments "--output-sync=none"
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
//
|
|
337
|
-
// Ref: https://android.googlesource.com/platform/ndk/+/master/docs/BuildSystemMaintainers.md#Path-Length-Limits
|
|
338
|
-
// NDK allows circumventing command line limits using response(RSP) files as inputs using NDK_APP_SHORT_COMMANDS flag.
|
|
339
|
-
//
|
|
340
|
-
// Windows can support long file paths if configured through registry or by prefixing all file paths with a special character sequence
|
|
341
|
-
// The latter requires changes in NDK. And there are tools in NDK (AR) which is not able to handle long paths (>256) even after setting the registry key.
|
|
342
|
-
// The new architecutre source tree is too deep, and the object file naming conventions in NDK makes the matters worse, by producing incredibly long file paths.
|
|
343
|
-
// Other solutions such as symlinking source code etc. didn't work as expected, and makes the build scripts complicated and hard to manage.
|
|
344
|
-
// This change temporarily works around the issue by placing the temporary build outputs as short a path as possible within the project path.
|
|
336
|
+
// Fix for windows limit on number of character in file paths and in command lines
|
|
345
337
|
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
|
|
346
|
-
arguments "
|
|
347
|
-
"NDK_APP_SHORT_COMMANDS=true"
|
|
338
|
+
arguments "NDK_APP_SHORT_COMMANDS=true"
|
|
348
339
|
}
|
|
349
340
|
}
|
|
350
341
|
}
|
|
@@ -13,6 +13,7 @@ include $(CLEAR_VARS)
|
|
|
13
13
|
LOCAL_MODULE := jsijniprofiler
|
|
14
14
|
|
|
15
15
|
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
|
|
16
|
+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
|
|
16
17
|
|
|
17
18
|
LOCAL_C_INCLUDES := $(LOCAL_PATH) $(REACT_NATIVE)/ReactCommon/jsi $(call find-node-module,$(LOCAL_PATH),hermes-engine)/android/include
|
|
18
19
|
|
|
@@ -12,6 +12,7 @@ include $(CLEAR_VARS)
|
|
|
12
12
|
LOCAL_MODULE := hermes-executor-release
|
|
13
13
|
|
|
14
14
|
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
|
|
15
|
+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
|
|
15
16
|
|
|
16
17
|
LOCAL_C_INCLUDES := $(LOCAL_PATH) $(REACT_NATIVE)/ReactCommon/jsi $(call find-node-module,$(LOCAL_PATH),hermes-engine)/android/include
|
|
17
18
|
|
|
@@ -35,6 +36,7 @@ LOCAL_MODULE := hermes-executor-debug
|
|
|
35
36
|
LOCAL_CFLAGS := -DHERMES_ENABLE_DEBUGGER=1
|
|
36
37
|
|
|
37
38
|
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
|
|
39
|
+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
|
|
38
40
|
|
|
39
41
|
LOCAL_C_INCLUDES := $(LOCAL_PATH) $(REACT_NATIVE)/ReactCommon/jsi $(call find-node-module,$(LOCAL_PATH),hermes-engine)/android/include
|
|
40
42
|
|
|
@@ -26,6 +26,7 @@ LOCAL_MODULE := reactperfloggerjni
|
|
|
26
26
|
|
|
27
27
|
# Compile all local c++ files
|
|
28
28
|
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/reactperflogger/*.cpp)
|
|
29
|
+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
|
|
29
30
|
|
|
30
31
|
# Build the files in this directory as a shared library
|
|
31
32
|
include $(BUILD_SHARED_LIBRARY)
|
|
@@ -28,6 +28,7 @@ LOCAL_MODULE := callinvokerholder
|
|
|
28
28
|
|
|
29
29
|
# Compile all local c++ files
|
|
30
30
|
LOCAL_SRC_FILES := $(LOCAL_PATH)/ReactCommon/CallInvokerHolder.cpp
|
|
31
|
+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
|
|
31
32
|
|
|
32
33
|
# Build the files in this directory as a shared library
|
|
33
34
|
include $(BUILD_STATIC_LIBRARY)
|
|
@@ -56,6 +57,7 @@ LOCAL_STATIC_LIBRARIES = libcallinvokerholder libreactperfloggerjni
|
|
|
56
57
|
|
|
57
58
|
# Compile all local c++ files
|
|
58
59
|
LOCAL_SRC_FILES := $(LOCAL_PATH)/ReactCommon/TurboModuleManager.cpp $(LOCAL_PATH)/ReactCommon/OnLoad.cpp
|
|
60
|
+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
|
|
59
61
|
|
|
60
62
|
# Build the files in this directory as a shared library
|
|
61
63
|
include $(BUILD_SHARED_LIBRARY)
|