Skip to content

feat: add environment-based API configuration#15

Merged
felippemsc merged 1 commit intomainfrom
feat/prod-api-config
Feb 6, 2026
Merged

feat: add environment-based API configuration#15
felippemsc merged 1 commit intomainfrom
feat/prod-api-config

Conversation

@felippemsc
Copy link
Contributor

@felippemsc felippemsc commented Feb 6, 2026

Summary

Add environment-based API configuration using Swift's #if DEBUG compiler flag.

  • Debug builds: Use dev-api.signedshot.io with dev publisher ID - Release builds: Use api.signedshot.io with production publisher ID

This enables testing against dev API during development while automatically using production for App Store builds.

Test plan

  • Debug build connects to dev-api.signedshot.io
  • Release build connects to api.signedshot.io
  • Device registration works on production
  • Capture session and trust token generation works
  • Sidecar validation succeeds with correct issuer

@felippemsc felippemsc marked this pull request as ready for review February 6, 2026 20:15
@felippemsc felippemsc merged commit 63cffef into main Feb 6, 2026
2 checks passed
@felippemsc felippemsc deleted the feat/prod-api-config branch February 6, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant