Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update URL scheme for Open-iAPS #41

Merged
merged 1 commit into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = ru.artpancreas.$(DEVELOPMENT_TEAM).FreeAPS
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")!
bjornoleh marked this conversation as resolved.
Show resolved Hide resolved
}
}

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)
bjornoleh marked this conversation as resolved.
Show resolved Hide resolved
injectServices(resolver)
restoreDevices()
subscribeToOpenFromGarminConnect()
Expand Down