Repository navigation
Commit 57b6fa1
SwiftPM scaffold: define RCT_NEW_ARCH_ENABLED for install_modules_dependencies podspecs (#59632)
* SwiftPM scaffold: define RCT_NEW_ARCH_ENABLED for install_modules_dependencies podspecs
CocoaPods' install_modules_dependencies(s) adds -DRCT_NEW_ARCH_ENABLED=1 to
a library pod. The SwiftPM scaffolder strips that helper before it reads the
podspec, so scaffolded libraries compiled their old-architecture code. Emit
.define("RCT_NEW_ARCH_ENABLED", to: "1") in cSettings and cxxSettings when
the podspec calls the helper, and bump SCAFFOLDER_VERSION to 22.
* Annotate preprocessorDefines for Flow
(cherry picked from commit 35c929e)1 parent bccb1df commit 57b6fa1
2 files changed
Lines changed: 69 additions & 3 deletions
File tree
- packages/react-native/scripts/spm
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1552 | 1552 | | |
1553 | 1553 | | |
1554 | 1554 | | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
1555 | 1606 | | |
1556 | 1607 | | |
1557 | 1608 | | |
| |||
1569 | 1620 | | |
1570 | 1621 | | |
1571 | 1622 | | |
1572 | | - | |
| 1623 | + | |
1573 | 1624 | | |
1574 | 1625 | | |
1575 | 1626 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
115 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| |||
528 | 531 | | |
529 | 532 | | |
530 | 533 | | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
531 | 546 | | |
532 | 547 | | |
533 | 548 | | |
534 | 549 | | |
535 | | - | |
| 550 | + | |
536 | 551 | | |
537 | 552 | | |
538 | 553 | | |
| |||
0 commit comments