Skip to content

Commit 1beb876

Browse files
committed
support 0.77
1 parent 3ce7f0f commit 1beb876

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

react-native-update.podspec

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
44

55
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
66

7+
podspec_dir = File.dirname(__FILE__)
8+
79
Pod::Spec.new do |s|
810
s.name = package['name']
911
s.version = package['version']
@@ -20,9 +22,12 @@ Pod::Spec.new do |s|
2022
s.source_files = "ios/**/*.{h,m,mm,swift}"
2123
s.libraries = 'bz2', 'z'
2224
s.vendored_libraries = 'RCTPushy/libRCTPushy.a'
23-
s.pod_target_xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '"$(SRCROOT)/../node_modules/react-native-update/ios"' }
25+
s.pod_target_xcconfig = {
26+
'USER_HEADER_SEARCH_PATHS' => "#{podspec_dir}/ios",
27+
"DEFINES_MODULE" => "YES"
28+
}
2429
s.resource = 'ios/pushy_build_time.txt'
25-
s.script_phase = { :name => 'Generate build time', :script => 'set -x;date +%s > ${PODS_ROOT}/../../node_modules/react-native-update/ios/pushy_build_time.txt', :execution_position => :before_compile }
30+
s.script_phase = { :name => 'Generate build time', :script => "set -x;date +%s > \"#{podspec_dir}/ios/pushy_build_time.txt\"", :execution_position => :before_compile }
2631

2732
s.dependency 'React'
2833
s.dependency "React-Core"
@@ -40,7 +45,7 @@ Pod::Spec.new do |s|
4045
'android/jni/HDiffPatch/file_for_patch.{h,c}',
4146
'android/jni/lzma/C/LzmaDec.{h,c}',
4247
'android/jni/lzma/C/Lzma2Dec.{h,c}']
43-
ss.private_header_files = 'ios/RCTPushy/HDiffPatch/**/*.h'
48+
ss.public_header_files = 'ios/RCTPushy/HDiffPatch/**/*.h'
4449
end
4550

4651
if defined?(install_modules_dependencies()) != nil

0 commit comments

Comments
 (0)