@@ -90,13 +90,6 @@ Pod::Spec.new do |s|
9090
9191 s . source = { :git => 'https://github.com/reactnativecn/react-native-update.git' , :tag => '#{s.version}' }
9292
93- # Conditionally set source files
94- if valid_expo_project
95- s . source_files = Dir . glob ( "ios/**/*.{h,m,mm,swift}" ) # Include Expo files
96- else
97- s . source_files = Dir . glob ( "ios/**/*.{h,m,mm,swift}" ) . reject { |f | f . start_with? ( "ios/Expo/" ) } # Exclude Expo files
98- end
99-
10093 s . libraries = 'bz2' , 'z'
10194 s . vendored_libraries = 'RCTPushy/libRCTPushy.a'
10295 s . pod_target_xcconfig = {
@@ -116,18 +109,13 @@ Pod::Spec.new do |s|
116109 end
117110
118111 s . subspec 'RCTPushy' do |ss |
119- ss . source_files = 'ios/RCTPushy/*.{h,m,mm,swift}'
120- ss . public_header_files = [ 'ios/RCTPushy/*.h' ]
121- end
122-
123- s . subspec 'HDiffPatch' do |ss |
124- ss . source_files = [ 'ios/RCTPushy/HDiffPatch/**/*.{h,m,c}' ,
112+ ss . source_files = [ 'ios/RCTPushy/**/*.{h,m,mm,c}' ,
125113 'android/jni/hpatch.{h,c}' ,
126114 'android/jni/HDiffPatch/libHDiffPatch/HPatch/*.{h,c}' ,
127115 'android/jni/HDiffPatch/file_for_patch.{h,c}' ,
128116 'android/jni/lzma/C/LzmaDec.{h,c}' ,
129117 'android/jni/lzma/C/Lzma2Dec.{h,c}' ]
130- ss . public_header_files = 'ios/RCTPushy/HDiffPatch/ **/*.h'
118+ ss . public_header_files = [ 'ios/RCTPushy/**/*.h' ]
131119 end
132120
133121 # Conditionally add Expo subspec and check ExpoModulesCore version
0 commit comments