mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	simplify subspec
This commit is contained in:
		| @@ -90,13 +90,6 @@ Pod::Spec.new do |s| | ||||
|  | ||||
|   s.source = { :git => 'https://github.com/reactnativecn/react-native-update.git', :tag => '#{s.version}' } | ||||
|  | ||||
|   # Conditionally set source files | ||||
|   if valid_expo_project | ||||
|     s.source_files = Dir.glob("ios/**/*.{h,m,mm,swift}") # Include Expo files | ||||
|   else | ||||
|     s.source_files = Dir.glob("ios/**/*.{h,m,mm,swift}").reject { |f| f.start_with?("ios/Expo/") } # Exclude Expo files | ||||
|   end | ||||
|  | ||||
|   s.libraries = 'bz2', 'z' | ||||
|   s.vendored_libraries = 'RCTPushy/libRCTPushy.a' | ||||
|   s.pod_target_xcconfig = {  | ||||
| @@ -116,18 +109,13 @@ Pod::Spec.new do |s| | ||||
|   end | ||||
|  | ||||
|   s.subspec 'RCTPushy' do |ss| | ||||
|     ss.source_files = 'ios/RCTPushy/*.{h,m,mm,swift}' | ||||
|     ss.public_header_files = ['ios/RCTPushy/*.h'] | ||||
|   end | ||||
|  | ||||
|   s.subspec 'HDiffPatch' do |ss| | ||||
|     ss.source_files = ['ios/RCTPushy/HDiffPatch/**/*.{h,m,c}', | ||||
|     ss.source_files = ['ios/RCTPushy/**/*.{h,m,mm,c}', | ||||
|                        'android/jni/hpatch.{h,c}', | ||||
|                        'android/jni/HDiffPatch/libHDiffPatch/HPatch/*.{h,c}', | ||||
|                        'android/jni/HDiffPatch/file_for_patch.{h,c}', | ||||
|                        'android/jni/lzma/C/LzmaDec.{h,c}', | ||||
|                        'android/jni/lzma/C/Lzma2Dec.{h,c}'] | ||||
|     ss.public_header_files = 'ios/RCTPushy/HDiffPatch/**/*.h' | ||||
|     ss.public_header_files = ['ios/RCTPushy/**/*.h'] | ||||
|   end | ||||
|  | ||||
|   # Conditionally add Expo subspec and check ExpoModulesCore version | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm