From 5b06070998cfc19500829f566cd8275d8fc33e0f Mon Sep 17 00:00:00 2001 From: Sean Wcisel Date: Fri, 5 Apr 2019 10:23:50 -0400 Subject: [PATCH] modifies podspec for compatibility with react-native link --- ios/RNReactNativePing.podspec | 24 ------------------------ react-native-ping.podspec | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 24 deletions(-) delete mode 100644 ios/RNReactNativePing.podspec create mode 100644 react-native-ping.podspec diff --git a/ios/RNReactNativePing.podspec b/ios/RNReactNativePing.podspec deleted file mode 100644 index bd43cb5..0000000 --- a/ios/RNReactNativePing.podspec +++ /dev/null @@ -1,24 +0,0 @@ - -Pod::Spec.new do |s| - s.name = "RNReactNativePing" - s.version = "1.0.0" - s.summary = "RNReactNativePing" - s.description = <<-DESC - RNReactNativePing - DESC - s.homepage = "" - s.license = "MIT" - # s.license = { :type => "MIT", :file => "FILE_LICENSE" } - s.author = { "author" => "396912848@qq.com" } - s.platform = :ios, "7.0" - s.source = { :git => "https://github.com/Mandmg/RNReactNativePing.git", :tag => "master" } - s.source_files = "RNReactNativePing/**/*.{h,m}" - s.requires_arc = true - - - s.dependency "React" - #s.dependency "others" - -end - - \ No newline at end of file diff --git a/react-native-ping.podspec b/react-native-ping.podspec new file mode 100644 index 0000000..2d60546 --- /dev/null +++ b/react-native-ping.podspec @@ -0,0 +1,16 @@ +require 'json' + +package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + +Pod::Spec.new do |s| + s.name = package['name'] + s.version = package['version'] + s.summary = package['description'] + s.homepage = "https://github.com/RoJoHub/react-native-ping" + s.license = package['license'] + s.author = package['author'] + s.source = { :git => "https://github.com/RoJoHub/react-native-ping", :tag => "#{s.version}" } + s.source_files = "ios/**/*.{h,m}" + s.ios.deployment_target = '8.0' + s.dependency 'React' +end \ No newline at end of file