Update Fastfile

This commit is contained in:
Marcos Rodriguez Velez 2024-09-05 15:40:28 -04:00
parent d4f6a50fb3
commit a5c8eddde4

View File

@ -104,11 +104,16 @@ end
# Extract the filename from the APK path
apk_filename = File.basename(apk_path)
# Remove 'bs://' from the app_url
browserstack_hashed_id = app_url.gsub('bs://', '')
pr_number = ENV['GITHUB_PR_NUMBER']
# Construct the comment content
comment = <<~COMMENT
APK successfully uploaded to BrowserStack. You can test it using the following URL:
#{app_url}
https://app-live.browserstack.com/dashboard#os=android&os_version=12.0&device=Google+Pixel+5&app_hashed_id=#{browserstack_hashed_id}&scale_to_fit=true&speed=1&start=true
Filename: #{apk_filename}
COMMENT