mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Build RN-Tester with RN_STRICT_API (#59223)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/59223 Turn on the C++ stable API checks (`RN_STRICT_API`) in RN-Tester by default, so the opt-ins and React Native's app-facing headers are exercised in strict mode on every build: - Android: `strictCxxApiEnabled=true` in `android/app/gradle.properties`. - iOS (CocoaPods): the Podfile sets `RN_STRICT_API=1` unless the environment already sets it, so `pod install` applies it the same way an app would. Changelog: [Internal] ___ landed-with-radar-review Differential Revision: D126330702 fbshipit-source-id: 561bcc9ddb4dc5ce75347620748fbdc26ddc7304
This commit is contained in:
1 parent
0f17f27010
commit
0bab0523ac
2 files changed
+5
No files matched your search
@@ -21,6 +21,9 @@ end
|
||||
|
||||
prepare_react_native_project!
|
||||
|
||||
# RN-Tester builds with the C++ stable API enforced. Run `RN_STRICT_API=0 pod install` to opt out.
|
||||
ENV['RN_STRICT_API'] ||= '1'
|
||||
|
||||
@prefix_path = "../react-native"
|
||||
|
||||
linkage = ENV['USE_FRAMEWORKS']
|
||||
|
||||
@@ -9,3 +9,5 @@ newArchEnabled=true
|
||||
hermesEnabled=true
|
||||
# RN-Tester is running with EdgeToEdge always enabled
|
||||
edgeToEdgeEnabled=true
|
||||
# RN-Tester is building with the C++ stable API enforced
|
||||
strictCxxApiEnabled=true
|
||||
Reference in new issue
Block a user