Skip to content

Commit dc45cd3

Browse files
authored
Merge pull request #45 from LoopKit/migrate-pumpmanagers-out
Migrate pumpmanagers out
2 parents 6387c5c + 5ffed7b commit dc45cd3

20 files changed

+71
-55
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

LoopKit

Submodule LoopKit updated 47 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 & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +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">
143+
BlueprintIdentifier = "A99C713023396CB100AB9035"
144+
BuildableName = "NightscoutServiceKitPlugin.loopplugin"
145+
BlueprintName = "NightscoutServiceKitPlugin"
146+
ReferencedContainer = "container:NightscoutService/NightscoutService.xcodeproj">
147147
</BuildableReference>
148148
</BuildActionEntry>
149149
<BuildActionEntry
@@ -154,10 +154,10 @@
154154
buildForAnalyzing = "YES">
155155
<BuildableReference
156156
BuildableIdentifier = "primary"
157-
BlueprintIdentifier = "A99C713023396CB100AB9035"
158-
BuildableName = "NightscoutServiceKitPlugin.loopplugin"
159-
BlueprintName = "NightscoutServiceKitPlugin"
160-
ReferencedContainer = "container:NightscoutService/NightscoutService.xcodeproj">
157+
BlueprintIdentifier = "C1E34B5A29C7AD01009A50A5"
158+
BuildableName = "MinimedKitPlugin.loopplugin"
159+
BlueprintName = "MinimedKitPlugin"
160+
ReferencedContainer = "container:MinimedKit/MinimedKit.xcodeproj">
161161
</BuildableReference>
162162
</BuildActionEntry>
163163
<BuildActionEntry
@@ -168,10 +168,10 @@
168168
buildForAnalyzing = "YES">
169169
<BuildableReference
170170
BuildableIdentifier = "primary"
171-
BlueprintIdentifier = "C136AA2923116E32008A320D"
171+
BlueprintIdentifier = "C124021629C7D93D00B32844"
172172
BuildableName = "OmniKitPlugin.loopplugin"
173173
BlueprintName = "OmniKitPlugin"
174-
ReferencedContainer = "container:rileylink_ios/RileyLink.xcodeproj">
174+
ReferencedContainer = "container:OmniKit/OmniKit.xcodeproj">
175175
</BuildableReference>
176176
</BuildActionEntry>
177177
<BuildActionEntry
@@ -425,16 +425,6 @@
425425
ReferencedContainer = "container:LoopKit/LoopKit.xcodeproj">
426426
</BuildableReference>
427427
</TestableReference>
428-
<TestableReference
429-
skipped = "NO">
430-
<BuildableReference
431-
BuildableIdentifier = "primary"
432-
BlueprintIdentifier = "C10D9BC91C8269D500378342"
433-
BuildableName = "MinimedKitTests.xctest"
434-
BlueprintName = "MinimedKitTests"
435-
ReferencedContainer = "container:rileylink_ios/RileyLink.xcodeproj">
436-
</BuildableReference>
437-
</TestableReference>
438428
<TestableReference
439429
skipped = "NO">
440430
<BuildableReference
@@ -485,16 +475,6 @@
485475
ReferencedContainer = "container:LoopKit/LoopKit.xcodeproj">
486476
</BuildableReference>
487477
</TestableReference>
488-
<TestableReference
489-
skipped = "NO">
490-
<BuildableReference
491-
BuildableIdentifier = "primary"
492-
BlueprintIdentifier = "C1FFAF7F213323CC00C50C1D"
493-
BuildableName = "OmniKitTests.xctest"
494-
BlueprintName = "OmniKitTests"
495-
ReferencedContainer = "container:rileylink_ios/RileyLink.xcodeproj">
496-
</BuildableReference>
497-
</TestableReference>
498478
<TestableReference
499479
skipped = "NO">
500480
<BuildableReference
@@ -535,6 +515,26 @@
535515
ReferencedContainer = "container:G7SensorKit/G7SensorKit.xcodeproj">
536516
</BuildableReference>
537517
</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>
538538
</Testables>
539539
</TestAction>
540540
<LaunchAction

MinimedKit

Submodule MinimedKit added at 3ede47e

NightscoutAPIClient

OmniKit

Submodule OmniKit added at b35b29b

Scripts/export_localizations.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,26 @@ 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

1313
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

2222
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 \
2930
--cleanup-mode \

Scripts/import_localizations.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,20 @@ set -u
1414
date=`date`
1515

1616
# Fetch translations from Lokalise
17-
rm -rf xliff
17+
rm -rf xliff_in
1818
lokalise2 \
1919
--token "$LOKALISE_TOKEN" \
20-
--project-id "8069387863cdd837d11dd0.82955128" \
20+
--project-id "414338966417c70d7055e2.75119857" \
2121
file download \
2222
--format xliff \
2323
--bundle-structure "%LANG_ISO%.%FORMAT%" \
2424
--original-filenames=false \
25+
--placeholder-format ios \
2526
--export-empty-as skip \
2627
--replace-breaks=false \
27-
--unzip-to ./xliff
28+
--unzip-to ./xliff_in
2829

29-
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)
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)
3031

3132
for project in ${projects}; do
3233
echo "Prepping $project"
@@ -43,7 +44,7 @@ set -o pipefail && time xcodebuild -workspace LoopWorkspace.xcworkspace -scheme
4344

4445

4546
# Apply translations
46-
foreach file in xliff/*.xliff
47+
foreach file in xliff_in/*.xliff
4748
xcodebuild -workspace LoopWorkspace.xcworkspace -scheme "LoopWorkspace" -importLocalizations -localizationPath $file
4849
end
4950

Scripts/update_submodule_refs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/zsh
22

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)
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)
44

55
for project in ${projects}; do
6-
echo "Prepping $project"
6+
echo "Updating to $project"
77
IFS=":" read user dir branch <<< "$project"
8-
echo "parts = $user $dir $branch"
8+
echo "Updating to $branch on $user/$project"
99
cd $dir
1010
git checkout $branch
1111
git pull

rileylink_ios

Submodule rileylink_ios updated 600 files

0 commit comments

Comments
 (0)