From e1632f700cc0a83e88ac3083cf7ee7c75658ccdf Mon Sep 17 00:00:00 2001 From: Felippe Costa Date: Fri, 6 Feb 2026 16:48:41 -0300 Subject: [PATCH] feat: add environment-based API configuration --- ExampleApp/ExampleApp/ContentView.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ExampleApp/ExampleApp/ContentView.swift b/ExampleApp/ExampleApp/ContentView.swift index a612590..5c822e4 100644 --- a/ExampleApp/ExampleApp/ContentView.swift +++ b/ExampleApp/ExampleApp/ContentView.swift @@ -48,11 +48,18 @@ struct ContentView: View { @State private var showEnclaveTest = false init() { - // Configure the SignedShot client + // Configure the SignedShot client based on build configuration + #if DEBUG let config = SignedShotConfiguration( baseURLString: "https://dev-api.signedshot.io", publisherId: "9a5b1062-a8fe-4871-bdc1-fe54e96cbf1c" )! + #else + let config = SignedShotConfiguration( + baseURLString: "https://api.signedshot.io", + publisherId: "8f6b5d94-af3b-4f57-be68-e93eedd772fc" + )! + #endif client = SignedShotClient(configuration: config) integrityService = MediaIntegrityService(enclaveService: enclaveService) }