Loksi 2026.10.0 : source correspondante des quatre applis

Export du dépôt interne d'Aleop, révision 0936ea1 (fichiers publiés identiques à e46bc12).
Paquets construits depuis cette source :
- Android : AAB 2026.10.0, code 4
- iPhone : archive 2026.10.0 (18)
- Bureau : macOS universel build 13, Windows build 14, MSIX build 15
- Extensions Chrome, Edge et Firefox : 2026.10.0.3
Cette révision appartient à :
Aleop a révisé 2026-10-12 17:04:06 +02:00
1 Parent c3608b3938
révision 1c39f76f96
34 fichiers modifiés
+5093 -15

Aucun fichier ne correspond à votre recherche

+27 -3
Voir le fichier
@@ -345,6 +345,8 @@ SUPPORT_ADDRESS = CONFIG["links"]["support"].removeprefix("mailto:")
CONTACT_STRINGS = {
"LoksiOriginNotice": ORIGIN_NOTICE,
"LoksiContactUs": {"en": "Contact us", "fr": "Nous contacter"},
# Source GPL publiée (ordre de Romain du 12/10/2026), même ligne qu'Android.
"LoksiSourceCode": {"en": "Source code", "fr": "Code source"},
# Version de Bitwarden dans À propos, à côté de la mention d'origine (06/10/2026).
"LoksiBasedOnBitwarden": {"en": f"Based on Bitwarden {BITWARDEN_VERSION}.",
"fr": f"Basé sur Bitwarden {BITWARDEN_VERSION}."},
@@ -657,9 +659,19 @@ FRAMEWORK_IDS = {
}
# Ligne d'À propos qui ouvre le coffre web : libellé choisi par Romain le 09/10/2026.
WEB_VAULT_LABEL = {"fr": "Loksi : Coffre-fort Web", "en": "Loksi: Web vault"}
def without_bitwarden():
for relative, suffix in FRAMEWORK_IDS.items():
replace_once(SRC / relative, f"{suffix}\n", suffix.replace("bitwarden", "loksi") + "\n")
for language, label in WEB_VAULT_LABEL.items():
strings = SRC / f"BitwardenResources/Localizations/{language}.lproj/Localizable.strings"
text, count = re.subn(r'^"WebVault" = "[^"]*";$', f'"WebVault" = "{label}";', strings.read_text(), flags=re.M)
if count != 1:
raise RuntimeError(f"WebVault absent de {language}.lproj")
strings.write_text(text)
# Nom de l'appli qui exporte, montré par iOS lors d'un transfert d'identifiants.
replace_once(SRC / "BitwardenShared/Core/Tools/Utilities/CredentialManagerFactory.swift",
'exporterDisplayName: "Bitwarden",', 'exporterDisplayName: "Loksi",')
@@ -968,11 +980,14 @@ public extension EnvironmentURLData {{
f' /// Loksi: the support address, opened in the email app.\n'
f' public static let loksiContactSupport = URL(string: "{CONFIG["links"]["support"]}")!\n\n'
f' /// Loksi: the product page, for whoever is not a customer yet.\n'
f' public static let loksiProduct = URL(string: "{LOKSI_PRODUCT}")!\n')
f' public static let loksiProduct = URL(string: "{LOKSI_PRODUCT}")!\n\n'
f' /// Loksi: the GPL source of the app, required before any distribution.\n'
f' public static let loksiSourceCode = URL(string: "{CONFIG["links"]["source"]}")!\n')
about = SRC / "BitwardenShared/UI/Platform/Settings/Settings/About"
replace_once(about / "AboutAction.swift", " /// The privacy policy button was tapped.\n case privacyPolicyTapped\n",
" /// The privacy policy button was tapped.\n case privacyPolicyTapped\n\n"
" /// Loksi: the contact us button was tapped.\n case contactUsTapped\n")
" /// Loksi: the contact us button was tapped.\n case contactUsTapped\n\n"
" /// Loksi: the source code button was tapped.\n case sourceCodeTapped\n")
replace_once(about / "AboutProcessor.swift", " case .privacyPolicyTapped:\n", """ case .contactUsTapped:
coordinator.showAlert(Alert(
title: Localizations.loksiEmailSupportTitle,
@@ -984,12 +999,15 @@ public extension EnvironmentURLData {{
},
],
))
case .sourceCodeTapped:
state.url = ExternalLinksConstants.loksiSourceCode
case .privacyPolicyTapped:
""")
replace_once(about / "AboutView.swift",
" externalLinkRow(Localizations.privacyPolicy, action: .privacyPolicyTapped)\n\n",
" externalLinkRow(Localizations.privacyPolicy, action: .privacyPolicyTapped)\n\n"
" externalLinkRow(Localizations.loksiContactUs, action: .contactUsTapped)\n\n")
" externalLinkRow(Localizations.loksiContactUs, action: .contactUsTapped)\n\n"
" externalLinkRow(Localizations.loksiSourceCode, action: .sourceCodeTapped)\n\n")
# « En savoir plus sur les organisations » ouvre bitwarden.com : offre Bitwarden sans
# objet pour Loksi, retirée (règle de brand/README.md, « Le nom Bitwarden »).
replace_once(SRC / "BitwardenShared/UI/Platform/Settings/Settings/About/AboutView.swift",
@@ -1275,6 +1293,7 @@ def verify():
assert table.get("LoksiOriginNotice") == notice, f"avis de dérivation {language}"
assert table.get("LoksiBasedOnBitwarden") == CONTACT_STRINGS["LoksiBasedOnBitwarden"][language], \
f"version de Bitwarden dans À propos ({language})"
assert table.get("WebVault") == WEB_VAULT_LABEL[language], f"libellé du coffre web ({language})"
assert ORIGIN_NOTICE["fr"] not in git("show", "HEAD:BitwardenResources/Localizations/fr.lproj/Localizable.strings"), \
"canari : l'avis de dérivation figure déjà dans l'amont"
# Nom de coffre (04/10/2026) : domaine des coffres et page produit dans le code. Canari :
@@ -1283,6 +1302,11 @@ def verify():
"domaine loksi.fr ou lien Découvrir Loksi absent"
assert "loksi.fr" not in git("show", "HEAD:BitwardenShared/UI/Auth/Landing/SelfHosted/SelfHostedProcessor.swift"), \
"canari : loksi.fr déjà dans l'amont"
# Source GPL (12/10/2026) : son adresse exacte dans le code, absente de l'amont figé.
source = CONFIG["links"]["source"].encode()
assert scan(executables, [source]), "adresse de la source GPL absente de l'application"
assert source.decode() not in git("show", "HEAD:BitwardenKit/Core/Platform/Utilities/ExternalLinksConstants.swift"), \
"canari : adresse de la source déjà dans l'amont"
# Plus de Bitwarden sauf obligation (09/10/2026) : aucun identifiant de paquet hors SDK,
# pas de User-Agent Bitwarden_Mobile. Canaris : l'amont figé a les deux.
ids = {plistlib.loads(path.read_bytes()).get("CFBundleIdentifier", "") for path in app.rglob("Info.plist")