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 a381e66 commit cebf66f
Showing 1 changed file with 7 additions and 30 deletions.
37 changes: 7 additions & 30 deletions PayUIndia-NativeOtpAssist.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-NativeOtpAssist"
s.version = NATIVE_OTP_ASSIST_POD_VERSION
s.version = "2.2.1"
s.license = "MIT"
s.homepage = "https://github.com/payu-intrepos/PayUNativeOtpAssist-iOS"
s.author = { "PayUbiz" => "[email protected]" }
Expand All @@ -36,11 +11,13 @@ s.description = "The OTP Assist SDK provides a complete authentication f
s.source = { :git => "https://github.com/payu-intrepos/PayUNativeOtpAssist-iOS.git",
:tag => "#{s.version}"
}
s.documentation_url = "https://payumobile.gitbook.io/sdk-integration/ios/native-otp-assist"
s.documentation_url = "https://devguide.payu.in/mobile-sdk-ios/native-otp-assist-ios/"
s.platform = :ios , "11.0"
s.vendored_frameworks = 'framework/PayUNativeOtpAssist.xcframework'
NATIVE_OTP_ASSIST_PODSPEC_DEPENDENCIES.each do |dependency|
dependency
end
s.dependency 'PayUIndia-PayUParams', '~>4.9'
s.dependency 'PayUIndia-Analytics', '~>3.0'
s.dependency 'PayUIndia-CrashReporter', '~>2.1'
s.dependency 'PayUIndia-NetworkReachability', '~>1.0'
s.dependency 'PayUIndia-CommonUI', '~>1.0'

end

0 comments on commit cebf66f

Please sign in to comment.