Skip to content

Commit 4c32c01

Browse files
authored
Merge branch 'dev' into therapy
2 parents 3cf5a93 + b547374 commit 4c32c01

39 files changed

+1103
-420
lines changed

.github/workflows/build_trio.yml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@ name: 4. Build Trio
22
run-name: Build Trio (${{ github.ref_name }})
33
on:
44
workflow_dispatch:
5-
6-
## Remove the "#" sign from the beginning of the line below to get automated builds on push (code changes in your repository)
7-
#push:
8-
95
schedule:
10-
# avoid starting an action at xx:00 when GitHub resources are more likely to be impacted
11-
- cron: "43 8 * * 3" # Checks for updates at 08:43 UTC every Wednesday
12-
- cron: "43 6 1 * *" # Builds the app on the 1st of every month at 06:43 UTC
6+
# Check for updates every Sunday
7+
# Later logic builds if there are updates or if it is the 2nd Sunday of the month
8+
- cron: "43 6 * * 0" # Sunday at UTC 06:43
139

1410
env:
1511
UPSTREAM_REPO: nightscout/Trio
@@ -19,6 +15,26 @@ env:
1915
ALIVE_BRANCH_DEV: alive-dev
2016

2117
jobs:
18+
19+
# Set a logic flag if this is the second instance of this day-of-week in this month
20+
day_in_month:
21+
runs-on: ubuntu-latest
22+
name: Check day in month
23+
outputs:
24+
IS_SECOND_IN_MONTH: ${{ steps.date-check.outputs.is_second_instance }}
25+
26+
steps:
27+
- id: date-check
28+
name: Check if this is the second time this day-of-week happens this month
29+
run: |
30+
DAY_OF_MONTH=$(date +%-d)
31+
WEEK_OF_MONTH=$(( ($(date +%-d) - 1) / 7 + 1 ))
32+
if [[ $WEEK_OF_MONTH -eq 2 ]]; then
33+
echo "is_second_instance=true" >> "$GITHUB_OUTPUT"
34+
else
35+
echo "is_second_instance=false" >> "$GITHUB_OUTPUT"
36+
fi
37+
2238
# Checks if Distribution certificate is present and valid, optionally nukes and
2339
# creates new certs if the repository variable ENABLE_NUKE_CERTS == 'true'
2440
check_certs:
@@ -205,20 +221,20 @@ jobs:
205221
# Builds Trio
206222
build:
207223
name: Build
208-
needs: [check_certs, check_alive_and_permissions, check_latest_from_upstream]
224+
needs: [check_certs, check_alive_and_permissions, check_latest_from_upstream, day_in_month]
209225
runs-on: macos-15
210226
permissions:
211227
contents: write
212228
if:
213-
| # runs if started manually, or if sync schedule is set and enabled and scheduled on the first Saturday each month, or if sync schedule is set and enabled and new commits were found
229+
| # builds with manual start; if automatic: once a month or when new commits are found
214230
github.event_name == 'workflow_dispatch' ||
215231
(needs.check_alive_and_permissions.outputs.WORKFLOW_PERMISSION == 'true' &&
216-
(vars.SCHEDULED_BUILD != 'false' && github.event.schedule == '43 6 1 * *') ||
232+
(vars.SCHEDULED_BUILD != 'false' && needs.day_in_month.outputs.IS_SECOND_IN_MONTH == 'true') ||
217233
(vars.SCHEDULED_SYNC != 'false' && needs.check_latest_from_upstream.outputs.NEW_COMMITS == 'true' )
218234
)
219235
steps:
220236
- name: Select Xcode version
221-
run: "sudo xcode-select --switch /Applications/Xcode_16.3.app/Contents/Developer"
237+
run: "sudo xcode-select --switch /Applications/Xcode_16.4.app/Contents/Developer"
222238

223239
- name: Checkout Repo for syncing
224240
if: |

CGMBLEKit

Submodule CGMBLEKit updated 202 files

Config.xcconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ BUNDLE_IDENTIFIER = org.nightscout.$(DEVELOPMENT_TEAM).trio
1818
TRIO_APP_GROUP_ID = group.org.nightscout.$(DEVELOPMENT_TEAM).trio.trio-app-group
1919

2020
// The developers set the version numbers, please leave them alone
21-
APP_VERSION = 0.5.1
22-
APP_DEV_VERSION = 0.5.1.22
21+
APP_VERSION = 0.6.0
22+
APP_DEV_VERSION = 0.6.0.4
2323
APP_BUILD_NUMBER = 1
2424
COPYRIGHT_NOTICE =
2525

