From 40a14a57ff359472e110f7a23c81c0ebced6603b Mon Sep 17 00:00:00 2001 From: Niall Quinn Date: Mon, 2 Dec 2024 13:18:43 +0100 Subject: [PATCH 1/3] Use demo preview --- fastlane/Fastfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 247220f6b..ce07cbd88 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -34,6 +34,8 @@ build_type = ENV['BUILD_TYPE'] || "preview" podfile_path = "Debug App/Podfile" pr_number = ENV['PR_NUMBER'] +sdk_demo_url = "https://primer-sdk-demo-git-demo-fixes-primer-io.vercel.app/" + ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"] = "120" #--------------------- END CONSTANTS -----------------------# @@ -216,7 +218,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_url + "#{url_end}") public_key = Net::HTTP.get(uri) puts "public_key: " + public_key @@ -230,7 +232,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) end From 51ee78ba9be98205ecb71ffec14a2fbe606c949e Mon Sep 17 00:00:00 2001 From: Niall Quinn Date: Mon, 2 Dec 2024 14:57:36 +0100 Subject: [PATCH 2/3] Update demo url --- fastlane/Fastfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index ce07cbd88..cb1c06f12 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -34,7 +34,7 @@ build_type = ENV['BUILD_TYPE'] || "preview" podfile_path = "Debug App/Podfile" pr_number = ENV['PR_NUMBER'] -sdk_demo_url = "https://primer-sdk-demo-git-demo-fixes-primer-io.vercel.app/" +sdk_demo_url = "https://sdk-demo.primer.io/api/mobile/ios/" ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"] = "120" From 14f861c6b1ff96fb172563cbbf9c42942138656b Mon Sep 17 00:00:00 2001 From: Niall Quinn Date: Mon, 2 Dec 2024 15:57:29 +0100 Subject: [PATCH 3/3] Fix link order --- fastlane/Fastfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index cb1c06f12..54d99831a 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -34,7 +34,8 @@ build_type = ENV['BUILD_TYPE'] || "preview" podfile_path = "Debug App/Podfile" pr_number = ENV['PR_NUMBER'] -sdk_demo_url = "https://sdk-demo.primer.io/api/mobile/ios/" +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" @@ -218,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(sdk_demo_url + "#{url_end}") + uri = URI(sdk_demo_api_url + "#{url_end}") public_key = Net::HTTP.get(uri) puts "public_key: " + public_key @@ -232,7 +233,7 @@ platform :ios do ) update_deployment_url(lane_context[SharedValues::APPETIZE_APP_URL]) - update_livedemostore_url(sdk_demo_url + url_end) + update_livedemostore_url(sdk_demo_url + url_end + "/ios") end