Skip to content

Commit

Permalink
Updated podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitPayU committed Jun 1, 2023
1 parent 3b93b41 commit 7f20a42
Showing 1 changed file with 3 additions and 31 deletions.
34 changes: 3 additions & 31 deletions PayUIndia-Custom-Browser.podspec
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
require 'httparty'
require 'colorize'

# Supress warning messages.
original_verbose, $VERBOSE = $VERBOSE, nil

# Make the API request
url = "https://api.github.com/repos/payu-intrepos/payu-params-iOS/contents/Version.txt"
response = HTTParty.get(url)

# Check if the request was successful
if response.code == 200
# Extract the content from the response
content = Base64.decode64(response['content'])
# Evaluate the content of the file
eval(content)
else
puts "\n==> Failed to retrieve Version.txt file. HTTP status code: #{response.code}".red
end

# Activate warning messages again.
$VERBOSE = original_verbose

#Pod

Pod::Spec.new do |s|
s.name = "PayUIndia-Custom-Browser"
s.version = CUSTOM_BROWSER_POD_VERSION
s.version = "10.0.1"
s.license = "MIT"
s.homepage = "https://github.com/payu-intrepos/iOS-Custom-Browser"
s.author = { "PayUbiz" => "contact@payu.in" }
Expand All @@ -46,9 +21,6 @@ Pod::Spec.new do |s|
s.library = "z"
s.requires_arc = true
s.dependency 'PayUIndia-Analytics', '3.0'

CUSTOM_BROWSER_PODSPEC_DEPENDENCIES.each do |dependency|
dependency
end

s.dependency 'PayUIndia-CommonUI', '~>1.0'

end

0 comments on commit 7f20a42

Please sign in to comment.