Skip to content

Commit

Permalink
feat(ios): use swift package manager dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
guhungry committed Aug 24, 2024
1 parent 7fd2edb commit a66f14d
Show file tree
Hide file tree
Showing 2 changed files with 328 additions and 222 deletions.
14 changes: 11 additions & 3 deletions react-native-photo-manipulator.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/guhungry/react-native-photo-manipulator.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,mm,swift}"
s.exclude_files = "ios/Vendor/**/*.{h,m,mm}"

s.dependency 'WCPhotoManipulator', '~> 2.4.0'

if defined?(:spm_dependency)
spm_dependency(s,
url: 'https://github.com/guhungry/ios-photo-manipulator.git',
requirement: {kind: 'upToNextMajorVersion', minimumVersion: '2.4.0'},
products: ['WCPhotoManipulator']
)
else
s.dependency 'WCPhotoManipulator', '~> 2.4.0'
end

# Swift/Objective-C compatibility
s.pod_target_xcconfig = {
Expand Down Expand Up @@ -47,4 +55,4 @@ Pod::Spec.new do |s|
s.dependency "ReactCommon/turbomodule/core"
end
end
end
end
Loading

0 comments on commit a66f14d

Please sign in to comment.