Skip to content

Commit a7a63d1

Browse files
authored
Merge pull request #46 from LoopKit/dev
Merge dev into main for 3.2.1 release.
2 parents 43cdd14 + edc7a28 commit a7a63d1

24 files changed

+133
-81
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,9 @@
5252
[submodule "TidepoolKit"]
5353
path = TidepoolKit
5454
url = https://github.com/LoopKit/TidepoolKit.git
55+
[submodule "OmniKit"]
56+
path = OmniKit
57+
url = https://github.com/LoopKit/OmniKit.git
58+
[submodule "MinimedKit"]
59+
path = MinimedKit
60+
url = https://github.com/LoopKit/MinimedKit.git

CGMBLEKit

Submodule CGMBLEKit updated 86 files

G7SensorKit

Submodule G7SensorKit updated 55 files

Loop

Submodule Loop updated 234 files

LoopKit

Submodule LoopKit updated 177 files

LoopWorkspace.xcworkspace/contents.xcworkspacedata

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LoopWorkspace.xcworkspace/xcshareddata/xcschemes/LoopWorkspace.xcscheme

Lines changed: 30 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -140,24 +140,10 @@
140140
buildForAnalyzing = "YES">
141141
<BuildableReference
142142
BuildableIdentifier = "primary"
143-
BlueprintIdentifier = "C136AA5D231187B0008A320D"
144-
BuildableName = "MinimedKitPlugin.loopplugin"
145-
BlueprintName = "MinimedKitPlugin"
146-
ReferencedContainer = "container:rileylink_ios/RileyLink.xcodeproj">
147-
</BuildableReference>
148-
</BuildActionEntry>
149-
<BuildActionEntry
150-
buildForTesting = "YES"
151-
buildForRunning = "YES"
152-
buildForProfiling = "YES"
153-
buildForArchiving = "YES"
154-
buildForAnalyzing = "YES">
155-
<BuildableReference
156-
BuildableIdentifier = "primary"
157-
BlueprintIdentifier = "C1B3830A1CD0665D00CE7782"
158-
BuildableName = "NightscoutUploadKit.framework"
159-
BlueprintName = "NightscoutUploadKit"
160-
ReferencedContainer = "container:rileylink_ios/RileyLink.xcodeproj">
143+
BlueprintIdentifier = "A99C713023396CB100AB9035"
144+
BuildableName = "NightscoutServiceKitPlugin.loopplugin"
145+
BlueprintName = "NightscoutServiceKitPlugin"
146+
ReferencedContainer = "container:NightscoutService/NightscoutService.xcodeproj">
161147
</BuildableReference>
162148
</BuildActionEntry>
163149
<BuildActionEntry
@@ -168,10 +154,10 @@
168154
buildForAnalyzing = "YES">
169155
<BuildableReference
170156
BuildableIdentifier = "primary"
171-
BlueprintIdentifier = "A99C713023396CB100AB9035"
172-
BuildableName = "NightscoutServiceKitPlugin.loopplugin"
173-
BlueprintName = "NightscoutServiceKitPlugin"
174-
ReferencedContainer = "container:NightscoutService/NightscoutService.xcodeproj">
157+
BlueprintIdentifier = "C1E34B5A29C7AD01009A50A5"
158+
BuildableName = "MinimedKitPlugin.loopplugin"
159+
BlueprintName = "MinimedKitPlugin"
160+
ReferencedContainer = "container:MinimedKit/MinimedKit.xcodeproj">
175161
</BuildableReference>
176162
</BuildActionEntry>
177163
<BuildActionEntry
@@ -182,10 +168,10 @@
182168
buildForAnalyzing = "YES">
183169
<BuildableReference
184170
BuildableIdentifier = "primary"
185-
BlueprintIdentifier = "C136AA2923116E32008A320D"
171+
BlueprintIdentifier = "C124021629C7D93D00B32844"
186172
BuildableName = "OmniKitPlugin.loopplugin"
187173
BlueprintName = "OmniKitPlugin"
188-
ReferencedContainer = "container:rileylink_ios/RileyLink.xcodeproj">
174+
ReferencedContainer = "container:OmniKit/OmniKit.xcodeproj">
189175
</BuildableReference>
190176
</BuildActionEntry>
191177
<BuildActionEntry
@@ -439,16 +425,6 @@
439425
ReferencedContainer = "container:LoopKit/LoopKit.xcodeproj">
440426
</BuildableReference>
441427
</TestableReference>
442-
<TestableReference
443-
skipped = "NO">
444-
<BuildableReference
445-
BuildableIdentifier = "primary"
446-
BlueprintIdentifier = "C10D9BC91C8269D500378342"
447-
BuildableName = "MinimedKitTests.xctest"
448-
BlueprintName = "MinimedKitTests"
449-
ReferencedContainer = "container:rileylink_ios/RileyLink.xcodeproj">
450-
</BuildableReference>
451-
</TestableReference>
452428
<TestableReference
453429
skipped = "NO">
454430
<BuildableReference
@@ -499,16 +475,6 @@
499475
ReferencedContainer = "container:LoopKit/LoopKit.xcodeproj">
500476
</BuildableReference>
501477
</TestableReference>
502-
<TestableReference
503-
skipped = "NO">
504-
<BuildableReference
505-
BuildableIdentifier = "primary"
506-
BlueprintIdentifier = "C1FFAF7F213323CC00C50C1D"
507-
BuildableName = "OmniKitTests.xctest"
508-
BlueprintName = "OmniKitTests"
509-
ReferencedContainer = "container:rileylink_ios/RileyLink.xcodeproj">
510-
</BuildableReference>
511-
</TestableReference>
512478
<TestableReference
513479
skipped = "NO">
514480
<BuildableReference
@@ -549,6 +515,26 @@
549515
ReferencedContainer = "container:G7SensorKit/G7SensorKit.xcodeproj">
550516
</BuildableReference>
551517
</TestableReference>
518+
<TestableReference
519+
skipped = "NO">
520+
<BuildableReference
521+
BuildableIdentifier = "primary"
522+
BlueprintIdentifier = "C13CC34029C7B73A007F25DE"
523+
BuildableName = "MinimedKitTests.xctest"
524+
BlueprintName = "MinimedKitTests"
525+
ReferencedContainer = "container:MinimedKit/MinimedKit.xcodeproj">
526+
</BuildableReference>
527+
</TestableReference>
528+
<TestableReference
529+
skipped = "NO">
530+
<BuildableReference
531+
BuildableIdentifier = "primary"
532+
BlueprintIdentifier = "C12ED9C929C7DBA900435701"
533+
BuildableName = "OmniKitTests.xctest"
534+
BlueprintName = "OmniKitTests"
535+
ReferencedContainer = "container:OmniKit/OmniKit.xcodeproj">
536+
</BuildableReference>
537+
</TestableReference>
552538
</Testables>
553539
</TestAction>
554540
<LaunchAction

