Skip to content

Commit 97d7bd2

Browse files
committed
Added Informations requested by apple
1 parent b0d21a8 commit 97d7bd2

9 files changed

Lines changed: 38 additions & 23 deletions

File tree

nightguard WatchKit App/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>967</string>
24+
<string>968</string>
2525
<key>NSAppTransportSecurity</key>
2626
<dict>
2727
<key>NSAllowsArbitraryLoads</key>

nightguard.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,7 +2152,7 @@
21522152
CODE_SIGN_ENTITLEMENTS = "nightguard WatchKit App/nightguard.entitlements";
21532153
CODE_SIGN_IDENTITY = "iPhone Developer";
21542154
CODE_SIGN_STYLE = Automatic;
2155-
CURRENT_PROJECT_VERSION = 967;
2155+
CURRENT_PROJECT_VERSION = 968;
21562156
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
21572157
INFOPLIST_FILE = "nightguard WatchKit App/Info.plist";
21582158
LD_RUNPATH_SEARCH_PATHS = (
@@ -2182,7 +2182,7 @@
21822182
CODE_SIGN_ENTITLEMENTS = "nightguard WatchKit App/nightguard.entitlements";
21832183
CODE_SIGN_IDENTITY = "iPhone Developer";
21842184
CODE_SIGN_STYLE = Automatic;
2185-
CURRENT_PROJECT_VERSION = 967;
2185+
CURRENT_PROJECT_VERSION = 968;
21862186
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
21872187
INFOPLIST_FILE = "nightguard WatchKit App/Info.plist";
21882188
LD_RUNPATH_SEARCH_PATHS = (
@@ -2209,7 +2209,7 @@
22092209
CODE_SIGN_ENTITLEMENTS = nightguard/scoutwatch.entitlements;
22102210
CODE_SIGN_IDENTITY = "iPhone Developer";
22112211
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
2212-
CURRENT_PROJECT_VERSION = 967;
2212+
CURRENT_PROJECT_VERSION = 968;
22132213
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
22142214
ENABLE_BITCODE = NO;
22152215
EXCLUDED_ARCHS = "";
@@ -2238,7 +2238,7 @@
22382238
CODE_SIGN_ENTITLEMENTS = nightguard/scoutwatch.entitlements;
22392239
CODE_SIGN_IDENTITY = "iPhone Developer";
22402240
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
2241-
CURRENT_PROJECT_VERSION = 967;
2241+
CURRENT_PROJECT_VERSION = 968;
22422242
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
22432243
ENABLE_BITCODE = NO;
22442244
INFOPLIST_FILE = nightguard/Info.plist;
@@ -2351,7 +2351,7 @@
23512351
CODE_SIGN_IDENTITY = "iPhone Developer";
23522352
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
23532353
CODE_SIGN_STYLE = Automatic;
2354-
CURRENT_PROJECT_VERSION = 967;
2354+
CURRENT_PROJECT_VERSION = 968;
23552355
GCC_C_LANGUAGE_STANDARD = gnu11;
23562356
GENERATE_INFOPLIST_FILE = YES;
23572357
INFOPLIST_FILE = "nightguard Widget Extension/Info.plist";
@@ -2391,7 +2391,7 @@
23912391
CODE_SIGN_IDENTITY = "iPhone Developer";
23922392
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
23932393
CODE_SIGN_STYLE = Automatic;
2394-
CURRENT_PROJECT_VERSION = 967;
2394+
CURRENT_PROJECT_VERSION = 968;
23952395
GCC_C_LANGUAGE_STANDARD = gnu11;
23962396
GENERATE_INFOPLIST_FILE = YES;
23972397
INFOPLIST_FILE = "nightguard Widget Extension/Info.plist";
@@ -2428,7 +2428,7 @@
24282428
CODE_SIGN_ENTITLEMENTS = "nightguard ComplicationExtension.entitlements";
24292429
CODE_SIGN_IDENTITY = "Apple Development";
24302430
CODE_SIGN_STYLE = Automatic;
2431-
CURRENT_PROJECT_VERSION = 967;
2431+
CURRENT_PROJECT_VERSION = 968;
24322432
GCC_C_LANGUAGE_STANDARD = gnu11;
24332433
GENERATE_INFOPLIST_FILE = YES;
24342434
INFOPLIST_FILE = "nightguard Complication/Info.plist";
@@ -2470,7 +2470,7 @@
24702470
CODE_SIGN_ENTITLEMENTS = "nightguard ComplicationExtension.entitlements";
24712471
CODE_SIGN_IDENTITY = "Apple Development";
24722472
CODE_SIGN_STYLE = Automatic;
2473-
CURRENT_PROJECT_VERSION = 967;
2473+
CURRENT_PROJECT_VERSION = 968;
24742474
GCC_C_LANGUAGE_STANDARD = gnu11;
24752475
GENERATE_INFOPLIST_FILE = YES;
24762476
INFOPLIST_FILE = "nightguard Complication/Info.plist";

nightguard/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<key>CFBundleSignature</key>
2626
<string>????</string>
2727
<key>CFBundleVersion</key>
28-
<string>967</string>
28+
<string>968</string>
2929
<key>ITSAppUsesNonExemptEncryption</key>
3030
<false/>
3131
<key>LSApplicationCategoryType</key>

nightguard/resources/Base.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,3 +670,6 @@
670670

671671
/* Link to Privacy Policy */
672672
"Privacy Policy" = "Privacy Policy";
673+
674+
/* Description for Apple Health synchronization */
675+
"AppleHealthSyncDescription" = "Blood glucose values are synchronized to the Health app. There they can be evaluated by other apps. Nightguard itself does not evaluate data from Apple Health.";

nightguard/resources/de.lproj/Localizable.strings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,3 +730,6 @@ Damit diese funktionieren, müssen Nightguard Widgets auf dem Lock-Screen platzi
730730

731731
/* Link to Privacy Policy */
732732
"Privacy Policy" = "Datenschutzerklärung";
733+
734+
/* Description for Apple Health synchronization */
735+
"AppleHealthSyncDescription" = "Die Blutzuckerwerte werden in die Health App synchronisiert. Dort können diese von anderen Apps ausgewertet werden. Nightguard selber wertet keine Daten von Apple Health aus.";

nightguard/resources/fi-FI.lproj/Localizable.strings

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,10 +785,13 @@
785785
"Restore failed: %@" = "Palautus epäonnistui: %@";
786786

787787
/* Legal section header */
788-
"Legal" = "Legal";
788+
"Legal" = "Lakitiedot";
789789

790790
/* Link to Terms of Use */
791-
"Terms of Use (EULA)" = "Terms of Use (EULA)";
791+
"Terms of Use (EULA)" = "Käyttöehdot (EULA)";
792792

793793
/* Link to Privacy Policy */
794-
"Privacy Policy" = "Privacy Policy";
794+
"Privacy Policy" = "Tietosuojaseloste";
795+
796+
/* Description for Apple Health synchronization */
797+
"AppleHealthSyncDescription" = "Verensokeriarvot synkronoidaan Terveys-sovellukseen. Sieltä muut sovellukset voivat hyödyntää niitä. Nightguard itse ei analysoi Apple Terveyden tietoja.";

nightguard/views/prefs/DisplayOptionsSectionView.swift

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,21 @@ struct DisplayOptionsSectionView: View {
4343
SharedUserDefaultsRepository.showBGOnAppBadge.value = newValue
4444
}
4545

46-
Toggle("Synchronize with Apple Health", isOn: $appleHealthSync)
47-
.onChange(of: appleHealthSync) { newValue in
48-
if AppleHealthService.singleton.isAuthorized() {
49-
showAppleHealthAlert = true
50-
appleHealthSync = true
51-
} else {
52-
AppleHealthService.singleton.requestAuthorization()
46+
VStack(alignment: .leading, spacing: 4) {
47+
Toggle("Synchronize with Apple Health", isOn: $appleHealthSync)
48+
.onChange(of: appleHealthSync) { newValue in
49+
if AppleHealthService.singleton.isAuthorized() {
50+
showAppleHealthAlert = true
51+
appleHealthSync = true
52+
} else {
53+
AppleHealthService.singleton.requestAuthorization()
54+
}
5355
}
54-
}
56+
57+
Text(NSLocalizedString("AppleHealthSyncDescription", comment: "Description for Apple Health synchronization"))
58+
.font(.footnote)
59+
.foregroundColor(.secondary)
60+
}
5561
}
5662
}
5763
}

nightguardTests/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>967</string>
22+
<string>968</string>
2323
</dict>
2424
</plist>

nightguardUITests/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>967</string>
22+
<string>968</string>
2323
</dict>
2424
</plist>

0 commit comments

Comments
 (0)