Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Migrate Appetize previews to new demo #1055

Merged
merged 3 commits into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ build_type = ENV['BUILD_TYPE'] || "preview"
podfile_path = "Debug App/Podfile"
pr_number = ENV['PR_NUMBER']

sdk_demo_api_url = "https://sdk-demo.primer.io/api/mobile/ios/"
sdk_demo_url = "https://sdk-demo.primer.io/"

ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"] = "120"

#--------------------- END CONSTANTS -----------------------#
Expand Down Expand Up @@ -216,7 +219,7 @@ platform :ios do
# Find public key of appetize
# If a build exists with this name, we will overwrite it
url_end = get_appetize_version_name(build_type, pr_number)
uri = URI('https://livedemostore.common.primer.io/appetize/ios/' + "#{url_end}")
uri = URI(sdk_demo_api_url + "#{url_end}")
public_key = Net::HTTP.get(uri)
puts "public_key: " + public_key

Expand All @@ -230,7 +233,7 @@ platform :ios do
)

update_deployment_url(lane_context[SharedValues::APPETIZE_APP_URL])
update_livedemostore_url("https://livedemostore.common.primer.io/ios/#{url_end}")
update_livedemostore_url(sdk_demo_url + url_end + "/ios")

end

Expand Down
Loading