Skip to content

Commit b1fdfaf

Browse files
committed
codereview: refactor header file generator even more
Now it reads from podspec files, except for some special cases that we have in the config file. Updated RCTSwiftUIWrapper.podspec to use podspec_sources (which we use to detect source) I tested this against the header files I got with the previous iteration, and also with the ones installed by Cocoapods.
1 parent 9961057 commit b1fdfaf

3 files changed

Lines changed: 256 additions & 582 deletions

File tree

packages/react-native/ReactApple/RCTSwiftUIWrapper/RCTSwiftUIWrapper.podspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ Pod::Spec.new do |s|
2525
s.author = "Meta Platforms, Inc. and its affiliates"
2626
s.platforms = min_supported_versions
2727
s.source = source
28-
s.source_files = "*.{h,m}"
28+
s.source_files = podspec_sources("*.{h,m}", "*.{h}")
2929
s.public_header_files = "*.h"
3030
s.module_name = "RCTSwiftUIWrapper"
3131
s.header_dir = "RCTSwiftUIWrapper"
3232
s.dependency "RCTSwiftUI"
33-
3433
s.pod_target_xcconfig = {
3534
"SWIFT_VERSION" => "5.0",
3635
}

0 commit comments

Comments
 (0)