From ffa159e147bda74fbfb25f3c9902da3991957a15 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Thu, 7 Nov 2024 04:50:55 -0800 Subject: [PATCH] Set ASSUME_NONULL in codegen files (#47481) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47481 The Codegenerated files has this option turned off. This is causing Xcode to output hundreds of warnings due to missing nullability options. RThis fixes them. ## CHANGELOG [Internal] - Set ASSUME_NONNULL regions in codegen'd files Reviewed By: dmytrorykun Differential Revision: D65596598 fbshipit-source-id: bbf664944e103c05ef593a7e07bf5b767445950c --- .../react-native/scripts/codegen/generate-specs-cli-executor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native/scripts/codegen/generate-specs-cli-executor.js b/packages/react-native/scripts/codegen/generate-specs-cli-executor.js index daae945a196..ece43d63b21 100644 --- a/packages/react-native/scripts/codegen/generate-specs-cli-executor.js +++ b/packages/react-native/scripts/codegen/generate-specs-cli-executor.js @@ -80,6 +80,7 @@ function generateSpecFromInMemorySchema( schema, outputDirectory, packageName, + assumeNonnull: platform === 'ios', useLocalIncludePaths, }, {