[Podspec] Read version from the package.json, add author, add tag to the git source, add .git extension
This commit is contained in:
parent
cc731c41bd
commit
ef884acec7
@ -1,16 +1,21 @@
|
|||||||
|
require "json"
|
||||||
|
|
||||||
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
||||||
|
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = "react-native-video"
|
s.name = "react-native-video"
|
||||||
s.version = "0.7.1"
|
s.version = package["version"]
|
||||||
s.summary = "A <Video /> element for react-native"
|
s.summary = "A <Video /> element for react-native"
|
||||||
|
s.author = "Brent Vatne <brentvatne@gmail.com> (https://github.com/brentvatne)"
|
||||||
|
|
||||||
s.homepage = "https://github.com/brentvatne/react-native-video"
|
s.homepage = "https://github.com/brentvatne/react-native-video"
|
||||||
|
|
||||||
s.license = "MIT"
|
s.license = "MIT"
|
||||||
s.platform = :ios, "8.0"
|
s.platform = :ios, "8.0"
|
||||||
|
|
||||||
s.source = { :git => "https://github.com/brentvatne/react-native-video" }
|
s.source = { :git => "https://github.com/brentvatne/react-native-video.git", :tag => "#{s.version}" }
|
||||||
|
|
||||||
s.source_files = "*.{h,m}"
|
s.source_files = "*.{h,m}"
|
||||||
|
|
||||||
s.dependency 'React'
|
s.dependency "React"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user