G7SensorKit

Submodule G7SensorKit updated 49 files

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ source "https://rubygems.org"
44

55
# This branch uses fastlane 2.228.0 plus pr 29596
66
gem "fastlane", git: "https://github.com/loopandlearn/fastlane.git", ref: "a670d4b092b274d58ebb5497126e47fc6a84f533"
7+
gem "rexml", ">=3.4.2"

Gemfile.lock

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,27 @@ GEM
5858
artifactory (3.0.17)
5959
atomos (0.1.3)
6060
aws-eventstream (1.4.0)
61-
aws-partitions (1.1116.0)
62-
aws-sdk-core (3.225.2)
61+
aws-partitions (1.1163.0)
62+
aws-sdk-core (3.232.0)
6363
aws-eventstream (~> 1, >= 1.3.0)
6464
aws-partitions (~> 1, >= 1.992.0)
6565
aws-sigv4 (~> 1.9)
6666
base64
67+
bigdecimal
6768
jmespath (~> 1, >= 1.6.1)
6869
logger
69-
aws-sdk-kms (1.105.0)
70-
aws-sdk-core (~> 3, >= 3.225.0)
70+
aws-sdk-kms (1.112.0)
71+
aws-sdk-core (~> 3, >= 3.231.0)
7172
aws-sigv4 (~> 1.5)
72-
aws-sdk-s3 (1.189.1)
73-
aws-sdk-core (~> 3, >= 3.225.0)
73+
aws-sdk-s3 (1.199.0)
74+
aws-sdk-core (~> 3, >= 3.231.0)
7475
aws-sdk-kms (~> 1)
7576
aws-sigv4 (~> 1.5)
7677
aws-sigv4 (1.12.1)
7778
aws-eventstream (~> 1, >= 1.0.2)
7879
babosa (1.0.4)
7980
base64 (0.3.0)
81+
bigdecimal (3.2.3)
8082
claide (1.1.0)
8183
colored (1.2)
8284
colored2 (3.1.2)
@@ -105,10 +107,10 @@ GEM
105107
faraday (>= 0.8.0)
106108
http-cookie (~> 1.0.0)
107109
faraday-em_http (1.0.0)
108-
faraday-em_synchrony (1.0.0)
110+
faraday-em_synchrony (1.0.1)
109111
faraday-excon (1.1.0)
110112
faraday-httpclient (1.0.1)
111-
faraday-multipart (1.1.0)
113+
faraday-multipart (1.1.1)
112114
multipart-post (~> 2.0)
113115
faraday-net_http (1.0.2)
114116
faraday-net_http_persistent (1.2.0)
@@ -163,13 +165,13 @@ GEM
163165
httpclient (2.9.0)
164166
mutex_m
165167
jmespath (1.6.2)
166-
json (2.12.2)
167-
jwt (2.10.1)
168+
json (2.15.0)
169+
jwt (2.10.2)
168170
base64
169171
logger (1.7.0)
170172
mini_magick (4.13.2)
171173
mini_mime (1.1.5)
172-
multi_json (1.15.0)
174+
multi_json (1.17.0)
173175
multipart-post (2.4.1)
174176
mutex_m (0.3.0)
175177
nanaimo (0.4.0)
@@ -185,15 +187,15 @@ GEM
185187
trailblazer-option (>= 0.1.1, < 0.2.0)
186188
uber (< 0.2.0)
187189
retriable (3.1.2)
188-
rexml (3.4.1)
190+
rexml (3.4.4)
189191
rouge (3.28.0)
190192
ruby2_keywords (0.0.5)
191193
rubyzip (2.4.1)
192194
security (0.1.5)
193-
signet (0.20.0)
195+
signet (0.21.0)
194196
addressable (~> 2.8)
195197
faraday (>= 0.17.5, < 3.a)
196-
jwt (>= 1.5, < 3.0)
198+
jwt (>= 1.5, < 4.0)
197199
multi_json (~> 1.10)
198200
simctl (1.6.10)
199201
CFPropertyList
@@ -233,6 +235,7 @@ PLATFORMS
233235

234236
DEPENDENCIES
235237
fastlane!
238+
rexml (>= 3.4.2)
236239

237240
BUNDLED WITH
238241
2.6.2

LibreTransmitter

Submodule LibreTransmitter updated 40 files

LoopKit

Submodule LoopKit updated 211 files

MinimedKit

Submodule MinimedKit updated 77 files

0 commit comments

Comments
 (0)