Skip to content

Commit 50020e4

Browse files
authored
Merge pull request #1529 from LoopKit/loop-release/v2.2.5
Loop release v2.2.5
2 parents a20ff6b + e46cfb8 commit 50020e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1224
-201
lines changed

Cartfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
github "LoopKit/LoopKit" "dev"
2-
github "LoopKit/CGMBLEKit" "dev"
1+
github "LoopKit/LoopKit" "loop-release/v2.2.5"
2+
github "LoopKit/CGMBLEKit" "loop-release/v2.2.5"
33
github "i-schuetz/SwiftCharts" == 0.6.5
4-
github "LoopKit/dexcom-share-client-swift" "dev"
5-
github "LoopKit/G4ShareSpy" "dev"
6-
github "ps2/rileylink_ios" "carthage-pin"
7-
github "LoopKit/Amplitude-iOS" "decreepify"
4+
github "LoopKit/dexcom-share-client-swift" "loop-release/v2.2.5"
5+
github "LoopKit/G4ShareSpy" "loop-release/v2.2.5"
6+
github "ps2/rileylink_ios" "loop-release/v2.2.5"
7+
github "LoopKit/Amplitude-iOS" "main"

Cartfile.resolved

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
github "LoopKit/Amplitude-iOS" "2137d5fd44bf630ed33e1e72d7af6d8f8612f270"
2-
github "LoopKit/CGMBLEKit" "7b4c1022eb6b91ae3975bfc8ce93fde8e496b4f3"
3-
github "LoopKit/G4ShareSpy" "3b749bc7f6323ad8303af6c755ba9b5649eff816"
4-
github "LoopKit/LoopKit" "5f459ee56ecd17c740c5fa0142353f3eb5b6120d"
1+
github "LoopKit/Amplitude-iOS" "de32f16cf1d4d83002bafa31b0aab129b991f82b"
2+
github "LoopKit/CGMBLEKit" "4fea57fb346ab7480c9740ec813bb58acb7fa686"
3+
github "LoopKit/G4ShareSpy" "c80eedb4260b47fdad56b1c568275f8ad1b814a5"
4+
github "LoopKit/LoopKit" "82dbcd84445976a698c01b214ec2afc6bec17155"
55
github "LoopKit/MKRingProgressView" "f548a5c64832be2d37d7c91b5800e284887a2a0a"
6-
github "LoopKit/dexcom-share-client-swift" "68ea5d08588e00bf148518b126416b8352dbef64"
6+
github "LoopKit/dexcom-share-client-swift" "b9acf057851271aea0b5759c3062acd58ed9e8f9"
77
github "i-schuetz/SwiftCharts" "0.6.5"
8-
github "ps2/rileylink_ios" "1d0ca309f3131ee58da26f31d89eecad8781c77b"
8+
github "ps2/rileylink_ios" "3c5b31a04e0164321343cb0e8c829b625224bd09"

Common/Extensions/NSBundle.swift

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ extension Bundle {
1717
var bundleDisplayName: String {
1818
return object(forInfoDictionaryKey: "CFBundleDisplayName") as! String
1919
}
20-
20+
2121
var localizedNameAndVersion: String {
2222
return String(format: NSLocalizedString("%1$@ v%2$@", comment: "The format string for the app name and version number. (1: bundle name)(2: bundle version)"), bundleDisplayName, shortVersionString)
2323
}
@@ -61,4 +61,16 @@ extension Bundle {
6161
var xcodeVersion: String? {
6262
return object(forInfoDictionaryKey: "com-loopkit-Loop-xcode-version") as? String
6363
}
64+
65+
var profileExpiration: Date? {
66+
return object(forInfoDictionaryKey: "com-loopkit-Loop-profile-expiration") as? Date
67+
}
68+
69+
var profileExpirationString: String {
70+
if let profileExpiration = profileExpiration {
71+
return "\(profileExpiration)"
72+
} else {
73+
return "N/A"
74+
}
75+
}
6476
}

Common/Extensions/NSTimeInterval.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@ extension TimeInterval {
1818
return TimeInterval(minutes: minutes)
1919
}
2020

21+
2122
static func hours(_ hours: Double) -> TimeInterval {
2223
return TimeInterval(hours: hours)
2324
}
25+
26+
static func days(_ days: Double) -> TimeInterval {
27+
return TimeInterval(days: days)
28+
}
2429

2530
init(minutes: Double) {
2631
self.init(minutes * 60)
@@ -30,6 +35,10 @@ extension TimeInterval {
3035
self.init(minutes: hours * 60)
3136
}
3237

38+
init(days: Double) {
39+
self.init(hours: days * 24)
40+
}
41+
3342
var minutes: Double {
3443
return self / 60.0
3544
}

0 commit comments

Comments
 (0)