Skip to content

Commit

Permalink
fix: exclude generated files for old architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
vkukade-altir committed Jan 4, 2025
1 parent d10a49a commit 994ca1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-skaleton-kit",
"version": "0.1.7",
"version": "0.1.8",
"description": "✨ Elegant Loading Skeleton for React Native - Built with Reanimated V3 Magic! ✨",
"source": "./src/index.tsx",
"main": "./lib/commonjs/index.js",
Expand Down
8 changes: 7 additions & 1 deletion react-native-skaleton-kit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ Pod::Spec.new do |s|
s.platforms = { :ios => min_ios_version_supported }
s.source = { :git => "https://github.com/varunkukade/react-native-skaleton-kit.git", :tag => "#{s.version}" }

s.source_files = "ios/**/*.{h,m,mm,cpp}"
if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
s.source_files = 'ios/**/*.{h,m,mm,cpp}'
else
s.source_files = 'ios/**/*.{h,m,mm,cpp}'
# Exclude generated files for old architecture
s.exclude_files = 'ios/generated/**/*'
end

# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
Expand Down

0 comments on commit 994ca1b

Please sign in to comment.