Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 91468e7

Browse files
committed
Explicitly mark SSZipArchive headers as private
This allows the pod to be built as a framework (the SSZipArchive headers were previously being included in the umbrella header for the framework by cocoapods) Also, moved SSZipArchive into its own subspec for clarity
1 parent 37278b4 commit 91468e7

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

CodePush.podspec

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,34 @@ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
44

55
Pod::Spec.new do |s|
66

7-
s.name = 'CodePush'
8-
s.version = package['version'].sub('-beta', '')
9-
s.summary = 'React Native module for the CodePush service'
10-
s.author = 'Microsoft Corporation'
11-
s.license = 'MIT'
12-
s.homepage = 'http://microsoft.github.io/code-push/'
13-
s.source = { :git => 'https://github.com/Microsoft/react-native-code-push.git', :tag => "v#{s.version}-beta" }
14-
s.platform = :ios, '7.0'
15-
s.public_header_files = 'ios/CodePush/CodePush.h'
16-
s.preserve_paths = '*.js'
17-
s.library = 'z'
7+
s.name = 'CodePush'
8+
s.version = package['version'].sub('-beta', '')
9+
s.summary = 'React Native module for the CodePush service'
10+
s.author = 'Microsoft Corporation'
11+
s.license = 'MIT'
12+
s.homepage = 'http://microsoft.github.io/code-push/'
13+
s.source = { :git => 'https://github.com/Microsoft/react-native-code-push.git', :tag => "v#{s.version}-beta"}
14+
s.platform = :ios, '7.0'
15+
s.preserve_paths = '*.js'
16+
s.library = 'z'
17+
1818
s.dependency 'React'
19-
19+
2020
s.default_subspec = 'Full'
21-
21+
2222
s.subspec 'Full' do |ss|
23-
ss.source_files = 'ios/CodePush/*.{h,m}', 'ios/CodePush/SSZipArchive/*.{h,m}', 'ios/CodePush/SSZipArchive/aes/*.{h,c}', 'ios/CodePush/SSZipArchive/minizip/*.{h,c}'
23+
ss.dependency 'CodePush/NoZip'
24+
ss.dependency 'CodePush/SSZipArchive'
2425
end
25-
26+
2627
s.subspec 'NoZip' do |ss|
27-
ss.source_files = 'ios/CodePush/*.{h,m}'
28+
ss.source_files = 'ios/CodePush/*.{h,m}'
29+
ss.public_header_files = ['ios/CodePush/CodePush.h']
2830
end
29-
30-
end
31+
32+
s.subspec 'SSZipArchive' do |ss|
33+
ss.source_files = 'ios/CodePush/SSZipArchive/*.{h,m}', 'ios/CodePush/SSZipArchive/aes/*.{h,c}', 'ios/CodePush/SSZipArchive/minizip/*.{h,c}'
34+
ss.private_header_files = 'ios/CodePush/SSZipArchive/*.h', 'ios/CodePush/SSZipArchive/aes/*.h', 'ios/CodePush/SSZipArchive/minizip/*.h'
35+
end
36+
37+
end

0 commit comments

Comments
 (0)