forked from ukhsa-collaboration/COVID-19-app-iOS-BETA
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Environment.swift.erb
34 lines (30 loc) · 1.09 KB
/
Environment.swift.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// Environment.swift
// Sonar
//
// Created by NHSX on 4/23/20.
// Copyright © 2020 NHSX. All rights reserved.
//
import CoreBluetooth
import Foundation
struct Environment {
struct Debug {
let registrationId: String
let registrationSecretKey: String
let registrationBroadcastRotationKey: String
}
static let apiEndpoint = "<%= api_endpoint %>"
static let sonarHeaderValue = "<%= sonar_header_value %>"
static let sonarServiceUUID = CBUUID(string: "<%= sonar_service_uuid %>")
static let sonarIdCharacteristicUUID = CBUUID(string: "<%= sonar_id_characteristic_uuid %>")
static let keepaliveCharacteristicUUID = CBUUID(string: "<%= sonar_keepalive_characteristic_uuid %>")
<% if defined? debug %>
static let debug: Debug? = Debug(
registrationId: "<%= debug.fetch("registration_id") %>",
registrationSecretKey: "<%= debug.fetch("registration_secret_key") %>",
registrationBroadcastRotationKey: "<%= debug.fetch("registration_broadcast_rotation_key") %>"
)
<% else %>
static let debug: Debug? = nil
<% end %>
}