From 006361b95b1e6c836225cdb95fe733f41bdf2afb Mon Sep 17 00:00:00 2001 From: Nando Vieira Date: Wed, 8 Sep 2021 07:39:44 -0700 Subject: [PATCH] fix: Fix podspec to be compliant with latest Cocoapods (#191) --- package.json | 2 +- react-native-udp.podspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 35f82c42..2fce822d 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ ], "repository": { "type": "git", - "url": "https://github.com/tradle/react-native-udp" + "url": "https://github.com/tradle/react-native-udp.git" }, "keywords": [ "react-native", diff --git a/react-native-udp.podspec b/react-native-udp.podspec index 90c72bcf..7450cc7d 100644 --- a/react-native-udp.podspec +++ b/react-native-udp.podspec @@ -10,7 +10,7 @@ Pod::Spec.new do |s| s.license = package_json["license"] s.author = { package_json["author"] => package_json["author"] } s.platform = :ios, "7.0" - s.source = { :git => package_json["repository"]["url"].gsub(/(http.*)/).first, :tag => "v#{s.version}" } + s.source = { :git => package_json["repository"]["url"], :tag => "v#{s.version}" } s.source_files = 'ios/**/*.{h,m}' s.dependency 'React-Core' s.dependency 'CocoaAsyncSocket'