INNER CODE UNIT · Ruby
self
SiarheiFedartsou/fastlane-plugin-versioning · lib/fastlane/plugin/versioning/actions/get_app_store_version_number.rb:8
def self.run(params)
if params[:bundle_id]
bundle_id = params[:bundle_id]
else
if Helper.test?
plist = "/tmp/fastlane/tests/fastlane/plist/Info.plist"
else
plist = GetInfoPlistPathAction.run(params)
end
bundle_id = GetInfoPlistValueAction.run(path: plist, key: 'CFBundleIdentifier') # TODO: add same kind of flag to support build setting variables
end
random = Helper.test? ? "123" : SecureRandom.uuid
if params[:country]
uri = URI("https://itunes.apple.com/lookup?bundleId=#{bundle_id}&country=#{params[:country]}&rand=#{random}")
else
uri = URI("https://itunes.apple.com/lookup?bundleId=#{bundle_id}&rand=#{random}")