Skip to content
Snippets Groups Projects
Commit b12e1293 authored by kondeichmann's avatar kondeichmann
Browse files

fix some minor Issues + make feature toggable

parent 8580e473
No related branches found
No related tags found
1 merge request!14Feature/invitation
...@@ -32,7 +32,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { ...@@ -32,7 +32,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
kDefaultTitleFontSize = 33 kDefaultTitleFontSize = 33
kDefaultBodyFontSize = 23 kDefaultBodyFontSize = 23
} }
InvitationUserDefaults.shouldNotShowSecondDialog.set(false)
resetApp() resetApp()
HockeySDK.setup() HockeySDK.setup()
if (!UserDefaults.standard.bool(forKey: "launchedBefore")) { if (!UserDefaults.standard.bool(forKey: "launchedBefore")) {
......
...@@ -11,6 +11,8 @@ import Foundation ...@@ -11,6 +11,8 @@ import Foundation
private let pgp = SwiftPGP() private let pgp = SwiftPGP()
private let datahandler = DataHandler.handler private let datahandler = DataHandler.handler
let invitationEnabled = false
let SUPPORT_MAIL_ADR = "letterbox@inf.fu-berlin.de" let SUPPORT_MAIL_ADR = "letterbox@inf.fu-berlin.de"
let LOGGING_MAIL_ADR = "letterbox-reports@inf.fu-berlin.de" let LOGGING_MAIL_ADR = "letterbox-reports@inf.fu-berlin.de"
......
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
</constraints> </constraints>
</view> </view>
</subviews> </subviews>
<color key="backgroundColor" white="1" alpha="0.75030259683098588" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="backgroundColor" white="0.0" alpha="0.75030259683098588" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints> <constraints>
<constraint firstItem="H9Q-Ab-s6V" firstAttribute="centerY" secondItem="oY6-Oy-6Uq" secondAttribute="centerY" id="7Ne-hY-u0E"/> <constraint firstItem="H9Q-Ab-s6V" firstAttribute="centerY" secondItem="oY6-Oy-6Uq" secondAttribute="centerY" id="7Ne-hY-u0E"/>
<constraint firstItem="H9Q-Ab-s6V" firstAttribute="centerX" secondItem="oY6-Oy-6Uq" secondAttribute="centerX" id="oj6-TE-YZX"/> <constraint firstItem="H9Q-Ab-s6V" firstAttribute="centerX" secondItem="oY6-Oy-6Uq" secondAttribute="centerX" id="oj6-TE-YZX"/>
......
...@@ -271,7 +271,7 @@ extension SendViewController { ...@@ -271,7 +271,7 @@ extension SendViewController {
/// ///
/// - Returns: True if the current E-Mail is insecure /// - Returns: True if the current E-Mail is insecure
fileprivate func isEligibleForInvitation() -> Bool { fileprivate func isEligibleForInvitation() -> Bool {
return (self.toSecure == false) return (self.toSecure == false && invitationEnabled == true)
} }
} }
......
...@@ -176,16 +176,16 @@ ...@@ -176,16 +176,16 @@
"NeverUpdated" = "Fehler bei Aktualisierung"; "NeverUpdated" = "Fehler bei Aktualisierung";
"Invitation.Code.Title" = "Fast geschafft!"; "Invitation.Code.Title" = "Fast geschafft!";
"Invitation.Code.Message" = "Deine Nachricht wurde versendet.\nUm sie lesen zu können, braucht man das untenstehende Passwort.\nMit dem \"Teilen\" Knopf kannst du es versenden oder kopieren.\n\n%@"; "Invitation.Code.Message" = "Deine Nachricht wurde versendet.\nUm sie lesen zu können, braucht man den untenstehenden Code.\nDu kannst den Code per SMS oder Messenger teilen\n\nCode: %@";
"Invitation.Code.Share" = "Teilen"; "Invitation.Code.Share" = "Teilen";
"Invitation.Code.Done" = "Fertig"; "Invitation.Code.Done" = "Fertig";
"Invitation.Welcome.Title" = "Privatsphäre schützen"; "Invitation.Welcome.Title" = "Sicher kommunizieren";
"Invitation.Welcome.Message" = "Du kannst pikanten oder sensiblen Texte markieren, um diese dann zu verschlüsseln. Schütze deine Privatsphäre jetzt."; "Invitation.Welcome.Message" = "Du kannst pikanten oder sensiblen Texte markieren, um diese dann zu verschlüsseln. Zeige deinen Kontakten, dass man auch sicher kommunizieren kann.";
"Invitation.Welcome.Try" = "Jetzt ausprobieren"; "Invitation.Welcome.Try" = "Jetzt ausprobieren";
"Invitation.Welcome.Later" = "Vielleicht später"; "Invitation.Welcome.Later" = "Vielleicht später";
"Invitation.Welcome.Dont.Ask" = "Nicht mehr anzeigen"; "Invitation.Welcome.Dont.Ask" = "Nicht mehr anzeigen";
"Invitation.Step.Title" = "Prima!"; "Invitation.Step.Title" = "Prima!";
"Invitation.Step.Message" = "Nachdem du die E-Mail gesendet hast, bekommst du von uns einen Code.\nMit diesem kann man deine Nachricht wieder lesen."; "Invitation.Step.Message" = "Du wirst einen Code zum entschlüsseln deiner Nachricht erhalten, sobald du diese versendet hast.";
"Invitation.Step.CTA" = "Weiter machen"; "Invitation.Step.CTA" = "Weiter machen";
"Invitation.Step.Undo" = "Rückgängig machen"; "Invitation.Step.Undo" = "Rückgängig machen";
"Invitation.Encrypt" = "Verschlüsseln"; "Invitation.Encrypt" = "Verschlüsseln";
......
...@@ -173,16 +173,16 @@ ...@@ -173,16 +173,16 @@
"copyKey" = "Schlüssel in Zwischenablage kopieren"; "copyKey" = "Schlüssel in Zwischenablage kopieren";
"Invitation.Code.Title" = "Fast geschafft!"; "Invitation.Code.Title" = "Fast geschafft!";
"Invitation.Code.Message" = "Deine Nachricht wurde versendet.\nUm sie lesen zu können, braucht man das untenstehende Passwort.\nMit dem \"Teilen\" Knopf kannst du es versenden oder kopieren.\n\n%@"; "Invitation.Code.Message" = "Deine Nachricht wurde versendet.\nUm sie lesen zu können, braucht man den untenstehenden Code.\nDu kannst den Code per SMS oder Messenger teilen\n\nCode: %@";
"Invitation.Code.Share" = "Teilen"; "Invitation.Code.Share" = "Teilen";
"Invitation.Code.Done" = "Fertig"; "Invitation.Code.Done" = "Fertig";
"Invitation.Welcome.Title" = "Privatsphäre schützen"; "Invitation.Welcome.Title" = "Sicher kommunizieren";
"Invitation.Welcome.Message" = "Du kannst pikanten oder sensiblen Texte markieren, um diese dann zu verschlüsseln. Schütze deine Privatsphäre jetzt."; "Invitation.Welcome.Message" = "Du kannst pikanten oder sensiblen Texte markieren, um diese dann zu verschlüsseln. Zeige deinen Kontakten, dass man auch sicher kommunizieren kann.";
"Invitation.Welcome.Try" = "Jetzt ausprobieren"; "Invitation.Welcome.Try" = "Jetzt ausprobieren";
"Invitation.Welcome.Later" = "Vielleicht später"; "Invitation.Welcome.Later" = "Vielleicht später";
"Invitation.Welcome.Dont.Ask" = "Nicht mehr anzeigen"; "Invitation.Welcome.Dont.Ask" = "Nicht mehr anzeigen";
"Invitation.Step.Title" = "Prima!"; "Invitation.Step.Title" = "Prima!";
"Invitation.Step.Message" = "Nachdem du die E-Mail gesendet hast, bekommst du von uns einen Code.\nMit diesem kann man deine Nachricht wieder lesen."; "Invitation.Step.Message" = "Du wirst einen Code zum entschlüsseln deiner Nachricht erhalten, sobald du diese versendet hast.";
"Invitation.Step.CTA" = "Weiter machen"; "Invitation.Step.CTA" = "Weiter machen";
"Invitation.Step.Undo" = "Rückgängig machen"; "Invitation.Step.Undo" = "Rückgängig machen";
"Invitation.Encrypt" = "Verschlüsseln"; "Invitation.Encrypt" = "Verschlüsseln";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment