Skip to content

Commit 98f576d

Browse files
authored
Merge pull request LoopKit#5 from loopnlearn/connect_lnl_loop
Release FreeAPS v2.2 (201)
2 parents 3db109f + 32ebf2d commit 98f576d

18 files changed

Lines changed: 139 additions & 42 deletions

File tree

Common/Extensions/NSBundle.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,16 @@ extension Bundle {
6565
var xcodeVersion: String? {
6666
return object(forInfoDictionaryKey: "com-loopkit-Loop-xcode-version") as? String
6767
}
68+
69+
var profileExpiration: Date? {
70+
return object(forInfoDictionaryKey: "com-loopkit-Loop-profile-expiration") as? Date
71+
}
72+
73+
var profileExpirationString: String {
74+
if let profileExpiration = profileExpiration {
75+
return "\(profileExpiration)"
76+
} else {
77+
return "N/A"
78+
}
79+
}
6880
}

DoseMathTests/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.1</string>
18+
<string>2.2</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>176</string>
22+
<string>201</string>
2323
</dict>
2424
</plist>

Learn/Info.plist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>MainAppBundleIdentifier</key>
6-
<string>$(MAIN_APP_BUNDLE_IDENTIFIER)</string>
75
<key>AppGroupIdentifier</key>
86
<string>$(APP_GROUP_IDENTIFIER)</string>
97
<key>CFBundleDevelopmentRegion</key>
@@ -19,11 +17,13 @@
1917
<key>CFBundlePackageType</key>
2018
<string>APPL</string>
2119
<key>CFBundleShortVersionString</key>
22-
<string>2.1</string>
20+
<string>2.2</string>
2321
<key>CFBundleVersion</key>
24-
<string>176</string>
22+
<string>201</string>
2523
<key>LSRequiresIPhoneOS</key>
2624
<true/>
25+
<key>MainAppBundleIdentifier</key>
26+
<string>$(MAIN_APP_BUNDLE_IDENTIFIER)</string>
2727
<key>NSHealthShareUsageDescription</key>
2828
<string>Meal data from the Health database is used to determine glucose effects. Glucose data from the Health database is used for graphing and momentum calculation. Sleep data from the Health database is used to optimize delivery of Apple Watch complication updates during the time you are awake.</string>
2929
<key>UILaunchStoryboardName</key>

Loop Status Extension/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<key>CFBundlePackageType</key>
2020
<string>XPC!</string>
2121
<key>CFBundleShortVersionString</key>
22-
<string>2.1</string>
22+
<string>2.2</string>
2323
<key>CFBundleVersion</key>
24-
<string>176</string>
24+
<string>201</string>
2525
<key>MainAppBundleIdentifier</key>
2626
<string>$(MAIN_APP_BUNDLE_IDENTIFIER)</string>
2727
<key>NSExtension</key>

