Skip to content

Loop 3.2 Release #41

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

Merged
merged 57 commits into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
2080608
Update to new Loop dev
ps2 Jan 14, 2023
620a732
Add Tidepool Service
ps2 Jan 20, 2023
aa0853d
Default to production environment
ps2 Jan 20, 2023
0ef3ccb
Record override percent and target
ps2 Jan 20, 2023
74bc05e
Changes to use com.loopkit.Loop client id for TidepoolService
ps2 Jan 22, 2023
977146f
TidepoolService fixes, Loop URL Scheme, Fix mock data for dexcom cgm …
ps2 Jan 22, 2023
a8b7a5c
Watch complication fixes
ps2 Jan 22, 2023
a0fbaa9
Upload automated boluses to Tidepool with a subtype of .normal
ps2 Jan 23, 2023
605e58b
Import new translations
ps2 Jan 27, 2023
0da3985
Show login email on Tidepool Service settings, and include translatio…
ps2 Jan 28, 2023
fc1ce33
Updated translations from Lokalise
ps2 Jan 29, 2023
f0bcd2e
Add feature to skip onboarding
ps2 Jan 29, 2023
bd4cbd0
Translation updates
ps2 Jan 29, 2023
d1b1b60
Fix string interpolation for translated strings
ps2 Jan 29, 2023
a9c4e9b
Localization fix
ps2 Jan 31, 2023
819963a
Profile expiration viewer and translation string fix
ps2 Feb 9, 2023
5d5a275
Import from Lokalise
ps2 Feb 9, 2023
337cb6c
Localization updates
ps2 Feb 10, 2023
7b68d4b
Map iOS language names to iso language names
ps2 Feb 10, 2023
319b611
Validate repository secrets (#36)
billybooth Feb 13, 2023
b36573a
Add commented placeholder for URL scheme name overrride (#31)
elnjensen Feb 13, 2023
a574124
Misc updates (#37)
ps2 Feb 20, 2023
d92b861
Add missed meal detection notifications
ps2 Feb 20, 2023
524b861
Loop dosing manager test updates
ps2 Feb 20, 2023
f2d9b3c
Fix optional binding from non-optional variable. Errors on Xcode 14.3
ps2 Feb 21, 2023
d12303e
build_loop workflow: add commented template for build on push and on …
bjornoleh Mar 10, 2023
46ed7ff
Bring in misc updates (#40)
ps2 Mar 10, 2023
60490b4
Translations update
ps2 Mar 11, 2023
8c6bf43
Ensure environment variablse set for localization import
ps2 Mar 11, 2023
1069efe
Add missed rileylink_ios translations
ps2 Mar 11, 2023
3b83f8e
Update README and testflight instruction files (#39)
marionbarker Mar 11, 2023
44479c2
Ensure LOKALISE_TOKEN is set for export
ps2 Mar 11, 2023
43aed20
Bring in missing OmniBLE translations
ps2 Mar 11, 2023
895bd26
Migrate to NightscoutKit
ps2 Mar 11, 2023
3993f79
LoopKit test fix update
ps2 Mar 11, 2023
9d01f68
Remove old tests from schemes
ps2 Mar 12, 2023
53df23f
Bring in omnipod dose tracking fixes
ps2 Mar 13, 2023
6e93602
Remove timer based refresh on omnipods. Refresh will happen on bringi…
ps2 Mar 13, 2023
41026ab
Localization fixes for iOS 15
ps2 Mar 13, 2023
a35ad8a
Localization fixes for iOS 15
ps2 Mar 13, 2023
779f4ef
Fix en and he localizations that were initialized to Spanish
ps2 Mar 14, 2023
8908ad2
Fix more localizations that were incorrectly initialized to spanish.
ps2 Mar 14, 2023
3afeb7e
Medtronic Temp basal tracking fix
ps2 Mar 15, 2023
0665a7f
Fix healthkit observation
ps2 Mar 15, 2023
948c2c7
Tests cleanup, and add back LoopKitHostedTests to main loop workspace…
ps2 Mar 15, 2023
d4f31e2
Rename Xcode workspace for Loop to LoopWorkspace, and rename primary …
ps2 Mar 15, 2023
3dffec9
Update Fastfile (#42)
sethgagnon Mar 15, 2023
f82b886
Rename LoopWorkspace in circleci tasks
ps2 Mar 15, 2023
540f572
Merge branch 'dev' of https://github.com/LoopKit/LoopWorkspace into dev
ps2 Mar 15, 2023
3d23008
Update for workspace rename
ps2 Mar 15, 2023
a9f73f6
Upload temp and scheduled basals to Tidepool with the correct automat…
ps2 Mar 17, 2023
025bafc
Update README.md
ps2 Mar 17, 2023
908faad
Fix basal overlay test
ps2 Mar 17, 2023
2133e8c
Merge branch 'dev' of https://github.com/LoopKit/LoopWorkspace into dev
ps2 Mar 17, 2023
c285bf7
Fault code updates for omnipod
ps2 Mar 17, 2023
477c3d2
Merge remote-tracking branch 'origin/main' into dev
ps2 Mar 17, 2023
ab17b94
Update Loop submodule revision to Loop 3.2
ps2 Mar 17, 2023
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
7 changes: 2 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ jobs:
command: git submodule update --init --recursive --depth 1
- run:
name: Build Loop
command: set -o pipefail && time xcodebuild -workspace Loop.xcworkspace -scheme 'Loop (Workspace)' -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5' build | xcpretty
- run:
name: Build Learn
command: set -o pipefail && time xcodebuild -workspace Loop.xcworkspace -scheme 'Learn (Workspace)' -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5' build | xcpretty
command: set -o pipefail && time xcodebuild -workspace LoopWorkspace.xcworkspace -scheme 'LoopWorkspace' -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5' build | xcpretty
- run:
name: Run Tests
command: set -o pipefail && time xcodebuild -workspace Loop.xcworkspace -scheme 'Loop (Workspace)' -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5' test | xcpretty
command: set -o pipefail && time xcodebuild -workspace LoopWorkspace.xcworkspace -scheme 'LoopWorkspace' -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5' test | xcpretty

8 changes: 7 additions & 1 deletion .github/workflows/add_identifiers.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: Add Identifiers
name: 2. Add Identifiers
run-name: Add Identifiers
on:
workflow_dispatch:

jobs:
secrets:
uses: ./.github/workflows/validate_secrets.yml
secrets: inherit

identifiers:
needs: secrets
runs-on: macos-12
steps:
# Uncomment to manually select latest Xcode if needed
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/build_loop.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
name: Build Loop
name: 4. Build Loop
run-name: Build Loop
on:
workflow_dispatch:

## Remove the "#" sign from the beginning of the line below to get automated builds on push (code changes in your repository)
#push:

## Remove the "#" sign from the beginning of the two lines below to get automated builds every two months
#schedule:
#- cron: '0 17 1 */2 *' # Runs at 17:00 UTC on the 1st in Jan, Mar, May, Jul, Sep and Nov.

jobs:
secrets:
uses: ./.github/workflows/validate_secrets.yml
secrets: inherit

build:
needs: secrets
runs-on: macos-12
steps:
# Uncomment to manually select latest Xcode if needed
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/create_certs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: Create Certificates
name: 3. Create Certificates
run-name: Create Certificates
on:
workflow_dispatch:

jobs:
secrets:
uses: ./.github/workflows/validate_secrets.yml
secrets: inherit

certificates:
needs: secrets
runs-on: macos-12
steps:
# Uncomment to manually select latest Xcode if needed
Expand Down
70 changes: 70 additions & 0 deletions .github/workflows/validate_secrets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: 1. Validate Secrets
run-name: Validate Secrets
on: [workflow_call, workflow_dispatch]

jobs:
validate:
runs-on: macos-12
steps:
# Checks-out the repo
- name: Checkout Repo
uses: actions/checkout@v3

# Validates the repo secrets
- name: Validate Secrets
run: |
# Validate Secrets
echo Validating Repository Secrets...

# Validate TEAMID
if [ -z "$TEAMID" ]; then
failed=true
echo "::error::TEAMID secret is unset or empty. Set it and try again."
elif [ ${#TEAMID} -ne 10 ]; then
failed=true
echo "::error::TEAMID secret is set but has wrong length. Verify that it is set correctly and try again."
fi

# Validate GH_PAT
if [ -z "$GH_PAT" ]; then
failed=true
echo "::error::GH_PAT secret is unset or empty. Set it and try again."
elif [ "$(gh api -H "Accept: application/vnd.github+json" /repos/${{ github.repository_owner }}/Match-Secrets | jq --raw-output '.permissions.push')" != "true" ]; then
failed=true
echo "::error::GH_PAT secret is set but invalid or lacking appropriate privileges on the ${{ github.repository_owner }}/Match-Secrets repository. Verify that it is set correctly and try again."
fi

# Validate FASTLANE_ISSUER_ID, FASTLANE_KEY_ID, and FASTLANE_KEY
if [ -z "$FASTLANE_ISSUER_ID" ] || [ -z "$FASTLANE_KEY_ID" ] || [ -z "$FASTLANE_KEY" ]; then
failed=true
[ -z "$FASTLANE_ISSUER_ID" ] && echo "::error::The FASTLANE_ISSUER_ID secret is unset or empty. Set it and try again."
[ -z "$FASTLANE_KEY_ID" ] && echo "::error::The FASTLANE_KEY_ID secret is unset or empty. Set it and try again."
[ -z "$FASTLANE_KEY" ] && echo "::error::The FASTLANE_KEY secret is unset or empty. Set it and try again."
elif ! echo "$FASTLANE_KEY" | openssl pkcs8 -nocrypt >/dev/null; then
failed=true
echo "::error::The FASTLANE_KEY secret is set but invalid. Verify that it is set correctly and try again."
elif ! fastlane validate_secrets; then
failed=true
echo "::error::Unable to create a valid authorization token for the App Store Connect API.\
Verify that the FASTLANE_ISSUER_ID, FASTLANE_KEY_ID, and FASTLANE_KEY secrets are set correctly and try again."
fi

# Validate MATCH_PASSWORD
if [ -z "$MATCH_PASSWORD" ]; then
failed=true
echo "::error::The MATCH_PASSWORD secret is unset or empty. Set it and try again."
fi

# Exit unsuccessfully if secret validation failed.
if [ $failed ]; then
exit 2
fi
shell: bash
env:
TEAMID: ${{ secrets.TEAMID }}
GH_PAT: ${{ secrets.GH_PAT }}
FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
GH_TOKEN: ${{ secrets.GH_PAT }}
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,9 @@
[submodule "G7SensorKit"]
path = G7SensorKit
url = https://github.com/LoopKit/G7SensorKit.git
[submodule "TidepoolService"]
path = TidepoolService
url = https://github.com/LoopKit/TidepoolService.git
[submodule "TidepoolKit"]
path = TidepoolKit
url = https://github.com/LoopKit/TidepoolKit.git
2 changes: 1 addition & 1 deletion AmplitudeService
Submodule AmplitudeService updated 40 files
+8 −0 AmplitudeService.xcodeproj/project.pbxproj
+ AmplitudeServiceKit/da.lproj/Localizable.strings
+1 −0 AmplitudeServiceKit/es.lproj/Localizable.strings
+ AmplitudeServiceKit/fi.lproj/Localizable.strings
+1 −0 AmplitudeServiceKit/fr.lproj/Localizable.strings
+ AmplitudeServiceKit/he.lproj/Localizable.strings
+1 −0 AmplitudeServiceKit/it.lproj/Localizable.strings
+ AmplitudeServiceKit/ja.lproj/Localizable.strings
+1 −0 AmplitudeServiceKit/nb.lproj/Localizable.strings
+1 −0 AmplitudeServiceKit/nl.lproj/Localizable.strings
+1 −0 AmplitudeServiceKit/pl.lproj/Localizable.strings
+ AmplitudeServiceKit/pt-BR.lproj/Localizable.strings
+ AmplitudeServiceKit/ro.lproj/Localizable.strings
+1 −0 AmplitudeServiceKit/ru.lproj/Localizable.strings
+ AmplitudeServiceKit/sv.lproj/Localizable.strings
+ AmplitudeServiceKit/tr.lproj/Localizable.strings
+ AmplitudeServiceKit/vi.lproj/Localizable.strings
+3 −0 AmplitudeServiceKit/zh-Hans-CN.lproj/Localizable.strings
+1 −0 AmplitudeServiceKit/zh-Hans.lproj/Localizable.strings
+1 −1 AmplitudeServiceKitUI/AmplitudeService+UI.swift
+ AmplitudeServiceKitUI/da.lproj/Localizable.strings
+1 −1 AmplitudeServiceKitUI/de.lproj/Localizable.strings
+8 −1 AmplitudeServiceKitUI/es.lproj/Localizable.strings
+ AmplitudeServiceKitUI/fi.lproj/Localizable.strings
+9 −2 AmplitudeServiceKitUI/fr.lproj/Localizable.strings
+ AmplitudeServiceKitUI/he.lproj/Localizable.strings
+8 −1 AmplitudeServiceKitUI/it.lproj/Localizable.strings
+ AmplitudeServiceKitUI/ja.lproj/Localizable.strings
+9 −2 AmplitudeServiceKitUI/nb.lproj/Localizable.strings
+8 −1 AmplitudeServiceKitUI/nl.lproj/Localizable.strings
+7 −0 AmplitudeServiceKitUI/pl.lproj/Localizable.strings
+ AmplitudeServiceKitUI/pt-BR.lproj/Localizable.strings
+ AmplitudeServiceKitUI/ro.lproj/Localizable.strings
+9 −2 AmplitudeServiceKitUI/ru.lproj/Localizable.strings
+15 −0 AmplitudeServiceKitUI/sk.lproj/Localizable.strings
+ AmplitudeServiceKitUI/sv.lproj/Localizable.strings
+ AmplitudeServiceKitUI/tr.lproj/Localizable.strings
+ AmplitudeServiceKitUI/vi.lproj/Localizable.strings
+9 −0 AmplitudeServiceKitUI/zh-Hans-CN.lproj/Localizable.strings
+1 −0 AmplitudeServiceKitUI/zh-Hans.lproj/Localizable.strings
2 changes: 1 addition & 1 deletion CGMBLEKit
Submodule CGMBLEKit updated 151 files
2 changes: 1 addition & 1 deletion G7SensorKit
Submodule G7SensorKit updated 47 files
+148 −0 G7SensorKit.xcodeproj/project.pbxproj
+118 −0 G7SensorKitUI/ar.lproj/Localizable.strings
+31 −0 G7SensorKitUI/cs.lproj/Localizable.strings
+118 −0 G7SensorKitUI/da.lproj/Localizable.strings
+118 −0 G7SensorKitUI/de.lproj/Localizable.strings
+118 −0 G7SensorKitUI/en.lproj/Localizable.strings
+118 −0 G7SensorKitUI/es.lproj/Localizable.strings
+118 −0 G7SensorKitUI/fi.lproj/Localizable.strings
+118 −0 G7SensorKitUI/fr.lproj/Localizable.strings
+51 −0 G7SensorKitUI/he.lproj/Localizable.strings
+97 −0 G7SensorKitUI/hi.lproj/Localizable.strings
+118 −0 G7SensorKitUI/it.lproj/Localizable.strings
+118 −0 G7SensorKitUI/ja.lproj/Localizable.strings
+118 −0 G7SensorKitUI/nb.lproj/Localizable.strings
+118 −0 G7SensorKitUI/nl.lproj/Localizable.strings
+118 −0 G7SensorKitUI/pl.lproj/Localizable.strings
+118 −0 G7SensorKitUI/pt-BR.lproj/Localizable.strings
+118 −0 G7SensorKitUI/ro.lproj/Localizable.strings
+118 −0 G7SensorKitUI/ru.lproj/Localizable.strings
+115 −0 G7SensorKitUI/sk.lproj/Localizable.strings
+118 −0 G7SensorKitUI/sv.lproj/Localizable.strings
+118 −0 G7SensorKitUI/tr.lproj/Localizable.strings
+118 −0 G7SensorKitUI/vi.lproj/Localizable.strings
+118 −0 G7SensorKitUI/zh-Hans.lproj/Localizable.strings
+24 −0 ar.lproj/Localizable.strings
+24 −0 cs.lproj/Localizable.strings
+24 −0 da.lproj/Localizable.strings
+24 −0 de.lproj/Localizable.strings
+24 −0 en.lproj/Localizable.strings
+24 −0 es.lproj/Localizable.strings
+24 −0 fi.lproj/Localizable.strings
+24 −0 fr.lproj/Localizable.strings
+6 −0 he.lproj/Localizable.strings
+24 −0 hi.lproj/Localizable.strings
+24 −0 it.lproj/Localizable.strings
+24 −0 ja.lproj/Localizable.strings
+24 −0 nb.lproj/Localizable.strings
+24 −0 nl.lproj/Localizable.strings
+24 −0 pl.lproj/Localizable.strings
+24 −0 pt-BR.lproj/Localizable.strings
+24 −0 ro.lproj/Localizable.strings
+24 −0 ru.lproj/Localizable.strings
+24 −0 sk.lproj/Localizable.strings
+24 −0 sv.lproj/Localizable.strings
+24 −0 tr.lproj/Localizable.strings
+24 −0 vi.lproj/Localizable.strings
+24 −0 zh-Hans.lproj/Localizable.strings
2 changes: 1 addition & 1 deletion LogglyService
Submodule LogglyService updated 42 files
+10 −0 LogglyService.xcodeproj/project.pbxproj
+ LogglyServiceKit/da.lproj/Localizable.strings
+1 −0 LogglyServiceKit/de.lproj/Localizable.strings
+1 −0 LogglyServiceKit/es.lproj/Localizable.strings
+ LogglyServiceKit/fi.lproj/Localizable.strings
+1 −0 LogglyServiceKit/fr.lproj/Localizable.strings
+ LogglyServiceKit/he.lproj/Localizable.strings
+1 −0 LogglyServiceKit/it.lproj/Localizable.strings
+ LogglyServiceKit/ja.lproj/Localizable.strings
+1 −0 LogglyServiceKit/nb.lproj/Localizable.strings
+1 −0 LogglyServiceKit/nl.lproj/Localizable.strings
+1 −0 LogglyServiceKit/pl.lproj/Localizable.strings
+ LogglyServiceKit/pt-BR.lproj/Localizable.strings
+ LogglyServiceKit/ro.lproj/Localizable.strings
+1 −0 LogglyServiceKit/ru.lproj/Localizable.strings
+3 −0 LogglyServiceKit/sk.lproj/Localizable.strings
+ LogglyServiceKit/sv.lproj/Localizable.strings
+ LogglyServiceKit/tr.lproj/Localizable.strings
+ LogglyServiceKit/vi.lproj/Localizable.strings
+3 −0 LogglyServiceKit/zh-Hans-CN.lproj/Localizable.strings
+1 −0 LogglyServiceKit/zh-Hans.lproj/Localizable.strings
+1 −1 LogglyServiceKitUI/LogglyService+UI.swift
+ LogglyServiceKitUI/da.lproj/Localizable.strings
+7 −0 LogglyServiceKitUI/de.lproj/Localizable.strings
+7 −0 LogglyServiceKitUI/es.lproj/Localizable.strings
+ LogglyServiceKitUI/fi.lproj/Localizable.strings
+8 −1 LogglyServiceKitUI/fr.lproj/Localizable.strings
+ LogglyServiceKitUI/he.lproj/Localizable.strings
+8 −1 LogglyServiceKitUI/it.lproj/Localizable.strings
+ LogglyServiceKitUI/ja.lproj/Localizable.strings
+9 −2 LogglyServiceKitUI/nb.lproj/Localizable.strings
+9 −2 LogglyServiceKitUI/nl.lproj/Localizable.strings
+8 −1 LogglyServiceKitUI/pl.lproj/Localizable.strings
+ LogglyServiceKitUI/pt-BR.lproj/Localizable.strings
+ LogglyServiceKitUI/ro.lproj/Localizable.strings
+9 −2 LogglyServiceKitUI/ru.lproj/Localizable.strings
+15 −0 LogglyServiceKitUI/sk.lproj/Localizable.strings
+ LogglyServiceKitUI/sv.lproj/Localizable.strings
+ LogglyServiceKitUI/tr.lproj/Localizable.strings
+ LogglyServiceKitUI/vi.lproj/Localizable.strings
+9 −0 LogglyServiceKitUI/zh-Hans-CN.lproj/Localizable.strings
+1 −0 LogglyServiceKitUI/zh-Hans.lproj/Localizable.strings
2 changes: 1 addition & 1 deletion Loop
Submodule Loop updated 430 files
156 changes: 0 additions & 156 deletions Loop.xcworkspace/xcshareddata/xcschemes/Learn (Workspace).xcscheme

This file was deleted.

3 changes: 3 additions & 0 deletions LoopConfigOverride.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
// Customize this to change the app name displayed
//MAIN_APP_DISPLAY_NAME = Loop

// Customize this to change the URL to open Loop to something other than the display name
//URL_SCHEME_NAME = $(MAIN_APP_DISPLAY_NAME)

// Features
SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited) SIMULATORS_ENABLED //DEBUG_FEATURES_ENABLED

Expand Down
2 changes: 1 addition & 1 deletion LoopKit
Submodule LoopKit updated 383 files

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading