diff --git a/ios/RNThread.podspec b/ios/RNThread.podspec index 06ab2ea9029572056208506347fffd6c8820b855..243dbb7b78aad57ae30535af2475664f0c6da569 100644 --- a/ios/RNThread.podspec +++ b/ios/RNThread.podspec @@ -1,23 +1,17 @@ +require 'json' + +package = JSON.parse(File.read(File.join(__dir__, '../package.json'))) Pod::Spec.new do |s| - s.name = "RNThread" - s.version = "1.0.0" - s.summary = "RNThread" - s.description = <<-DESC - RNThread - 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/RNThread.git", :tag => "master" } + s.name = "RNThread" + s.version = package['version'] + s.summary = "React native threads" + s.description = "React native threads" + s.license = package['license'] + s.author = package['author'] + s.homepage = "https://github.com/joltup/RNThread.git" + s.source = { :git => "https://github.com/joltup/RNThread.git", :tag => s.version } s.source_files = "RNThread/**/*.{h,m}" - s.requires_arc = true - - - s.dependency "React" - #s.dependency "others" + s.dependency 'React' end -