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 à :
1 Parent
c3608b3938
révision
1c39f76f96
34 fichiers modifiés
+5093
-15
Aucun fichier ne correspond à votre recherche
@@ -92,6 +92,48 @@ def sha256(path):
|
||||
return digest.hexdigest()
|
||||
|
||||
|
||||
DASHES = re.compile("[\u2013\u2014]")
|
||||
GENERATOR_SCREEN = "app/src/main/kotlin/com/x8bit/bitwarden/ui/tools/feature/generator/GeneratorScreen.kt"
|
||||
# Textes de l'amont avec un tiret cadratin, relevés le 09/10/2026 sur la fiche Play
|
||||
# (« A\u2014Z » du générateur) puis dans les chaînes : règle d'écriture d'Aleop, aucun
|
||||
# tiret cadratin ni demi-cadratin nulle part dans l'app.
|
||||
DASH_FIXES = {
|
||||
"values-fr-rFR/strings.xml": [
|
||||
("bout à bout</annotation> \u2014 à vous de choisir\u00a0!",
|
||||
"bout à bout</annotation>, à vous de choisir\u00a0!"),
|
||||
("peuvent être enregistrés \u2014 jamais d\\\'informations",
|
||||
"peuvent être enregistrés, mais jamais d\\\'informations"),
|
||||
("ou continuez \u2014 la mise à jour", "ou continuez : la mise à jour"),
|
||||
],
|
||||
"values/strings.xml": [
|
||||
("one long word</annotation>\u2014your choice!", "one long word</annotation>. Your choice!"),
|
||||
("may be logged\u2014never sensitive", "may be logged, but never sensitive"),
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
def french_fixes():
|
||||
"""Traductions françaises de l'amont restées en anglais, et tirets cadratins. « Okay »
|
||||
vu le 09/10/2026 sur le bouton du dialogue de saisie automatique, en ajoutant un
|
||||
identifiant. Seul le français change : les autres langues gardent leur traduction."""
|
||||
replace_once(SRC / STRINGS / "values-fr-rFR/strings.xml",
|
||||
'<string name="okay">Okay</string>', '<string name="okay">OK</string>')
|
||||
for name, pairs in DASH_FIXES.items():
|
||||
for old, new in pairs:
|
||||
replace_once(SRC / STRINGS / name, old, new)
|
||||
for case in ("A", "a"):
|
||||
replace_once(SRC / GENERATOR_SCREEN, f'label = "{case}\u2014{case.translate(str.maketrans("Aa", "Zz"))}",',
|
||||
f'label = "{case}-{case.translate(str.maketrans("Aa", "Zz"))}",')
|
||||
# Contrôle, avec son canari : un texte qui en porte un doit être vu.
|
||||
if not DASHES.search("x \u2014 y") or not DASHES.search("x \u2013 y"):
|
||||
raise RuntimeError("Contrôle des tirets aveugle")
|
||||
for path in (SRC / STRINGS / "values-fr-rFR/strings.xml", SRC / STRINGS / "values/strings.xml",
|
||||
SRC / STRINGS / "values/strings_non_localized.xml", SRC / GENERATOR_SCREEN):
|
||||
found = DASHES.findall(path.read_text())
|
||||
if found:
|
||||
raise RuntimeError(f"Tiret cadratin restant : {path.relative_to(SRC)} ({len(found)})")
|
||||
|
||||
|
||||
def replace_once(path, old, new, count=1):
|
||||
value = path.read_text()
|
||||
if value.count(old) != count:
|
||||
@@ -855,6 +897,14 @@ def contact_texts():
|
||||
"en": f"Your email app opens with a message to {links['support']}. "
|
||||
f"For data protection, write to {links['dpo']}.",
|
||||
},
|
||||
"loksi_source_code": {"fr": "Code source", "en": "Source code"},
|
||||
"loksi_source_code_title": {"fr": "Ouvrir le code source ?", "en": "Open the source code?"},
|
||||
"loksi_source_code_message": {
|
||||
"fr": "Loksi est un logiciel libre sous licence GPL v3. Son code source est publié "
|
||||
"sur sources.gitsi.dev.",
|
||||
"en": "Loksi is free software under the GPL v3 licence. Its source code is published "
|
||||
"on sources.gitsi.dev.",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -877,6 +927,19 @@ def add_contact_row():
|
||||
.fillMaxWidth()
|
||||
.testTag(tag = "LoksiContactUsRow"),
|
||||
)
|
||||
// Loksi: source code row, the GPL v3 corresponding source (added 12/10/2026).
|
||||
BitwardenExternalLinkRow(
|
||||
text = stringResource(id = BitwardenString.loksi_source_code),
|
||||
onConfirmClick = {{ loksiIntentManager.launchUri("{CONFIG['links']['source']}".toUri()) }},
|
||||
dialogTitle = stringResource(id = BitwardenString.loksi_source_code_title),
|
||||
dialogMessage = stringResource(id = BitwardenString.loksi_source_code_message),
|
||||
withDivider = false,
|
||||
cardStyle = CardStyle.Middle(),
|
||||
modifier = Modifier
|
||||
.standardHorizontalMargin()
|
||||
.fillMaxWidth()
|
||||
.testTag(tag = "LoksiSourceCodeRow"),
|
||||
)
|
||||
""")
|
||||
|
||||
|
||||
@@ -1138,6 +1201,7 @@ def prepare():
|
||||
adapt_links()
|
||||
import_tutorial_address()
|
||||
add_contact_row()
|
||||
french_fixes()
|
||||
sys.path.insert(0, str(HERE))
|
||||
import graphics
|
||||
drawn = graphics.write_all(SRC, REPO / "brand")
|
||||
@@ -1188,6 +1252,7 @@ def changes():
|
||||
r"environment/EnvironmentViewModel|welcome/WelcomeScreen)\.kt|"
|
||||
r"app/src/main/kotlin/com/x8bit/bitwarden/ui/platform/feature/settings/about/AboutViewModel\.kt|"
|
||||
r"app/src/main/kotlin/com/x8bit/bitwarden/ui/tools/feature/send/SendScreen\.kt|"
|
||||
r"app/src/main/kotlin/com/x8bit/bitwarden/ui/tools/feature/generator/GeneratorScreen\.kt|"
|
||||
r"app/src/main/kotlin/com/x8bit/bitwarden/ui/platform/feature/settings/about/AboutScreen\.kt|"
|
||||
r"app/src/main/kotlin/com/x8bit/bitwarden/ui/platform/feature/settings/flightrecorder/FlightRecorderScreen\.kt|"
|
||||
r"app/src/main/kotlin/com/x8bit/bitwarden/ui/auth/feature/environment/EnvironmentScreen\.kt|"
|
||||
@@ -1268,8 +1333,14 @@ def build():
|
||||
APP_TESTS = ["*Environment*", "*RestrictionManager*", "*Landing*", "*Autofill*", "*Welcome*", "*About*",
|
||||
"*StartRegistration*", "*SendScreen*", "*SendViewModel*", "*AccountSecurity*",
|
||||
"*FlightRecorder*", "*ImportLogins*", "*LoksiClientVersion*", "*HeaderUtils*", "*HeadersInterceptor*",
|
||||
"*ExportVault*", "*AccessibilityNodeInfo*", "*CredentialManagerPendingIntent*", "*AutofillParser*"]
|
||||
"*ExportVault*", "*AccessibilityNodeInfo*", "*CredentialManagerPendingIntent*", "*AutofillParser*", "*GeneratorScreen*"]
|
||||
EXPECTED_APP_FAILURES = {
|
||||
# Ils cherchent les libellés « A\u2014Z » et « a\u2014z » du générateur : Loksi les écrit
|
||||
# « A-Z » et « a-z », sans tiret cadratin (french_fixes). Relevé le 09/10/2026.
|
||||
("GeneratorScreenTest", "in Password state, disabled elements should not send events"),
|
||||
("GeneratorScreenTest", "in Password state, the ViewModel state should update the UI correctly"),
|
||||
("GeneratorScreenTest", "in Password state, toggling the capital letters toggle should send ToggleCapitalLettersChange action"),
|
||||
("GeneratorScreenTest", "in Password state, toggling the use lowercase toggle should send ToggleLowercaseLettersChange action"),
|
||||
# Ils attendent le serveur US quand rien n'est enregistré : Loksi rend le marqueur
|
||||
# « adresse à saisir » (29/09/2026, avant : loksi.aleop.eu). Relevé le 28/09/2026.
|
||||
("BaseUrlsProviderTest", "getBaseApiUrl should return default value when preAuthEnvironmentUrlData is null()"),
|
||||
@@ -1531,6 +1602,8 @@ def verify(apk=None, package=DEBUG_ID, kind="debug", report_name="android-apk.js
|
||||
assert not remnants, f"restes Bitwarden retirables : {remnants}"
|
||||
# « Nous contacter » : courriel au support. Canari : l'APK précédent ne l'a pas.
|
||||
assert dex_literal("mailto:" + CONFIG["links"]["support"]) in dex, "ligne Nous contacter absente"
|
||||
assert dex_literal(CONFIG["links"]["source"]) in dex, "ligne Code source absente"
|
||||
assert dex_literal(CONFIG["links"]["source"] + "-canari") not in dex, "contrôle Code source aveugle"
|
||||
# Plus l'entrée du support client, qui rejette les inconnus. Canari : l'APK du 03/10 au matin la porte.
|
||||
assert dex_literal("mailto:support@aleop.eu") not in dex, "Nous contacter écrit encore à l'entrée du support client"
|
||||
with zipfile.ZipFile(apk) as archive:
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur