Skip to content

Merge dev into main for 3.2.1 release. #46

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 17 commits into from
Mar 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@
[submodule "TidepoolKit"]
path = TidepoolKit
url = https://github.com/LoopKit/TidepoolKit.git
[submodule "OmniKit"]
path = OmniKit
url = https://github.com/LoopKit/OmniKit.git
[submodule "MinimedKit"]
path = MinimedKit
url = https://github.com/LoopKit/MinimedKit.git
2 changes: 1 addition & 1 deletion CGMBLEKit
Submodule CGMBLEKit updated 86 files
+1 −1 CGMBLEKit Example/es.lproj/Main.strings
+1 −1 CGMBLEKit Example/nl.lproj/Main.strings
+1 −1 CGMBLEKit Example/pl.lproj/Localizable.strings
+1 −1 CGMBLEKit Example/sv.lproj/Main.strings
+0 −9 CGMBLEKit Example/zh-Hans-CN.lproj/Localizable.strings
+0 −27 CGMBLEKit Example/zh-Hans-CN.lproj/Main.strings
+6 −0 CGMBLEKit Example/zh-Hans.lproj/Main.strings
+31 −15 CGMBLEKit.xcodeproj/project.pbxproj
+3 −0 CGMBLEKit/ar.lproj/Localizable.strings
+18 −0 CGMBLEKit/cs.lproj/Localizable.strings
+5 −5 CGMBLEKit/da.lproj/Localizable.strings
+4 −4 CGMBLEKit/de.lproj/Localizable.strings
+3 −3 CGMBLEKit/es.lproj/Localizable.strings
+2 −2 CGMBLEKit/fi.lproj/Localizable.strings
+3 −3 CGMBLEKit/fr.lproj/Localizable.strings
+5 −5 CGMBLEKit/he.lproj/Localizable.strings
+9 −0 CGMBLEKit/hi.lproj/Localizable.strings
+5 −5 CGMBLEKit/it.lproj/Localizable.strings
+3 −3 CGMBLEKit/ja.lproj/Localizable.strings
+4 −4 CGMBLEKit/nb.lproj/Localizable.strings
+5 −5 CGMBLEKit/nl.lproj/Localizable.strings
+3 −3 CGMBLEKit/pl.lproj/Localizable.strings
+3 −3 CGMBLEKit/pt-BR.lproj/Localizable.strings
+6 −6 CGMBLEKit/ro.lproj/Localizable.strings
+3 −3 CGMBLEKit/ru.lproj/Localizable.strings
+1 −1 CGMBLEKit/sv.lproj/Localizable.strings
+3 −3 CGMBLEKit/vi.lproj/Localizable.strings
+0 −30 CGMBLEKit/zh-Hans-CN.lproj/Localizable.strings
+16 −0 CGMBLEKitUI/ar.lproj/Localizable.strings
+3 −0 CGMBLEKitUI/ar.lproj/TransmitterManagerSetup.strings
+12 −0 CGMBLEKitUI/cs.lproj/Localizable.strings
+2 −2 CGMBLEKitUI/da.lproj/Localizable.strings
+4 −4 CGMBLEKitUI/de.lproj/Localizable.strings
+3 −3 CGMBLEKitUI/es.lproj/Localizable.strings
+1 −1 CGMBLEKitUI/fi.lproj/TransmitterManagerSetup.strings
+1 −1 CGMBLEKitUI/fr.lproj/Localizable.strings
+1 −1 CGMBLEKitUI/fr.lproj/TransmitterManagerSetup.strings
+1 −1 CGMBLEKitUI/he.lproj/Localizable.strings
+15 −0 CGMBLEKitUI/hi.lproj/Localizable.strings
+3 −3 CGMBLEKitUI/it.lproj/Localizable.strings
+2 −2 CGMBLEKitUI/ja.lproj/Localizable.strings
+1 −1 CGMBLEKitUI/ja.lproj/TransmitterManagerSetup.strings
+1 −1 CGMBLEKitUI/nb.lproj/TransmitterManagerSetup.strings
+2 −2 CGMBLEKitUI/nl.lproj/Localizable.strings
+1 −1 CGMBLEKitUI/pl.lproj/Localizable.strings
+1 −1 CGMBLEKitUI/pl.lproj/TransmitterManagerSetup.strings
+2 −2 CGMBLEKitUI/pt-BR.lproj/Localizable.strings
+1 −1 CGMBLEKitUI/pt-BR.lproj/TransmitterManagerSetup.strings
+6 −6 CGMBLEKitUI/ro.lproj/Localizable.strings
+1 −1 CGMBLEKitUI/ro.lproj/TransmitterManagerSetup.strings
+4 −4 CGMBLEKitUI/ru.lproj/Localizable.strings
+1 −1 CGMBLEKitUI/ru.lproj/TransmitterManagerSetup.strings
+4 −4 CGMBLEKitUI/sv.lproj/Localizable.strings
+2 −2 CGMBLEKitUI/sv.lproj/TransmitterManagerSetup.strings
+2 −2 CGMBLEKitUI/tr.lproj/Localizable.strings
+1 −1 CGMBLEKitUI/vi.lproj/Localizable.strings
+2 −2 CGMBLEKitUI/vi.lproj/TransmitterManagerSetup.strings
+0 −46 CGMBLEKitUI/zh-Hans-CN.lproj/Localizable.strings
+0 −24 CGMBLEKitUI/zh-Hans-CN.lproj/TransmitterManagerSetup.strings
+3 −0 ResetTransmitter/ar.lproj/Localizable.strings
+3 −0 ResetTransmitter/cs.lproj/Localizable.strings
+1 −1 ResetTransmitter/da.lproj/InfoPlist.strings
+1 −1 ResetTransmitter/da.lproj/Localizable.strings
+1 −1 ResetTransmitter/de.lproj/Localizable.strings
+1 −1 ResetTransmitter/de.lproj/Main.strings
+1 −1 ResetTransmitter/es.lproj/Localizable.strings
+1 −1 ResetTransmitter/es.lproj/Main.strings
+3 −0 ResetTransmitter/he.lproj/InfoPlist.strings
+3 −0 ResetTransmitter/hi.lproj/Localizable.strings
+3 −0 ResetTransmitter/ja.lproj/InfoPlist.strings
+1 −1 ResetTransmitter/nb.lproj/Localizable.strings
+1 −1 ResetTransmitter/nb.lproj/Main.strings
+1 −1 ResetTransmitter/nl.lproj/InfoPlist.strings
+1 −1 ResetTransmitter/nl.lproj/Main.strings
+3 −0 ResetTransmitter/pt-BR.lproj/InfoPlist.strings
+1 −1 ResetTransmitter/pt-BR.lproj/Localizable.strings
+1 −1 ResetTransmitter/pt-BR.lproj/Main.strings
+1 −1 ResetTransmitter/ro.lproj/Localizable.strings
+1 −1 ResetTransmitter/ro.lproj/Main.strings
+1 −1 ResetTransmitter/ru.lproj/Localizable.strings
+1 −1 ResetTransmitter/tr.lproj/Localizable.strings
+3 −0 ResetTransmitter/vi.lproj/InfoPlist.strings
+1 −1 ResetTransmitter/vi.lproj/Localizable.strings
+1 −1 ResetTransmitter/vi.lproj/Main.strings
+0 −16 ResetTransmitter/zh-Hans-CN.lproj/Localizable.strings
+0 −24 ResetTransmitter/zh-Hans-CN.lproj/Main.strings
2 changes: 1 addition & 1 deletion G7SensorKit
Submodule G7SensorKit updated 55 files
+101 −103 G7SensorKit.xcodeproj/project.pbxproj
+0 −3 G7SensorKit/cs.lproj/Localizable.strings
+0 −0 G7SensorKit/da.lproj/Localizable.strings
+0 −0 G7SensorKit/de.lproj/Localizable.strings
+7 −0 G7SensorKit/en.lproj/Localizable.strings
+0 −0 G7SensorKit/es.lproj/Localizable.strings
+12 −0 G7SensorKit/fi.lproj/Localizable.strings
+0 −0 G7SensorKit/fr.lproj/Localizable.strings
+12 −0 G7SensorKit/he.lproj/Localizable.strings
+0 −3 G7SensorKit/hi.lproj/Localizable.strings
+0 −0 G7SensorKit/it.lproj/Localizable.strings
+12 −0 G7SensorKit/ja.lproj/Localizable.strings
+0 −0 G7SensorKit/nb.lproj/Localizable.strings
+0 −0 G7SensorKit/nl.lproj/Localizable.strings
+0 −0 G7SensorKit/pl.lproj/Localizable.strings
+12 −0 G7SensorKit/pt-BR.lproj/Localizable.strings
+1 −1 G7SensorKit/ro.lproj/Localizable.strings
+0 −0 G7SensorKit/ru.lproj/Localizable.strings
+0 −0 G7SensorKit/sk.lproj/Localizable.strings
+12 −0 G7SensorKit/sv.lproj/Localizable.strings
+1 −1 G7SensorKit/tr.lproj/Localizable.strings
+12 −0 G7SensorKit/vi.lproj/Localizable.strings
+20 −0 G7SensorKitUI/LocalizedString.swift
+6 −106 G7SensorKitUI/ar.lproj/Localizable.strings
+15 −0 G7SensorKitUI/cs.lproj/Localizable.strings
+1 −1 G7SensorKitUI/da.lproj/Localizable.strings
+1 −1 G7SensorKitUI/de.lproj/Localizable.strings
+1 −118 G7SensorKitUI/en.lproj/Localizable.strings
+3 −3 G7SensorKitUI/es.lproj/Localizable.strings
+15 −82 G7SensorKitUI/fi.lproj/Localizable.strings
+1 −1 G7SensorKitUI/fr.lproj/Localizable.strings
+26 −2 G7SensorKitUI/he.lproj/Localizable.strings
+2 −2 G7SensorKitUI/hi.lproj/Localizable.strings
+2 −2 G7SensorKitUI/it.lproj/Localizable.strings
+12 −94 G7SensorKitUI/ja.lproj/Localizable.strings
+1 −1 G7SensorKitUI/nb.lproj/Localizable.strings
+2 −2 G7SensorKitUI/nl.lproj/Localizable.strings
+4 −4 G7SensorKitUI/pl.lproj/Localizable.strings
+7 −89 G7SensorKitUI/pt-BR.lproj/Localizable.strings
+3 −3 G7SensorKitUI/ro.lproj/Localizable.strings
+8 −8 G7SensorKitUI/ru.lproj/Localizable.strings
+1 −1 G7SensorKitUI/sk.lproj/Localizable.strings
+15 −82 G7SensorKitUI/sv.lproj/Localizable.strings
+1 −1 G7SensorKitUI/tr.lproj/Localizable.strings
+12 −94 G7SensorKitUI/vi.lproj/Localizable.strings
+3 −112 G7SensorKitUI/zh-Hans.lproj/Localizable.strings
+0 −24 de.lproj/Localizable.strings
+0 −24 en.lproj/Localizable.strings
+0 −24 fi.lproj/Localizable.strings
+0 −6 he.lproj/Localizable.strings
+0 −24 ja.lproj/Localizable.strings
+0 −24 pt-BR.lproj/Localizable.strings
+0 −24 sv.lproj/Localizable.strings
+0 −24 vi.lproj/Localizable.strings
+0 −24 zh-Hans.lproj/Localizable.strings
2 changes: 1 addition & 1 deletion Loop
Submodule Loop updated 234 files
2 changes: 1 addition & 1 deletion LoopKit
Submodule LoopKit updated 177 files
6 changes: 6 additions & 0 deletions LoopWorkspace.xcworkspace/contents.xcworkspacedata

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