MinimedKit

Submodule MinimedKit added at 8491926

NightscoutAPIClient

NightscoutService

Submodule NightscoutService updated 38 files

OmniKit

Submodule OmniKit added at c1e0d39

OverrideAssetsWatchApp.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@
7575
"size" : "51x51",
7676
"subtype" : "45mm"
7777
},
78+
{
79+
"idiom" : "watch",
80+
"role" : "appLauncher",
81+
"scale" : "2x",
82+
"size" : "54x54",
83+
"subtype" : "49mm"
84+
},
7885
{
7986
"filename" : "icon_86pt@2x.png",
8087
"idiom" : "watch",
@@ -106,6 +113,13 @@
106113
"size" : "117x117",
107114
"subtype" : "45mm"
108115
},
116+
{
117+
"idiom" : "watch",
118+
"role" : "quickLook",
119+
"scale" : "2x",
120+
"size" : "129x129",
121+
"subtype" : "49mm"
122+
},
109123
{
110124
"filename" : "Icon.png",
111125
"idiom" : "watch-marketing",

Scripts/export_localizations.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,28 @@ set -u
55

66
: "$LOKALISE_TOKEN"
77

8-
LANGUAGES=(ar es ru en zh-Hans nl fr de it nb pl ru es ja pt-BR vi da sv fi ro tr he sk)
8+
LANGUAGES=(ar cs ru en zh-Hans nl fr de it nb pl ru es ja pt-BR vi da sv fi ro tr he sk)
99

1010
argstring="${LANGUAGES[@]/#/-exportLanguage }"
1111
IFS=" "; args=( $=argstring )
1212

13-
xcodebuild -exportLocalizations -localizationPath xclocs $args
13+
xcodebuild -scheme LoopWorkspace -exportLocalizations -localizationPath xclocs $args
1414

15-
mkdir -p xliff
16-
find xclocs -name '*.xliff' -exec cp {} xliff \;
15+
mkdir -p xliff_out
16+
find xclocs -name '*.xliff' -exec cp {} xliff_out \;
1717

18-
cd xliff
18+
cd xliff_out
1919

2020
foreach lang in $LANGUAGES
2121

22-
lang_iso=$(sed "s/zh-Hans/zh_Hans_CN/g; s/pt-BR/pt_BR/g" <<<"$lang")
22+
lang_iso=$(sed "s/zh-Hans/zh_Hans/g; s/pt-BR/pt_BR/g" <<<"$lang")
2323

2424
lokalise2 \
2525
--token $LOKALISE_TOKEN \
26-
--project-id 8069387863cdd837d11dd0.82955128 \
26+
--convert-placeholders=false \
27+
--project-id 414338966417c70d7055e2.75119857 \
2728
file upload \
2829
--file ${lang}.xliff \
30+
--cleanup-mode \
2931
--lang-iso ${lang_iso}
3032
end

Scripts/import_localizations.sh

Lines changed: 37 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,43 +14,65 @@ set -u
1414
date=`date`
1515

1616
# Fetch translations from Lokalise
17+
rm -rf xliff_in
1718
lokalise2 \
1819
--token "$LOKALISE_TOKEN" \
19-
--project-id "8069387863cdd837d11dd0.82955128" \
20+
--project-id "414338966417c70d7055e2.75119857" \
2021
file download \
2122
--format xliff \
2223
--bundle-structure "%LANG_ISO%.%FORMAT%" \
2324
--original-filenames=false \
25+
--placeholder-format ios \
2426
--export-empty-as skip \
2527
--replace-breaks=false \
26-
--unzip-to ./xliff
28+
--unzip-to ./xliff_in
2729

30+
projects=(LoopKit:AmplitudeService:dev LoopKit:CGMBLEKit:dev LoopKit:G7SensorKit:main LoopKit:LogglyService:dev LoopKit:Loop:dev LoopKit:LoopKit:dev LoopKit:LoopOnboarding:dev LoopKit:LoopSupport:dev LoopKit:NightscoutAPIClient:master ps2:NightscoutService:dev LoopKit:OmniBLE:dev LoopKit:TidepoolKit:dev LoopKit:TidepoolService:dev LoopKit:dexcom-share-client-swift:dev ps2:rileylink_ios:dev LoopKit:OmniKit:main LoopKit:MinimedKit:main)
31+
32+
for project in ${projects}; do
33+
echo "Prepping $project"
34+
IFS=":" read user dir branch <<< "$project"
35+
echo "parts = $user $dir $branch"
36+
cd $dir
37+
git checkout $branch
38+
git branch -D translations || true
39+
cd -
40+
done
2841

2942
# Build Loop
30-
set -o pipefail && time xcodebuild -workspace Loop.xcworkspace -scheme 'Loop (Workspace)' build | xcpretty
43+
set -o pipefail && time xcodebuild -workspace LoopWorkspace.xcworkspace -scheme 'LoopWorkspace' build | xcpretty
3144

3245

3346
# Apply translations
34-
foreach file in xliff/*.xliff
35-
xcodebuild -workspace Loop.xcworkspace -scheme "Loop (Workspace)" -importLocalizations -localizationPath $file
47+
foreach file in xliff_in/*.xliff
48+
xcodebuild -workspace LoopWorkspace.xcworkspace -scheme "LoopWorkspace" -importLocalizations -localizationPath $file
3649
end
3750

3851

3952
# Generate branches, commit and push.
40-
projects=(LoopKit:AmplitudeService:dev LoopKit:CGMBLEKit:dev LoopKit:G7SensorKit:main LoopKit:LogglyService:dev LoopKit:Loop:dev LoopKit:LoopKit:dev LoopKit:LoopOnboarding:dev LoopKit:LoopSupport:dev LoopKit:NightscoutAPIClient:master ps2:NightscoutService:dev LoopKit:OmniBLE:dev LoopKit:TidepoolKit:dev LoopKit:TidepoolService:dev LoopKit:dexcom-share-client-swift:dev ps2:rileylink_ios:dev)
4153
for project in ${projects}; do
42-
echo "Working on $project"
54+
echo "Commiting $project"
4355
IFS=":" read user dir branch <<< "$project"
4456
echo "parts = $user $dir $branch"
4557
cd $dir
46-
set +e
47-
git checkout -b translations
58+
git checkout -b translations || true
4859
git add .
49-
git commit -am "Updated translations from Lokalise on ${date}"
50-
git push -f
51-
pr=$(gh pr create -B $branch -R $user/$dir --fill 2>&1 | grep http)
52-
echo "PR = $pr"
53-
open $pr
54-
cd ..
60+
if git commit -am "Updated translations from Lokalise on ${date}"; then
61+
git push -f
62+
pr=$(gh pr create -B $branch -R $user/$dir --fill 2>&1 | grep http)
63+
echo "PR = $pr"
64+
open $pr
65+
fi
66+
cd -
5567
done
5668

69+
# Reset
70+
#for project in ${projects}; do
71+
# echo "Commiting $project"
72+
# IFS=":" read user dir branch <<< "$project"
73+
# echo "parts = $user $dir $branch"
74+
# cd $dir
75+
# git checkout $branch
76+
# git pull
77+
# cd -
78+
#done

Scripts/update_submodule_refs.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/zsh
2+
3+
projects=(LoopKit:AmplitudeService:dev LoopKit:CGMBLEKit:dev LoopKit:G7SensorKit:main LoopKit:LogglyService:dev LoopKit:Loop:dev LoopKit:LoopKit:dev LoopKit:LoopOnboarding:dev LoopKit:LoopSupport:dev LoopKit:NightscoutAPIClient:master ps2:NightscoutService:dev LoopKit:OmniBLE:dev LoopKit:TidepoolKit:dev LoopKit:TidepoolService:dev LoopKit:dexcom-share-client-swift:dev ps2:rileylink_ios:dev LoopKit:OmniKit:main LoopKit:MinimedKit:main)
4+
5+
for project in ${projects}; do
6+
echo "Updating to $project"
7+
IFS=":" read user dir branch <<< "$project"
8+
echo "Updating to $branch on $user/$project"
9+
cd $dir
10+
git checkout $branch
11+
git pull
12+
cd -
13+
done
14+

TidepoolKit

Submodule TidepoolKit updated 38 files

dexcom-share-client-swift

rileylink_ios

Submodule rileylink_ios updated 644 files

0 commit comments

Comments
 (0)