mirror of
https://github.com/status-im/react-native-fast-image.git
synced 2025-02-23 19:58:15 +00:00
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.
22 lines
768 B
Ruby
22 lines
768 B
Ruby
require 'json'
|
|
|
|
Pod::Spec.new do |s|
|
|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
|
|
s.name = "RNFastImage"
|
|
s.version = package['version']
|
|
s.summary = package['description']
|
|
s.authors = { "Dylan Vann" => "dylan@dylanvann.com" }
|
|
s.homepage = "https://github.com/DylanVann/react-native-fast-image#readme"
|
|
s.license = "MIT"
|
|
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", :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
|