Skip to content

Commit

Permalink
fix: Add git tag to CocoaPods source property (DylanVann#601)
Browse files Browse the repository at this point in the history
This change will make the CocoaPods version which is installed match the NodeJS version used.  
Currently, CocoaPods will install the latest version on head which could not match the JavaScript version of the library.

Changes:

1. Use the version tag to match the version installed by CocoaPods to that coming the from the `package.json` file.
  • Loading branch information
ptlu authored Mar 9, 2020
1 parent c345b6a commit 2d706ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RNFastImage.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Pod::Spec.new do |s|
s.platforms = { :ios => "8.0", :tvos => "9.0" }
s.framework = 'UIKit'
s.requires_arc = true
s.source = { :git => "https://github.com/DylanVann/react-native-fast-image.git" }
s.source = { :git => "https://github.com/DylanVann/react-native-fast-image.git", :tag => "v#{s.version} }
s.source_files = "ios/**/*.{h,m}"

s.dependency 'React'
s.dependency 'SDWebImage', '~> 5.0'
s.dependency 'SDWebImageWebPCoder', '~> 0.2.3'
end
end

0 comments on commit 2d706ad

Please sign in to comment.