mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
46bdb4161c
Summary: Fishhook was used to try to hide the log messages from RCTReconnectingWebSocket but that doesn't really work anymore. Deleting it now to unblock people trying to build for iOS 13. Reviewed By: cpojer Differential Revision: D15779390 fbshipit-source-id: ef18575d5d92ac374e189b1267dee3a9befc3551
36 lines
1.4 KiB
Ruby
36 lines
1.4 KiB
Ruby
# coding: utf-8
|
||
# Copyright (c) Facebook, Inc. and its affiliates.
|
||
#
|
||
# This source code is licensed under the MIT license found in the
|
||
# LICENSE file in the root directory of this source tree.
|
||
|
||
require "json"
|
||
|
||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||
version = package['version']
|
||
|
||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||
if version == '1000.0.0'
|
||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||
source[:commit] = `git rev-parse HEAD`.strip
|
||
else
|
||
source[:tag] = "v#{version}"
|
||
end
|
||
|
||
Pod::Spec.new do |s|
|
||
s.name = "React-RCTWebSocket"
|
||
s.version = version
|
||
s.summary = "A library for supporting WebSockets, a protocol which provides full-duplex communication channels over a single TCP connection."
|
||
s.homepage = "http://facebook.github.io/react-native/"
|
||
s.documentation_url = "https://facebook.github.io/react-native/docs/network#websocket-support"
|
||
s.license = package["license"]
|
||
s.author = "Facebook, Inc. and its affiliates"
|
||
s.platforms = { :ios => "9.0", :tvos => "9.2" }
|
||
s.source = source
|
||
s.source_files = "*.{h,m}"
|
||
s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs"
|
||
s.header_dir = "React"
|
||
|
||
s.dependency "React-Core", version
|
||
end
|