Skip to content

Commit 994ca1b

Browse files
committed
fix: exclude generated files for old architecture
1 parent d10a49a commit 994ca1b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-skaleton-kit",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"description": "✨ Elegant Loading Skeleton for React Native - Built with Reanimated V3 Magic! ✨",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",

react-native-skaleton-kit.podspec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ Pod::Spec.new do |s|
1414
s.platforms = { :ios => min_ios_version_supported }
1515
s.source = { :git => "https://github.com/varunkukade/react-native-skaleton-kit.git", :tag => "#{s.version}" }
1616

17-
s.source_files = "ios/**/*.{h,m,mm,cpp}"
17+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
18+
s.source_files = 'ios/**/*.{h,m,mm,cpp}'
19+
else
20+
s.source_files = 'ios/**/*.{h,m,mm,cpp}'
21+
# Exclude generated files for old architecture
22+
s.exclude_files = 'ios/generated/**/*'
23+
end
1824

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

0 commit comments

Comments
 (0)