react-native-macos 0.0.0-b9fb2dd1a → 0.0.0-bb8a035db
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/ScrollView/ScrollView.js +11 -45
- package/Libraries/Components/TextInput/TextInput.js +72 -1
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +1 -0
- package/Libraries/Components/View/ReactNativeViewViewConfig.js +1 -0
- package/Libraries/Components/View/ReactNativeViewViewConfigMacOS.js +3 -3
- package/Libraries/Components/View/ViewPropTypes.js +10 -6
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/LinkingIOS/RCTLinkingManager.h +1 -0
- package/Libraries/LinkingIOS/macos/RCTLinkingManager.mm +12 -5
- package/Libraries/Lists/FlatList.js +25 -1
- package/Libraries/Lists/VirtualizedList.js +106 -113
- package/Libraries/Lists/VirtualizedSectionList.js +9 -5
- package/Libraries/StyleSheet/StyleSheetTypes.js +25 -0
- package/Libraries/Text/RCTTextAttributes.m +5 -5
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +3 -0
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m +6 -1
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.m +11 -0
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.h +1 -0
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +69 -2
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +7 -1
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +12 -3
- package/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h +1 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.h +4 -1
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +97 -2
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.m +6 -0
- package/Libraries/Text/TextInput/Singleline/RCTUITextField.m +40 -0
- package/Libraries/Types/CoreEventTypes.js +0 -1
- package/React/Base/RCTConvert.m +9 -5
- package/React/Base/RCTTouchHandler.m +4 -0
- package/React/Base/RCTUtils.m +6 -3
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/macOS/RCTUIKit.m +7 -0
- package/React/CoreModules/RCTPerfMonitor.mm +1 -1
- package/React/Modules/RCTUIManager.m +2 -1
- package/React/Views/RCTActivityIndicatorView.m +2 -1
- package/React/Views/RCTCursor.h +39 -0
- package/React/Views/RCTCursor.m +105 -0
- package/React/Views/RCTView.h +12 -0
- package/React/Views/RCTView.m +110 -42
- package/React/Views/RCTViewKeyboardEvent.m +9 -1
- package/React/Views/RCTViewManager.m +17 -12
- package/React/Views/ScrollView/RCTScrollContentView.h +4 -0
- package/React/Views/ScrollView/RCTScrollContentView.m +18 -0
- package/React/Views/ScrollView/RCTScrollContentViewManager.m +2 -0
- package/React/Views/ScrollView/RCTScrollView.h +2 -1
- package/React/Views/ScrollView/RCTScrollView.m +69 -62
- package/React/Views/ScrollView/RCTScrollViewManager.m +1 -1
- package/React/Views/UIView+React.h +2 -0
- package/React/Views/UIView+React.m +22 -13
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
- package/scripts/generate-artifacts.js +21 -17
- package/scripts/react_native_pods.rb +0 -3
- package/template/Gemfile.lock +5 -5
- package/template/package.json +1 -1
- package/third-party-podspecs/boost-for-react-native.podspec +0 -20
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
#import "RCTScrollView.h"
|
|
19
19
|
|
|
20
20
|
@implementation RCTScrollContentView
|
|
21
|
+
#if TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
22
|
+
- (BOOL)isFlipped
|
|
23
|
+
{
|
|
24
|
+
return !self.inverted;
|
|
25
|
+
}
|
|
26
|
+
#endif // ]TODO(macOS GH#774)
|
|
21
27
|
|
|
22
28
|
- (void)reactSetFrame:(CGRect)frame
|
|
23
29
|
{
|
|
@@ -54,6 +60,18 @@
|
|
|
54
60
|
horizontalScrollerHeight:verticalScrollerWidth];
|
|
55
61
|
[[[scrollView bridge] uiManager] setLocalData:localData forView:self];
|
|
56
62
|
}
|
|
63
|
+
|
|
64
|
+
if ([platformScrollView accessibilityRole] == NSAccessibilityTableRole) {
|
|
65
|
+
NSMutableArray *subViews = [[NSMutableArray alloc] initWithCapacity:[[self subviews] count]];
|
|
66
|
+
for (NSView *view in [self subviews]) {
|
|
67
|
+
if ([view isKindOfClass:[RCTView class]]) {
|
|
68
|
+
[subViews addObject:view];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[platformScrollView setAccessibilityRows:subViews];
|
|
73
|
+
}
|
|
74
|
+
|
|
57
75
|
#endif // ]TODO(macOS GH#774)
|
|
58
76
|
}
|
|
59
77
|
|
|
@@ -65,9 +65,10 @@
|
|
|
65
65
|
@property (nonatomic, copy) RCTDirectEventBlock onScrollEndDrag;
|
|
66
66
|
@property (nonatomic, copy) RCTDirectEventBlock onMomentumScrollBegin;
|
|
67
67
|
@property (nonatomic, copy) RCTDirectEventBlock onMomentumScrollEnd;
|
|
68
|
-
@property (nonatomic, copy) RCTDirectEventBlock onScrollKeyDown; // TODO(macOS GH#774)
|
|
69
68
|
@property (nonatomic, copy) RCTDirectEventBlock onPreferredScrollerStyleDidChange; // TODO(macOS GH#774)
|
|
70
69
|
|
|
70
|
+
@property (nonatomic, copy) RCTDirectEventBlock onInvertedDidChange; // TODO(macOS GH#774)
|
|
71
|
+
|
|
71
72
|
- (void)flashScrollIndicators; // TODO(macOS GH#774)
|
|
72
73
|
|
|
73
74
|
@end
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
|
|
24
24
|
#if !TARGET_OS_OSX // TODO(macOS GH#774)
|
|
25
25
|
#import "RCTRefreshControl.h"
|
|
26
|
+
#else
|
|
27
|
+
#import "RCTViewKeyboardEvent.h"
|
|
26
28
|
#endif // TODO(macOS GH#774)
|
|
27
29
|
|
|
28
30
|
/**
|
|
@@ -43,6 +45,7 @@
|
|
|
43
45
|
@property (nonatomic, assign) BOOL pinchGestureEnabled;
|
|
44
46
|
#else // [TODO(macOS GH#774)
|
|
45
47
|
+ (BOOL)isCompatibleWithResponsiveScrolling;
|
|
48
|
+
@property (nonatomic, assign, getter=isInverted) BOOL inverted;
|
|
46
49
|
@property (nonatomic, assign, getter=isScrollEnabled) BOOL scrollEnabled;
|
|
47
50
|
@property (nonatomic, strong) NSPanGestureRecognizer *panGestureRecognizer;
|
|
48
51
|
#endif // ]TODO(macOS GH#774)
|
|
@@ -106,6 +109,11 @@
|
|
|
106
109
|
return YES;
|
|
107
110
|
}
|
|
108
111
|
|
|
112
|
+
- (BOOL)isFlipped
|
|
113
|
+
{
|
|
114
|
+
return !self.inverted;
|
|
115
|
+
}
|
|
116
|
+
|
|
109
117
|
- (void)scrollWheel:(NSEvent *)theEvent
|
|
110
118
|
{
|
|
111
119
|
if (!self.scrollEnabled) {
|
|
@@ -549,6 +557,20 @@ static inline UIViewAnimationOptions animationOptionsWithCurve(UIViewAnimationCu
|
|
|
549
557
|
{
|
|
550
558
|
[_scrollView setAccessibilityLabel:accessibilityLabel];
|
|
551
559
|
}
|
|
560
|
+
|
|
561
|
+
- (void)setAccessibilityRole:(NSAccessibilityRole)accessibilityRole
|
|
562
|
+
{
|
|
563
|
+
[_scrollView setAccessibilityRole:accessibilityRole];
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
- (void)setInverted:(BOOL)inverted
|
|
567
|
+
{
|
|
568
|
+
BOOL changed = _inverted != inverted;
|
|
569
|
+
_inverted = inverted;
|
|
570
|
+
if (changed && _onInvertedDidChange) {
|
|
571
|
+
_onInvertedDidChange(@{});
|
|
572
|
+
}
|
|
573
|
+
}
|
|
552
574
|
#endif // ]TODO(macOS GH#774)
|
|
553
575
|
|
|
554
576
|
RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
|
|
@@ -1256,74 +1278,58 @@ RCT_SCROLL_EVENT_HANDLER(scrollViewDidScrollToTop, onScrollToTop)
|
|
|
1256
1278
|
}];
|
|
1257
1279
|
}
|
|
1258
1280
|
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
- (NSString*)keyCommandFromKeyCode:(NSInteger)keyCode modifierFlags:(NSEventModifierFlags)modifierFlags
|
|
1262
|
-
{
|
|
1263
|
-
switch (keyCode)
|
|
1264
|
-
{
|
|
1265
|
-
case 36:
|
|
1266
|
-
return @"ENTER";
|
|
1267
|
-
|
|
1268
|
-
case 115:
|
|
1269
|
-
return @"HOME";
|
|
1270
|
-
|
|
1271
|
-
case 116:
|
|
1272
|
-
return @"PAGE_UP";
|
|
1273
|
-
|
|
1274
|
-
case 119:
|
|
1275
|
-
return @"END";
|
|
1276
|
-
|
|
1277
|
-
case 121:
|
|
1278
|
-
return @"PAGE_DOWN";
|
|
1279
|
-
|
|
1280
|
-
case 123:
|
|
1281
|
-
return @"LEFT_ARROW";
|
|
1282
|
-
|
|
1283
|
-
case 124:
|
|
1284
|
-
return @"RIGHT_ARROW";
|
|
1281
|
+
// [TODO(macOS GH#774)
|
|
1282
|
+
#pragma mark - Keyboard Events
|
|
1285
1283
|
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1284
|
+
#if TARGET_OS_OSX
|
|
1285
|
+
- (RCTViewKeyboardEvent*)keyboardEvent:(NSEvent*)event {
|
|
1286
|
+
BOOL keyDown = event.type == NSEventTypeKeyDown;
|
|
1287
|
+
NSArray<NSString *> *validKeys = keyDown ? self.validKeysDown : self.validKeysUp;
|
|
1288
|
+
NSString *key = [RCTViewKeyboardEvent keyFromEvent:event];
|
|
1289
|
+
|
|
1290
|
+
// Only post events for keys we care about
|
|
1291
|
+
if (![validKeys containsObject:key]) {
|
|
1292
|
+
return nil;
|
|
1293
|
+
}
|
|
1292
1294
|
|
|
1293
|
-
|
|
1294
|
-
if (modifierFlags & NSEventModifierFlagOption) {
|
|
1295
|
-
return @"OPTION_UP";
|
|
1296
|
-
} else {
|
|
1297
|
-
return @"UP_ARROW";
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
return @"";
|
|
1295
|
+
return [RCTViewKeyboardEvent keyEventFromEvent:event reactTag:self.reactTag];
|
|
1301
1296
|
}
|
|
1302
1297
|
|
|
1303
|
-
- (
|
|
1304
|
-
{
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
RCT_SEND_SCROLL_EVENT(onScrollKeyDown, (@{ @"key": keyCommand}));
|
|
1310
|
-
} else {
|
|
1311
|
-
[super keyDown:theEvent];
|
|
1298
|
+
- (BOOL)handleKeyboardEvent:(NSEvent *)event {
|
|
1299
|
+
if (event.type == NSEventTypeKeyDown ? self.onKeyDown : self.onKeyUp) {
|
|
1300
|
+
RCTViewKeyboardEvent *keyboardEvent = [self keyboardEvent:event];
|
|
1301
|
+
if (keyboardEvent) {
|
|
1302
|
+
[_eventDispatcher sendEvent:keyboardEvent];
|
|
1303
|
+
return YES;
|
|
1312
1304
|
}
|
|
1313
1305
|
}
|
|
1306
|
+
return NO;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
- (void)keyDown:(NSEvent *)event {
|
|
1310
|
+
if (![self handleKeyboardEvent:event]) {
|
|
1311
|
+
[super keyDown:event];
|
|
1312
|
+
|
|
1313
|
+
// AX: if a tab key was pressed and the first responder is currently clipped by the scroll view,
|
|
1314
|
+
// automatically scroll to make the view visible to make it navigable via keyboard.
|
|
1315
|
+
NSString *key = [RCTViewKeyboardEvent keyFromEvent:event];
|
|
1316
|
+
if ([key isEqualToString:@"Tab"]) {
|
|
1317
|
+
id firstResponder = [[self window] firstResponder];
|
|
1318
|
+
if ([firstResponder isKindOfClass:[NSView class]] &&
|
|
1319
|
+
[firstResponder isDescendantOf:[_scrollView documentView]]) {
|
|
1320
|
+
NSView *view = (NSView*)firstResponder;
|
|
1321
|
+
NSRect visibleRect = ([view superview] == [_scrollView documentView]) ? NSInsetRect(view.frame, -1, -1) :
|
|
1322
|
+
[view convertRect:view.frame toView:_scrollView.documentView];
|
|
1323
|
+
[[_scrollView documentView] scrollRectToVisible:visibleRect];
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1314
1328
|
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
if ([firstResponder isKindOfClass:[NSView class]] &&
|
|
1320
|
-
[firstResponder isDescendantOf:[_scrollView documentView]]) {
|
|
1321
|
-
NSView *view = (NSView*)firstResponder;
|
|
1322
|
-
NSRect visibleRect = ([view superview] == [_scrollView documentView]) ? NSInsetRect(view.frame, -1, -1) :
|
|
1323
|
-
[view convertRect:view.frame toView:_scrollView.documentView];
|
|
1324
|
-
[[_scrollView documentView] scrollRectToVisible:visibleRect];
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1329
|
+
- (void)keyUp:(NSEvent *)event {
|
|
1330
|
+
if (![self handleKeyboardEvent:event]) {
|
|
1331
|
+
[super keyUp:event];
|
|
1332
|
+
}
|
|
1327
1333
|
}
|
|
1328
1334
|
|
|
1329
1335
|
static NSString *RCTStringForScrollerStyle(NSScrollerStyle scrollerStyle) {
|
|
@@ -1338,7 +1344,8 @@ static NSString *RCTStringForScrollerStyle(NSScrollerStyle scrollerStyle) {
|
|
|
1338
1344
|
- (void)preferredScrollerStyleDidChange:(__unused NSNotification *)notification {
|
|
1339
1345
|
RCT_SEND_SCROLL_EVENT(onPreferredScrollerStyleDidChange, (@{ @"preferredScrollerStyle": RCTStringForScrollerStyle([NSScroller preferredScrollerStyle])}));
|
|
1340
1346
|
}
|
|
1341
|
-
#endif
|
|
1347
|
+
#endif
|
|
1348
|
+
// ]TODO(macOS GH#774)
|
|
1342
1349
|
|
|
1343
1350
|
// Note: setting several properties of UIScrollView has the effect of
|
|
1344
1351
|
// resetting its contentOffset to {0, 0}. To prevent this, we generate
|
|
@@ -99,7 +99,7 @@ RCT_EXPORT_VIEW_PROPERTY(onScrollToTop, RCTDirectEventBlock)
|
|
|
99
99
|
RCT_EXPORT_VIEW_PROPERTY(onScrollEndDrag, RCTDirectEventBlock)
|
|
100
100
|
RCT_EXPORT_VIEW_PROPERTY(onMomentumScrollBegin, RCTDirectEventBlock)
|
|
101
101
|
RCT_EXPORT_VIEW_PROPERTY(onMomentumScrollEnd, RCTDirectEventBlock)
|
|
102
|
-
RCT_EXPORT_OSX_VIEW_PROPERTY(
|
|
102
|
+
RCT_EXPORT_OSX_VIEW_PROPERTY(onInvertedDidChange, RCTDirectEventBlock) // TODO(macOS GH#774)
|
|
103
103
|
RCT_EXPORT_OSX_VIEW_PROPERTY(onPreferredScrollerStyleDidChange, RCTDirectEventBlock) // TODO(macOS GH#774)
|
|
104
104
|
RCT_EXPORT_VIEW_PROPERTY(inverted, BOOL)
|
|
105
105
|
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 /* __IPHONE_13_0 */
|
|
@@ -267,18 +267,17 @@
|
|
|
267
267
|
}
|
|
268
268
|
#endif // TODO(macOS GH#774)
|
|
269
269
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
*/
|
|
273
|
-
- (BOOL)reactIsFocusNeeded
|
|
270
|
+
// [TODO(macOS GH#1412)
|
|
271
|
+
- (void)reactViewDidMoveToWindow
|
|
274
272
|
{
|
|
275
|
-
|
|
273
|
+
[self reactFocusIfNeeded];
|
|
276
274
|
}
|
|
275
|
+
// TODO(macOS GH#1412)]
|
|
277
276
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
277
|
+
/**
|
|
278
|
+
* Focus manipulation.
|
|
279
|
+
*/
|
|
280
|
+
static __weak RCTPlatformView *_pendingFocusView; // TODO(macOS GH#1412)
|
|
282
281
|
|
|
283
282
|
- (void)reactFocus
|
|
284
283
|
{
|
|
@@ -287,19 +286,23 @@
|
|
|
287
286
|
#else
|
|
288
287
|
if (![self becomeFirstResponder]) {
|
|
289
288
|
#endif // TODO(macOS GH#774)]
|
|
290
|
-
|
|
291
|
-
|
|
289
|
+
// [TODO(macOS GH#1412)
|
|
290
|
+
_pendingFocusView = self;
|
|
291
|
+
} else {
|
|
292
|
+
_pendingFocusView = nil;
|
|
293
|
+
}
|
|
294
|
+
// TODO(macOS GH#1412)]
|
|
292
295
|
}
|
|
293
296
|
|
|
294
297
|
- (void)reactFocusIfNeeded
|
|
295
298
|
{
|
|
296
|
-
if (self
|
|
299
|
+
if ([self isEqual:_pendingFocusView]) { // TODO(macOS GH#1412)
|
|
297
300
|
#if TARGET_OS_OSX // [TODO(macOS GH#774)
|
|
298
301
|
if ([[self window] makeFirstResponder:self]) {
|
|
299
302
|
#else
|
|
300
303
|
if ([self becomeFirstResponder]) {
|
|
301
304
|
#endif // TODO(macOS GH#774)]
|
|
302
|
-
|
|
305
|
+
_pendingFocusView = nil; // TODO(macOS GH#1412)
|
|
303
306
|
}
|
|
304
307
|
}
|
|
305
308
|
}
|
|
@@ -313,6 +316,12 @@
|
|
|
313
316
|
#else
|
|
314
317
|
[self resignFirstResponder];
|
|
315
318
|
#endif // TODO(macOS GH#774)]
|
|
319
|
+
|
|
320
|
+
// [TODO(macOS GH#1412)
|
|
321
|
+
if ([self isEqual:_pendingFocusView]) {
|
|
322
|
+
_pendingFocusView = nil;
|
|
323
|
+
}
|
|
324
|
+
// TODO(macOS GH#1412)]
|
|
316
325
|
}
|
|
317
326
|
|
|
318
327
|
#pragma mark - Layout
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* in a CODEGEN_CONFIG_FILENAME file.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
const {
|
|
19
|
+
const {execFileSync} = require('child_process');
|
|
20
20
|
const fs = require('fs');
|
|
21
21
|
const os = require('os');
|
|
22
22
|
const path = require('path');
|
|
@@ -185,14 +185,16 @@ function main(appRootDir, outputPath) {
|
|
|
185
185
|
console.log(
|
|
186
186
|
'\n\n[Codegen] >>>>> Building react-native-codegen package',
|
|
187
187
|
);
|
|
188
|
-
|
|
188
|
+
// [TODO(macOS GH#774) - use execFileSync to help keep shell commands clean
|
|
189
|
+
execFileSync('yarn', ['install'], {
|
|
189
190
|
cwd: codegenCliPath,
|
|
190
191
|
stdio: 'inherit',
|
|
191
192
|
});
|
|
192
|
-
|
|
193
|
+
execFileSync('yarn', ['build'], {
|
|
193
194
|
cwd: codegenCliPath,
|
|
194
195
|
stdio: 'inherit',
|
|
195
196
|
});
|
|
197
|
+
// ]TODO(macOS GH#774)
|
|
196
198
|
}
|
|
197
199
|
} else if (fs.existsSync(CODEGEN_NPM_PATH)) {
|
|
198
200
|
codegenCliPath = CODEGEN_NPM_PATH;
|
|
@@ -235,8 +237,7 @@ function main(appRootDir, outputPath) {
|
|
|
235
237
|
console.log(`\n\n[Codegen] >>>>> Processing ${library.config.name}`);
|
|
236
238
|
// Generate one schema for the entire library...
|
|
237
239
|
// [TODO(macOS GH#774) - use execFileSync to help keep shell commands clean
|
|
238
|
-
execFileSync(
|
|
239
|
-
'node',
|
|
240
|
+
execFileSync('node', [
|
|
240
241
|
path.join(
|
|
241
242
|
codegenCliPath,
|
|
242
243
|
'lib',
|
|
@@ -246,17 +247,17 @@ function main(appRootDir, outputPath) {
|
|
|
246
247
|
),
|
|
247
248
|
pathToSchema,
|
|
248
249
|
pathToJavaScriptSources,
|
|
249
|
-
); // ]TODO(macOS GH#774)
|
|
250
|
+
]); // ]TODO(macOS GH#774)
|
|
250
251
|
console.log(`[Codegen] Generated schema: ${pathToSchema}`);
|
|
251
252
|
|
|
252
253
|
// ...then generate native code artifacts.
|
|
254
|
+
// [TODO(macOS GH#774) - use execFileSync to help keep shell commands clean
|
|
253
255
|
const libraryTypeArg = library.config.type
|
|
254
|
-
?
|
|
255
|
-
:
|
|
256
|
+
? ['--libraryType', library.config.type]
|
|
257
|
+
: null; // ]TODO(macOS GH#774)
|
|
256
258
|
fs.mkdirSync(pathToTempOutputDir, {recursive: true});
|
|
257
259
|
// [TODO(macOS GH#774) - use execFileSync to help keep shell commands clean
|
|
258
|
-
execFileSync(
|
|
259
|
-
'node',
|
|
260
|
+
execFileSync('node', [
|
|
260
261
|
path.join(RN_ROOT, 'scripts', 'generate-specs-cli.js'),
|
|
261
262
|
'--platform',
|
|
262
263
|
'ios',
|
|
@@ -266,13 +267,17 @@ function main(appRootDir, outputPath) {
|
|
|
266
267
|
pathToTempOutputDir,
|
|
267
268
|
'--libraryName',
|
|
268
269
|
library.config.name,
|
|
269
|
-
libraryTypeArg,
|
|
270
|
-
); // ]TODO(macOS GH#774)
|
|
270
|
+
...libraryTypeArg,
|
|
271
|
+
]); // ]TODO(macOS GH#774)
|
|
271
272
|
|
|
272
273
|
// Finally, copy artifacts to the final output directory.
|
|
273
274
|
fs.mkdirSync(pathToOutputDirIOS, {recursive: true});
|
|
274
275
|
// [TODO(macOS GH#774) - use execFileSync to help keep shell commands clean
|
|
275
|
-
execFileSync('cp',
|
|
276
|
+
execFileSync('cp', [
|
|
277
|
+
'-R',
|
|
278
|
+
path.join(pathToTempOutputDir, '/'),
|
|
279
|
+
pathToOutputDirIOS,
|
|
280
|
+
]); // ]TODO(macOS GH#774)
|
|
276
281
|
console.log(`[Codegen] Generated artifacts: ${pathToOutputDirIOS}`);
|
|
277
282
|
|
|
278
283
|
// Filter the react native core library out.
|
|
@@ -295,16 +300,15 @@ function main(appRootDir, outputPath) {
|
|
|
295
300
|
// Generate FabricComponentProvider.
|
|
296
301
|
// Only for iOS at this moment.
|
|
297
302
|
// [TODO(macOS GH#774) - use execFileSync to help keep shell commands clean
|
|
298
|
-
execFileSync(
|
|
299
|
-
'node',
|
|
303
|
+
execFileSync('node', [
|
|
300
304
|
path.join(RN_ROOT, 'scripts', 'generate-provider-cli.js'),
|
|
301
305
|
'--platform',
|
|
302
306
|
'ios',
|
|
303
|
-
'--
|
|
307
|
+
'--schemaListPath',
|
|
304
308
|
schemaListTmpPath,
|
|
305
309
|
'--outputDir',
|
|
306
310
|
iosOutputDir,
|
|
307
|
-
); // ]TODO(macOS GH#774)
|
|
311
|
+
]); // ]TODO(macOS GH#774)
|
|
308
312
|
console.log(`Generated provider in: ${iosOutputDir}`);
|
|
309
313
|
}
|
|
310
314
|
} catch (err) {
|
|
@@ -79,9 +79,6 @@ def use_react_native! (options={})
|
|
|
79
79
|
pod 'boost', :podspec => "#{prefix}/third-party-podspecs/boost.podspec"
|
|
80
80
|
pod 'RCT-Folly', :podspec => "#{prefix}/third-party-podspecs/RCT-Folly.podspec"
|
|
81
81
|
|
|
82
|
-
# TODO(macOS GH#214)
|
|
83
|
-
pod 'boost-for-react-native', :podspec => "#{prefix}/third-party-podspecs/boost-for-react-native.podspec"
|
|
84
|
-
|
|
85
82
|
if ENV['USE_CODEGEN_DISCOVERY'] == '1'
|
|
86
83
|
app_path = options[:app_path]
|
|
87
84
|
config_file_dir = options[:config_file_dir]
|
package/template/Gemfile.lock
CHANGED
|
@@ -3,14 +3,14 @@ GEM
|
|
|
3
3
|
specs:
|
|
4
4
|
CFPropertyList (3.0.5)
|
|
5
5
|
rexml
|
|
6
|
-
activesupport (6.1.
|
|
6
|
+
activesupport (6.1.7)
|
|
7
7
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
8
8
|
i18n (>= 1.6, < 2)
|
|
9
9
|
minitest (>= 5.1)
|
|
10
10
|
tzinfo (~> 2.0)
|
|
11
11
|
zeitwerk (~> 2.3)
|
|
12
|
-
addressable (2.8.
|
|
13
|
-
public_suffix (>= 2.0.2, <
|
|
12
|
+
addressable (2.8.1)
|
|
13
|
+
public_suffix (>= 2.0.2, < 6.0)
|
|
14
14
|
algoliasearch (1.27.5)
|
|
15
15
|
httpclient (~> 2.8, >= 2.8.3)
|
|
16
16
|
json (>= 1.5.1)
|
|
@@ -66,7 +66,7 @@ GEM
|
|
|
66
66
|
i18n (1.12.0)
|
|
67
67
|
concurrent-ruby (~> 1.0)
|
|
68
68
|
json (2.6.2)
|
|
69
|
-
minitest (5.16.
|
|
69
|
+
minitest (5.16.3)
|
|
70
70
|
molinillo (0.8.0)
|
|
71
71
|
nanaimo (0.3.0)
|
|
72
72
|
nap (1.1.0)
|
|
@@ -97,4 +97,4 @@ RUBY VERSION
|
|
|
97
97
|
ruby 3.0.4p208
|
|
98
98
|
|
|
99
99
|
BUNDLED WITH
|
|
100
|
-
2.3.
|
|
100
|
+
2.3.22
|
package/template/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# TODO(macOS GH#214)
|
|
2
|
-
Pod::Spec.new do |spec|
|
|
3
|
-
spec.name = 'boost-for-react-native'
|
|
4
|
-
spec.version = '1.63.0'
|
|
5
|
-
spec.license = { :type => 'Boost Software License', :file => "LICENSE_1_0.txt" }
|
|
6
|
-
spec.homepage = 'http://www.boost.org'
|
|
7
|
-
spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.'
|
|
8
|
-
spec.authors = 'Rene Rivera'
|
|
9
|
-
spec.source = { :git => 'https://github.com/react-native-community/boost-for-react-native.git',
|
|
10
|
-
:tag => 'v1.63.0-0' }
|
|
11
|
-
|
|
12
|
-
# Pinning to the same version as React.podspec.
|
|
13
|
-
# TODO: Move this osx addition back upstream to https://github.com/react-native-community/boost-for-react-native
|
|
14
|
-
spec.platforms = { :ios => '8.0', :osx => "10.15" }
|
|
15
|
-
spec.requires_arc = false
|
|
16
|
-
|
|
17
|
-
spec.module_name = 'boost'
|
|
18
|
-
spec.header_dir = 'boost'
|
|
19
|
-
spec.preserve_path = 'boost'
|
|
20
|
-
end
|