Original file line number Diff line number Diff line change
Expand Up @@ -140,24 +140,10 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C136AA5D231187B0008A320D"
BuildableName = "MinimedKitPlugin.loopplugin"
BlueprintName = "MinimedKitPlugin"
ReferencedContainer = "container:rileylink_ios/RileyLink.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C1B3830A1CD0665D00CE7782"
BuildableName = "NightscoutUploadKit.framework"
BlueprintName = "NightscoutUploadKit"
ReferencedContainer = "container:rileylink_ios/RileyLink.xcodeproj">
BlueprintIdentifier = "A99C713023396CB100AB9035"
BuildableName = "NightscoutServiceKitPlugin.loopplugin"
BlueprintName = "NightscoutServiceKitPlugin"
ReferencedContainer = "container:NightscoutService/NightscoutService.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
Expand All @@ -168,10 +154,10 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A99C713023396CB100AB9035"
BuildableName = "NightscoutServiceKitPlugin.loopplugin"
BlueprintName = "NightscoutServiceKitPlugin"
ReferencedContainer = "container:NightscoutService/NightscoutService.xcodeproj">
BlueprintIdentifier = "C1E34B5A29C7AD01009A50A5"
BuildableName = "MinimedKitPlugin.loopplugin"
BlueprintName = "MinimedKitPlugin"
ReferencedContainer = "container:MinimedKit/MinimedKit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
Expand All @@ -182,10 +168,10 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C136AA2923116E32008A320D"
BlueprintIdentifier = "C124021629C7D93D00B32844"
BuildableName = "OmniKitPlugin.loopplugin"
BlueprintName = "OmniKitPlugin"
ReferencedContainer = "container:rileylink_ios/RileyLink.xcodeproj">
ReferencedContainer = "container:OmniKit/OmniKit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
Expand Down Expand Up @@ -439,16 +425,6 @@
ReferencedContainer = "container:LoopKit/LoopKit.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C10D9BC91C8269D500378342"
BuildableName = "MinimedKitTests.xctest"
BlueprintName = "MinimedKitTests"
ReferencedContainer = "container:rileylink_ios/RileyLink.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
Expand Down Expand Up @@ -499,16 +475,6 @@
ReferencedContainer = "container:LoopKit/LoopKit.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C1FFAF7F213323CC00C50C1D"
BuildableName = "OmniKitTests.xctest"
BlueprintName = "OmniKitTests"
ReferencedContainer = "container:rileylink_ios/RileyLink.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
Expand Down Expand Up @@ -549,6 +515,26 @@
ReferencedContainer = "container:G7SensorKit/G7SensorKit.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C13CC34029C7B73A007F25DE"
BuildableName = "MinimedKitTests.xctest"
BlueprintName = "MinimedKitTests"
ReferencedContainer = "container:MinimedKit/MinimedKit.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C12ED9C929C7DBA900435701"
BuildableName = "OmniKitTests.xctest"
BlueprintName = "OmniKitTests"
ReferencedContainer = "container:OmniKit/OmniKit.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand Down
1 change: 1 addition & 0 deletions MinimedKit
Submodule MinimedKit added at 849192
2 changes: 1 addition & 1 deletion NightscoutAPIClient
2 changes: 1 addition & 1 deletion NightscoutService
Submodule NightscoutService updated 38 files
+18 −5 NightscoutService.xcodeproj/project.pbxproj
+14 −0 NightscoutServiceKit/ar.lproj/Localizable.strings
+0 −0 NightscoutServiceKit/cs.lproj/Localizable.strings
+2 −2 NightscoutServiceKit/da.lproj/Localizable.strings
+1 −1 NightscoutServiceKit/de.lproj/Localizable.strings
+3 −0 NightscoutServiceKit/fi.lproj/Localizable.strings
+12 −1 NightscoutServiceKit/he.lproj/Localizable.strings
+1 −1 NightscoutServiceKit/it.lproj/Localizable.strings
+11 −0 NightscoutServiceKit/ja.lproj/Localizable.strings
+1 −1 NightscoutServiceKit/nb.lproj/Localizable.strings
+1 −1 NightscoutServiceKit/pl.lproj/Localizable.strings
+11 −0 NightscoutServiceKit/pt-BR.lproj/Localizable.strings
+3 −0 NightscoutServiceKit/ro.lproj/Localizable.strings
+3 −0 NightscoutServiceKit/sk.lproj/Localizable.strings
+3 −0 NightscoutServiceKit/sv.lproj/Localizable.strings
+11 −0 NightscoutServiceKit/vi.lproj/Localizable.strings
+18 −0 NightscoutServiceKitUI/ar.lproj/Localizable.strings
+33 −0 NightscoutServiceKitUI/cs.lproj/Localizable.strings
+4 −4 NightscoutServiceKitUI/da.lproj/Localizable.strings
+3 −3 NightscoutServiceKitUI/de.lproj/Localizable.strings
+2 −2 NightscoutServiceKitUI/es.lproj/Localizable.strings
+4 −4 NightscoutServiceKitUI/fi.lproj/Localizable.strings
+1 −1 NightscoutServiceKitUI/fr.lproj/Localizable.strings
+19 −1 NightscoutServiceKitUI/he.lproj/Localizable.strings
+6 −0 NightscoutServiceKitUI/hi.lproj/Localizable.strings
+2 −2 NightscoutServiceKitUI/it.lproj/Localizable.strings
+15 −3 NightscoutServiceKitUI/ja.lproj/Localizable.strings
+2 −2 NightscoutServiceKitUI/nb.lproj/Localizable.strings
+3 −3 NightscoutServiceKitUI/nl.lproj/Localizable.strings
+2 −2 NightscoutServiceKitUI/pl.lproj/Localizable.strings
+14 −2 NightscoutServiceKitUI/pt-BR.lproj/Localizable.strings
+14 −5 NightscoutServiceKitUI/ro.lproj/Localizable.strings
+3 −3 NightscoutServiceKitUI/ru.lproj/Localizable.strings
+36 −0 NightscoutServiceKitUI/sk.lproj/Localizable.strings
+4 −4 NightscoutServiceKitUI/sv.lproj/Localizable.strings
+13 −1 NightscoutServiceKitUI/vi.lproj/Localizable.strings
+0 −15 NightscoutServiceKitUI/zh-Hans-CN.lproj/Localizable.strings
+12 −0 NightscoutServiceKitUI/zh-Hans.lproj/Localizable.strings
1 change: 1 addition & 0 deletions OmniKit
Submodule OmniKit added at c1e0d3
14 changes: 14 additions & 0 deletions OverrideAssetsWatchApp.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@
"size" : "51x51",
"subtype" : "45mm"
},
{
"idiom" : "watch",
"role" : "appLauncher",
"scale" : "2x",
"size" : "54x54",
"subtype" : "49mm"
},
{
"filename" : "icon_86pt@2x.png",
"idiom" : "watch",
Expand Down Expand Up @@ -106,6 +113,13 @@
"size" : "117x117",
"subtype" : "45mm"
},
{
"idiom" : "watch",
"role" : "quickLook",
"scale" : "2x",
"size" : "129x129",
"subtype" : "49mm"
},
{
"filename" : "Icon.png",
"idiom" : "watch-marketing",
Expand Down
16 changes: 9 additions & 7 deletions Scripts/export_localizations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,28 @@ set -u

: "$LOKALISE_TOKEN"

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

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

xcodebuild -exportLocalizations -localizationPath xclocs $args
xcodebuild -scheme LoopWorkspace -exportLocalizations -localizationPath xclocs $args

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

cd xliff
cd xliff_out

foreach lang in $LANGUAGES

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

lokalise2 \
--token $LOKALISE_TOKEN \
--project-id 8069387863cdd837d11dd0.82955128 \
--convert-placeholders=false \
--project-id 414338966417c70d7055e2.75119857 \
file upload \
--file ${lang}.xliff \
--cleanup-mode \
--lang-iso ${lang_iso}
end
52 changes: 37 additions & 15 deletions Scripts/import_localizations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,65 @@ set -u
date=`date`

# Fetch translations from Lokalise
rm -rf xliff_in
lokalise2 \
--token "$LOKALISE_TOKEN" \
--project-id "8069387863cdd837d11dd0.82955128" \
--project-id "414338966417c70d7055e2.75119857" \
file download \
--format xliff \
--bundle-structure "%LANG_ISO%.%FORMAT%" \
--original-filenames=false \
--placeholder-format ios \
--export-empty-as skip \
--replace-breaks=false \
--unzip-to ./xliff
--unzip-to ./xliff_in

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)

