Skip to content

Commit ce22000

Browse files
authored
chore: cleaner podspec (#780)
* chore: cleaner podspec * chore: rn ci on podspec change
1 parent 89ac9c6 commit ce22000

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

.github/workflows/ios.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77
paths:
88
- '.github/workflows/ios.yml'
99
- 'packages/**/ios**'
10+
- 'packages/**/*.podspec'
1011
pull_request:
1112
paths:
1213
- '.github/workflows/ios.yml'
1314
- 'packages/**/ios**'
15+
- 'packages/**/*.podspec'
1416

1517
jobs:
1618
ios-build:

packages/document-picker/react-native-document-picker.podspec

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,5 @@ Pod::Spec.new do |s|
2121
'DEFINES_MODULE' => 'YES',
2222
}
2323

24-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
25-
install_modules_dependencies(s)
26-
else
27-
s.dependency "React-Core"
28-
end
24+
install_modules_dependencies(s)
2925
end

packages/document-viewer/react-native-document-viewer.podspec

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,5 @@ Pod::Spec.new do |s|
1616

1717
s.source_files = ["ios/**/*.{h,m,mm}"]
1818

19-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
20-
# RN 71+
21-
install_modules_dependencies(s)
22-
else
23-
s.dependency "React-Core"
24-
end
19+
install_modules_dependencies(s)
2520
end

0 commit comments

Comments
 (0)