diff --git a/ios/RNBoundary.podspec b/ios/RNBoundary.podspec index 3587945..51115f4 100644 --- a/ios/RNBoundary.podspec +++ b/ios/RNBoundary.podspec @@ -1,24 +1,20 @@ +require 'json' + +package = JSON.parse(File.read(File.join(__dir__, '../package.json'))) Pod::Spec.new do |s| s.name = "RNBoundary" - s.version = "1.0.0" - s.summary = "RNBoundary" - s.description = <<-DESC - RNBoundary - DESC - s.homepage = "" - s.license = "MIT" - # s.license = { :type => "MIT", :file => "FILE_LICENSE" } - s.author = { "author" => "author@domain.cn" } - s.platform = :ios, "7.0" - s.source = { :git => "https://github.com/author/RNBoundary.git", :tag => "master" } - s.source_files = "RNBoundary/**/*.{h,m}" - s.requires_arc = true + s.version = package['version'] + s.summary = package['description'] + s.license = package['license'] + s.authors = package['author'] + s.homepage = package['homepage'] + s.platform = :ios, "9.0" - s.dependency "React" - #s.dependency "others" + s.source = { :git => "https://github.com/eddieowens/react-native-boundary.git", :tag => "#{s.version}" } + s.source_files = "*.{h,m}" + s.requires_arc = true + s.dependency 'React' end - - \ No newline at end of file