Skip to content

Commit

Permalink
chore: Migrate Appetize previews to new demo (#1055)
Browse files Browse the repository at this point in the history
* Use demo preview

* Update demo url

* Fix link order
  • Loading branch information
NQuinn27 authored Dec 9, 2024
1 parent 8ed1cf3 commit 9c47a5e
Showing 1 changed file with 5 additions and 2 deletions.
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

0 comments on commit 9c47a5e

Please sign in to comment.