From 97f05b65cb4ef512cd092b2c397b99213a843f27 Mon Sep 17 00:00:00 2001 From: Zain Sajjad Date: Mon, 23 Apr 2018 23:27:09 +0500 Subject: [PATCH] Update RNThread.podspec --- ios/RNThread.podspec | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/ios/RNThread.podspec b/ios/RNThread.podspec index 06ab2ea..243dbb7 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 - -- 2.26.2