Loop.xcodeproj/project.pbxproj

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2585,6 +2585,7 @@
25852585
inputFileListPaths = (
25862586
);
25872587
inputPaths = (
2588+
"${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}",
25882589
);
25892590
name = "Capture Build Details";
25902591
outputFileListPaths = (
@@ -3471,7 +3472,7 @@
34713472
ASSETCATALOG_COMPILER_APPICON_NAME = "$(APPICON_NAME)";
34723473
CODE_SIGN_ENTITLEMENTS = Loop/Loop.entitlements;
34733474
CODE_SIGN_IDENTITY = "iPhone Developer";
3474-
DEVELOPMENT_TEAM = BA7ZHP4963;
3475+
DEVELOPMENT_TEAM = "";
34753476
ENABLE_BITCODE = YES;
34763477
INFOPLIST_FILE = Loop/Info.plist;
34773478
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
@@ -3493,7 +3494,7 @@
34933494
CODE_SIGN_ENTITLEMENTS = Loop/Loop.entitlements;
34943495
CODE_SIGN_IDENTITY = "iPhone Developer";
34953496
DEBUG_INFORMATION_FORMAT = dwarf;
3496-
DEVELOPMENT_TEAM = BA7ZHP4963;
3497+
DEVELOPMENT_TEAM = "";
34973498
ENABLE_BITCODE = YES;
34983499
INFOPLIST_FILE = Loop/Info.plist;
34993500
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
@@ -3513,7 +3514,7 @@
35133514
CODE_SIGN_ENTITLEMENTS = "WatchApp Extension/WatchApp Extension.entitlements";
35143515
CODE_SIGN_IDENTITY = "iPhone Developer";
35153516
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "iPhone Developer";
3516-
DEVELOPMENT_TEAM = BA7ZHP4963;
3517+
DEVELOPMENT_TEAM = "";
35173518
FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/Carthage/Build/watchOS";
35183519
INFOPLIST_FILE = "WatchApp Extension/Info.plist";
35193520
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
@@ -3538,7 +3539,7 @@
35383539
CODE_SIGN_ENTITLEMENTS = "WatchApp Extension/WatchApp Extension.entitlements";
35393540
CODE_SIGN_IDENTITY = "iPhone Developer";
35403541
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "iPhone Developer";
3541-
DEVELOPMENT_TEAM = BA7ZHP4963;
3542+
DEVELOPMENT_TEAM = "";
35423543
FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/Carthage/Build/watchOS";
35433544
INFOPLIST_FILE = "WatchApp Extension/Info.plist";
35443545
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
@@ -3561,7 +3562,7 @@
35613562
ASSETCATALOG_COMPILER_APPICON_NAME = "$(APPICON_NAME)";
35623563
CODE_SIGN_IDENTITY = "iPhone Developer";
35633564
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "iPhone Developer";
3564-
DEVELOPMENT_TEAM = BA7ZHP4963;
3565+
DEVELOPMENT_TEAM = "";
35653566
FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/Carthage/Build/watchOS";
35663567
IBSC_MODULE = WatchApp_Extension;
35673568
INFOPLIST_FILE = WatchApp/Info.plist;
@@ -3584,7 +3585,7 @@
35843585
ASSETCATALOG_COMPILER_APPICON_NAME = "$(APPICON_NAME)";
35853586
CODE_SIGN_IDENTITY = "iPhone Developer";
35863587
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "iPhone Developer";
3587-
DEVELOPMENT_TEAM = BA7ZHP4963;
3588+
DEVELOPMENT_TEAM = "";
35883589
FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/Carthage/Build/watchOS";
35893590
IBSC_MODULE = WatchApp_Extension;
35903591
INFOPLIST_FILE = WatchApp/Info.plist;
@@ -3872,7 +3873,7 @@
38723873
CODE_SIGN_IDENTITY = "Apple Development";
38733874
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
38743875
CODE_SIGN_STYLE = Automatic;
3875-
DEVELOPMENT_TEAM = BA7ZHP4963;
3876+
DEVELOPMENT_TEAM = "";
38763877
ENABLE_BITCODE = NO;
38773878
INFOPLIST_FILE = "Loop Status Extension/Info.plist";
38783879
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
@@ -3896,7 +3897,7 @@
38963897
CODE_SIGN_IDENTITY = "Apple Development";
38973898
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
38983899
CODE_SIGN_STYLE = Automatic;
3899-
DEVELOPMENT_TEAM = BA7ZHP4963;
3900+
DEVELOPMENT_TEAM = "";
39003901
ENABLE_BITCODE = NO;
39013902
INFOPLIST_FILE = "Loop Status Extension/Info.plist";
39023903
IPHONEOS_DEPLOYMENT_TARGET = 13.0;

Loop/Base.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
/* Subtitle of Rapid-Acting – Adult preset */
5050
"A model based on the published absorption of Humalog, Novolog, and Apidra insulin in adults." = "A model based on the published absorption of Humalog, Novolog, and Apidra insulin in adults.";
5151

52+
/* Subtitle of Lyumjev preset */
53+
"A model based on the published absorption of Lyumjev insulin." = "A model based on the published absorption of Lyumjev insulin.";
54+
5255
/* Action to copy the recommended Bolus value to the actual Bolus Field */
5356
"AcceptRecommendedBolus" = "AcceptRecommendedBolus";
5457

Loop/Extensions/InsulinModelSettings+Loop.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ extension ExponentialInsulinModelPreset {
3030
return NSLocalizedString("Rapid-Acting – Children", comment: "Title of insulin model preset")
3131
case .fiasp:
3232
return NSLocalizedString("Fiasp", comment: "Title of insulin model preset")
33+
case .lyumjev:
34+
return NSLocalizedString("Lyumjev", comment: "Title of insulin model preset")
3335
}
3436
}
3537