for project in ${projects}; do
echo "Prepping $project"
IFS=":" read user dir branch <<< "$project"
echo "parts = $user $dir $branch"
cd $dir
git checkout $branch
git branch -D translations || true
cd -
done

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


# Apply translations
foreach file in xliff/*.xliff
xcodebuild -workspace Loop.xcworkspace -scheme "Loop (Workspace)" -importLocalizations -localizationPath $file
foreach file in xliff_in/*.xliff
xcodebuild -workspace LoopWorkspace.xcworkspace -scheme "LoopWorkspace" -importLocalizations -localizationPath $file
end


# Generate branches, commit and push.
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)
for project in ${projects}; do
echo "Working on $project"
echo "Commiting $project"
IFS=":" read user dir branch <<< "$project"
echo "parts = $user $dir $branch"
cd $dir
set +e
git checkout -b translations
git checkout -b translations || true
git add .
git commit -am "Updated translations from Lokalise on ${date}"
git push -f
pr=$(gh pr create -B $branch -R $user/$dir --fill 2>&1 | grep http)
echo "PR = $pr"
open $pr
cd ..
if git commit -am "Updated translations from Lokalise on ${date}"; then
git push -f
pr=$(gh pr create -B $branch -R $user/$dir --fill 2>&1 | grep http)
echo "PR = $pr"
open $pr
fi
cd -
done

# Reset
#for project in ${projects}; do
# echo "Commiting $project"
# IFS=":" read user dir branch <<< "$project"
# echo "parts = $user $dir $branch"
# cd $dir
# git checkout $branch
# git pull
# cd -
#done
14 changes: 14 additions & 0 deletions Scripts/update_submodule_refs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/zsh

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)

for project in ${projects}; do
echo "Updating to $project"
IFS=":" read user dir branch <<< "$project"
echo "Updating to $branch on $user/$project"
cd $dir
git checkout $branch
git pull
cd -
done

2 changes: 1 addition & 1 deletion TidepoolKit
Submodule TidepoolKit updated 38 files
+6 −0 TidepoolKit Example/ar.lproj/Localizable.strings
+3 −0 TidepoolKit Example/cs.lproj/InfoPlist.strings
+15 −0 TidepoolKit Example/cs.lproj/Localizable.strings
+27 −0 TidepoolKit Example/cs.lproj/Main.strings
+1 −1 TidepoolKit Example/de.lproj/InfoPlist.strings
+1 −1 TidepoolKit Example/es.lproj/InfoPlist.strings
+1 −1 TidepoolKit Example/es.lproj/Localizable.strings
+18 −0 TidepoolKit Example/fi.lproj/Localizable.strings
+3 −0 TidepoolKit Example/he.lproj/Main.strings
+1 −1 TidepoolKit Example/it.lproj/InfoPlist.strings
+12 −0 TidepoolKit Example/ja.lproj/Localizable.strings
+1 −1 TidepoolKit Example/nb.lproj/InfoPlist.strings
+2 −2 TidepoolKit Example/nb.lproj/Localizable.strings
+1 −1 TidepoolKit Example/nl.lproj/Localizable.strings
+1 −1 TidepoolKit Example/pl.lproj/InfoPlist.strings
+13 −1 TidepoolKit Example/pl.lproj/Localizable.strings
+1 −1 TidepoolKit Example/pl.lproj/Main.strings
+9 −0 TidepoolKit Example/pt-BR.lproj/Localizable.strings
+1 −1 TidepoolKit Example/ro.lproj/InfoPlist.strings
+24 −0 TidepoolKit Example/ro.lproj/Main.strings
+2 −2 TidepoolKit Example/ru.lproj/Localizable.strings
+3 −0 TidepoolKit Example/ru.lproj/Main.strings
+18 −0 TidepoolKit Example/sv.lproj/Localizable.strings
+9 −0 TidepoolKit Example/vi.lproj/Localizable.strings
+3 −0 TidepoolKit Example/zh-Hans.lproj/Localizable.strings
+46 −0 TidepoolKit.xcodeproj/project.pbxproj
+6 −0 TidepoolKit/cs.lproj/Localizable.strings
+8 −8 TidepoolKit/nl.lproj/Localizable.strings
+6 −0 TidepoolKit/pl.lproj/Localizable.strings
+12 −0 TidepoolKitUI/cs.lproj/Localizable.strings
+1 −1 TidepoolKitUI/da.lproj/Localizable.strings
+2 −2 TidepoolKitUI/de.lproj/Localizable.strings
+1 −1 TidepoolKitUI/es.lproj/Localizable.strings
+3 −0 TidepoolKitUI/fi.lproj/Localizable.strings
+1 −1 TidepoolKitUI/nb.lproj/Localizable.strings
+4 −1 TidepoolKitUI/pl.lproj/Localizable.strings
+5 −2 TidepoolKitUI/ro.lproj/Localizable.strings
+3 −0 TidepoolKitUI/sv.lproj/Localizable.strings
2 changes: 1 addition & 1 deletion dexcom-share-client-swift
Submodule dexcom-share-client-swift updated 31 files
+13 −5 ShareClient.xcodeproj/project.pbxproj
+3 −0 ShareClient/ar.lproj/Localizable.strings
+3 −0 ShareClient/cs.lproj/Localizable.strings
+1 −1 ShareClient/fr.lproj/Localizable.strings
+1 −1 ShareClient/it.lproj/Localizable.strings
+1 −1 ShareClient/ja.lproj/Localizable.strings
+1 −1 ShareClient/nb.lproj/Localizable.strings
+1 −1 ShareClient/nl.lproj/Localizable.strings
+1 −1 ShareClient/ru.lproj/Localizable.strings
+1 −1 ShareClient/sv.lproj/Localizable.strings
+0 −10 ShareClient/zh-Hans-CN.lproj/Localizable.strings
+13 −0 ShareClientUI/ar.lproj/Localizable.strings
+6 −0 ShareClientUI/cs.lproj/Localizable.strings
+2 −2 ShareClientUI/da.lproj/Localizable.strings
+2 −2 ShareClientUI/de.lproj/Localizable.strings
+2 −2 ShareClientUI/es.lproj/Localizable.strings
+1 −1 ShareClientUI/fr.lproj/Localizable.strings
+1 −1 ShareClientUI/he.lproj/Localizable.strings
+9 −0 ShareClientUI/hi.lproj/Localizable.strings
+2 −2 ShareClientUI/it.lproj/Localizable.strings
+1 −1 ShareClientUI/ja.lproj/Localizable.strings
+1 −1 ShareClientUI/nb.lproj/Localizable.strings
+1 −1 ShareClientUI/nl.lproj/Localizable.strings
+1 −1 ShareClientUI/pt-BR.lproj/Localizable.strings
+4 −4 ShareClientUI/ro.lproj/Localizable.strings
+6 −6 ShareClientUI/ru.lproj/Localizable.strings
+1 −1 ShareClientUI/sv.lproj/Localizable.strings
+1 −1 ShareClientUI/tr.lproj/Localizable.strings
+1 −1 ShareClientUI/vi.lproj/Localizable.strings
+0 −40 ShareClientUI/zh-Hans-CN.lproj/Localizable.strings
+3 −0 ShareClientUI/zh-Hans.lproj/Localizable.strings
2 changes: 1 addition & 1 deletion rileylink_ios
Submodule rileylink_ios updated 644 files