Skip to content

Commit

Permalink
Merge pull request #41 from nightscout/urlScheme
Browse files Browse the repository at this point in the history
Update URL scheme for Open-iAPS
  • Loading branch information
bjornoleh committed Apr 1, 2024
2 parents 8f4c2df + 360cec3 commit 89d45e8
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Config.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DEVELOPER_TEAM = ##TEAM_ID##
BUNDLE_IDENTIFIER = org.nightscout.$(DEVELOPMENT_TEAM).openiaps
APP_GROUP_ID = group.com.$(DEVELOPMENT_TEAM).loopkit.LoopGroup
APP_ICON = OiAPS_Icon
APP_URL_SCHEME = freeaps-x
APP_URL_SCHEME = Open-iAPS

#include? "../../ConfigOverride.xcconfig"
#include? "ConfigOverride.xcconfig"
1 change: 0 additions & 1 deletion FreeAPS/Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
<key>CFBundleURLSchemes</key>
<array>
<string>$(APP_URL_SCHEME)</string>
<string>freeaps-x</string>
</array>
</dict>
</array>
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/APS/CGM/CGMType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ enum CGMType: String, JSON, CaseIterable, Identifiable {
case .simulator:
return nil
case .libreTransmitter:
return URL(string: "freeaps-x://libre-transmitter")!
return URL(string: "Open-iAPS://libre-transmitter")!
}
}

Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Models/AlertEntry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct AlertEntry: JSON, Codable, Hashable {
let contentBody: String?
var errorMessage: String?

static let manual = "freeaps-x"
static let manual = "Open-iAPS"

static func == (lhs: AlertEntry, rhs: AlertEntry) -> Bool {
lhs.issuedDate == rhs.issuedDate
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Models/CarbsEntry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct CarbsEntry: JSON, Equatable, Hashable {
let isFPU: Bool?
let fpuID: String?

static let manual = "freeaps-x"
static let manual = "Open-iAPS"
static let appleHealth = "applehealth"

static func == (lhs: CarbsEntry, rhs: CarbsEntry) -> Bool {
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Models/NightscoutTreatment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct NigtscoutTreatment: JSON, Hashable, Equatable {
let targetTop: Decimal?
let targetBottom: Decimal?

static let local = "freeaps-x"
static let local = "Open-iAPS"

static let empty = NigtscoutTreatment(from: "{}")!

Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Models/TempTarget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ struct TempTarget: JSON, Identifiable, Equatable, Hashable {
let enteredBy: String?
let reason: String?

static let manual = "freeaps-x"
static let manual = "Open-iAPS"
static let custom = "Temp target"
static let cancel = "Cancel"

Expand Down
4 changes: 2 additions & 2 deletions FreeAPS/Sources/Services/Network/NightscoutAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ extension NightscoutAPI {
func checkConnection() -> AnyPublisher<Void, Swift.Error> {
struct Check: Codable, Equatable {
var eventType = "Note"
var enteredBy = "freeaps-x"
var notes = "iAPS connected"
var enteredBy = "Open-iAPS"
var notes = "Open-iAPS connected"
}
let check = Check()
var request = URLRequest(url: url.appendingPathComponent(Config.treatmentsPath))
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Services/WatchManager/GarminManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ final class BaseGarminManager: NSObject, GarminManager, Injectable {

init(resolver: Resolver) {
super.init()
connectIQ?.initialize(withUrlScheme: "freeaps-x", uiOverrideDelegate: self)
connectIQ?.initialize(withUrlScheme: "Open-iAPS", uiOverrideDelegate: self)
injectServices(resolver)
restoreDevices()
subscribeToOpenFromGarminConnect()
Expand Down

0 comments on commit 89d45e8

Please sign in to comment.