@@ -41,6 +43,8 @@ extension ExponentialInsulinModelPreset {
4143
return NSLocalizedString("An adjustment to the adult model based on empirical effects in children.", comment: "Subtitle of Rapid-Acting – Children preset")
4244
case .fiasp:
4345
return NSLocalizedString("A model based on the published absorption of Fiasp insulin.", comment: "Subtitle of Fiasp preset")
46+
case .lyumjev:
47+
return NSLocalizedString("A model based on the published absorption of Lyumjev insulin.", comment: "Subtitle of Lyumjev preset")
4448
}
4549
}
4650
}

Loop/Info.plist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<key>CFBundlePackageType</key>
3737
<string>APPL</string>
3838
<key>CFBundleShortVersionString</key>
39-
<string>2.1</string>
39+
<string>2.2</string>
4040
<key>CFBundleSignature</key>
4141
<string>????</string>
4242
<key>CFBundleURLTypes</key>
@@ -49,7 +49,7 @@
4949
</dict>
5050
</array>
5151
<key>CFBundleVersion</key>
52-
<string>176</string>
52+
<string>201</string>
5353
<key>ITSAppUsesNonExemptEncryption</key>
5454
<false/>
5555
<key>LSApplicationQueriesSchemes</key>
@@ -62,6 +62,8 @@
6262
</array>
6363
<key>LSRequiresIPhoneOS</key>
6464
<true/>
65+
<key>LSSupportsOpeningDocumentsInPlace</key>
66+
<false/>
6567
<key>NSAppTransportSecurity</key>
6668
<dict>
6769
<key>NSAllowsArbitraryLoads</key>
@@ -122,8 +124,6 @@
122124
<string>UIInterfaceOrientationLandscapeLeft</string>
123125
<string>UIInterfaceOrientationLandscapeRight</string>
124126
</array>
125-
<key>LSSupportsOpeningDocumentsInPlace</key>
126-
<false/>
127127
<key>UTExportedTypeDeclarations</key>
128128
<array>
129129
<dict>

Loop/Managers/DeviceDataManager.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ final class DeviceDataManager {
210210
let report = [
211211
"## LoopVersion",
212212
"* Version: \(Bundle.main.localizedNameAndVersion)",
213+
"* profileExpiration: \(Bundle.main.profileExpirationString)",
213214
"* gitRevision: \(Bundle.main.gitRevision ?? "N/A")",
214215
"* gitBranch: \(Bundle.main.gitBranch ?? "N/A")",
215216
"* sourceRoot: \(Bundle.main.sourceRoot ?? "N/A")",

Loop/View Controllers/InsulinModelSettingsViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ class InsulinModelSettingsViewController: ChartsTableViewController, Identifiabl
6262
WalshInsulinModel(actionDuration: .hours(6)),
6363
ExponentialInsulinModelPreset.humalogNovologAdult,
6464
ExponentialInsulinModelPreset.humalogNovologChild,
65-
ExponentialInsulinModelPreset.fiasp
65+
ExponentialInsulinModelPreset.fiasp,
66+
ExponentialInsulinModelPreset.lyumjev
6667
]
6768

6869
private var selectedModelIndex: Int? {

0 commit comments

Comments
 (0)