feat: SHA-256 verification, download progress, native installer, i18n

- SHA-256 hash check on downloaded APK (Web Crypto API, no new deps)
- Download progress bar in a locked sheet (stream-based tracking)
- Native Android InstallPlugin (FileProvider + ACTION_VIEW intent)
- REQUEST_INSTALL_PACKAGES permission in AndroidManifest
- applicationIdSuffix .debug for debug builds
- Update row only shown when an update is available
- Label changed to 'openGym v{0} available', icon to 'info'
- All 7 new UI strings translated in 12 locales
- pt-BR snapshot count updated (291 → 298)
This commit is contained in:
Sebastian G committed 2026-09-04 13:01:42 +02:00
1 parent 106a3abee0
commit 7958d0fcd4
22 files changed
+344 -96

No files matched your search

+7
View File
@@ -1099,4 +1099,11 @@ export default {
'Set to 0 to go back to the default ({0}).': 'Auf 0 stellen, um zum Standard ({0}) zurückzukehren.',
'Applies to this exercise everywhere, not just this plan.': 'Gilt überall für diese Übung, nicht nur in diesem Plan.',
'You still log the total weight — the bar only feeds the per-side plate math.': 'Eingetragen wird weiterhin das Gesamtgewicht — die Stange zählt nur für die Scheiben-Rechnung pro Seite.',
'Update to {0}?': 'Auf {0} aktualisieren?',
'The latest version will be downloaded and the installer will open.': 'Die neueste Version wird heruntergeladen und die Installation gestartet.',
'Download & Install': 'Herunterladen & Installieren',
'Update failed: {0}': 'Update fehlgeschlagen: {0}',
'openGym v{0} available': 'openGym v{0} verfügbar',
'Starting download…': 'Download wird gestartet…',
'Downloading update…': 'Update wird heruntergeladen…',
}
+7
View File
@@ -1080,4 +1080,11 @@ export default {
'Set to 0 to go back to the default ({0}).': 'Pon 0 para volver al valor por defecto ({0}).',
'Applies to this exercise everywhere, not just this plan.': 'Se aplica a este ejercicio en todas partes, no solo en este plan.',
'You still log the total weight — the bar only feeds the per-side plate math.': 'Sigues registrando el peso total — la barra solo se usa para calcular los discos por lado.',
'Update to {0}?': '¿Actualizar a {0}?',
'The latest version will be downloaded and the installer will open.': 'Se descargará la última versión y se abrirá el instalador.',
'Download & Install': 'Descargar e instalar',
'Update failed: {0}': 'Error en la actualización: {0}',
'openGym v{0} available': 'openGym v{0} disponible',
'Starting download…': 'Iniciando descarga…',
'Downloading update…': 'Descargando actualización…',
}
+7
View File
@@ -1080,4 +1080,11 @@ export default {
'Set to 0 to go back to the default ({0}).': 'Mets 0 pour revenir à la valeur par défaut ({0}).',
'Applies to this exercise everywhere, not just this plan.': 'S’applique à cet exercice partout, pas seulement dans ce plan.',
'You still log the total weight — the bar only feeds the per-side plate math.': 'Tu enregistres toujours le poids total — la barre ne sert qu’au calcul des disques par côté.',
'Update to {0}?': 'Mettre à jour vers {0} ?',
'The latest version will be downloaded and the installer will open.': 'La dernière version sera téléchargée et l’installateur s’ouvrira.',
'Download & Install': 'Télécharger et installer',
'Update failed: {0}': 'Échec de la mise à jour : {0}',
'openGym v{0} available': 'openGym v{0} disponible',
'Starting download…': 'Démarrage du téléchargement…',
'Downloading update…': 'Téléchargement de la mise à jour…',
}
+7
View File
@@ -1080,4 +1080,11 @@ export default {
'Set to 0 to go back to the default ({0}).': 'डिफ़ॉल्ट ({0}) पर लौटने के लिए 0 सेट करें।',
'Applies to this exercise everywhere, not just this plan.': 'यह इस एक्सरसाइज़ पर हर जगह लागू होता है, सिर्फ़ इसी प्लान पर नहीं।',
'You still log the total weight — the bar only feeds the per-side plate math.': 'आप अब भी कुल वज़न ही दर्ज करते हैं — बार सिर्फ़ हर तरफ़ की प्लेट गिनती में काम आता है।',
'Update to {0}?': '{0} में अपडेट करें?',
'The latest version will be downloaded and the installer will open.': 'नवीनतम संस्करण डाउनलोड होगा और इंस्टॉलर खुलेगा।',
'Download & Install': 'डाउनलोड और इंस्टॉल करें',
'Update failed: {0}': 'अपडेट विफल: {0}',
'openGym v{0} available': 'openGym v{0} उपलब्ध',
'Starting download…': 'डाउनलोड शुरू हो रहा है…',
'Downloading update…': 'अपडेट डाउनलोड हो रहा है…',
}
+7
View File
@@ -1083,4 +1083,11 @@ export default {
'What should change?': 'Mi változzon?',
'Coach is thinking…': 'Az Edző gondolkodik…',
'Message the Coach…': 'Üzenet az Edzőnek…',
'Update to {0}?': 'Frissítés erre: {0}?',
'The latest version will be downloaded and the installer will open.': 'A legújabb verzió letöltődik, és megnyílik a telepítő.',
'Download & Install': 'Letöltés és telepítés',
'Update failed: {0}': 'A frissítés sikertelen: {0}',
'openGym v{0} available': 'openGym v{0} elérhető',
'Starting download…': 'Letöltés indítása…',
'Downloading update…': 'Frissítés letöltése…',
}
+7
View File
@@ -1080,4 +1080,11 @@ export default {
'Set to 0 to go back to the default ({0}).': 'Imposta 0 per tornare al valore predefinito ({0}).',
'Applies to this exercise everywhere, not just this plan.': 'Vale per questo esercizio ovunque, non solo in questo piano.',
'You still log the total weight — the bar only feeds the per-side plate math.': 'Registri comunque il peso totale — il bilanciere serve solo al calcolo dei dischi per lato.',
'Update to {0}?': 'Aggiornare a {0}?',
'The latest version will be downloaded and the installer will open.': 'L’ultima versione verrà scaricata e si aprirà il programma di installazione.',
'Download & Install': 'Scarica e installa',
'Update failed: {0}': 'Aggiornamento fallito: {0}',
'openGym v{0} available': 'openGym v{0} disponibile',
'Starting download…': 'Avvio del download…',
'Downloading update…': 'Download dell’aggiornamento…',
}
+7
View File
@@ -1080,4 +1080,11 @@ export default {
'Set to 0 to go back to the default ({0}).': '0으로 두면 기본값({0})으로 돌아갑니다.',
'Applies to this exercise everywhere, not just this plan.': '이 플랜만이 아니라 어디서든 이 운동에 적용됩니다.',
'You still log the total weight — the bar only feeds the per-side plate math.': '기록은 여전히 총 무게입니다 — 바 무게는 한쪽에 끼울 원판 계산에만 쓰입니다.',
'Update to {0}?': '{0}(으)로 업데이트하시겠습니까?',
'The latest version will be downloaded and the installer will open.': '최신 버전이 다운로드되고 설치 프로그램이 열립니다.',
'Download & Install': '다운로드 및 설치',
'Update failed: {0}': '업데이트 실패: {0}',
'openGym v{0} available': 'openGym v{0} 사용 가능',
'Starting download…': '다운로드 시작 중…',
'Downloading update…': '업데이트 다운로드 중…',
}
+7
View File
@@ -1080,4 +1080,11 @@ export default {
'Set to 0 to go back to the default ({0}).': 'Ustaw 0, aby wrócić do wartości domyślnej ({0}).',
'Applies to this exercise everywhere, not just this plan.': 'Dotyczy tego ćwiczenia wszędzie, nie tylko w tym planie.',
'You still log the total weight — the bar only feeds the per-side plate math.': 'Nadal zapisujesz ciężar całkowity — gryf służy tylko do wyliczenia talerzy na stronę.',
'Update to {0}?': 'Zaktualizować do {0}?',
'The latest version will be downloaded and the installer will open.': 'Najnowsza wersja zostanie pobrana i otworzy się instalator.',
'Download & Install': 'Pobierz i zainstaluj',
'Update failed: {0}': 'Aktualizacja nie powiodła się: {0}',
'openGym v{0} available': 'openGym v{0} dostępna',
'Starting download…': 'Rozpoczynanie pobierania…',
'Downloading update…': 'Pobieranie aktualizacji…',
}
+8 -1
View File
@@ -608,7 +608,14 @@ export const PT_BR_OVERRIDES = {
'Default for this bar type.': 'Padrão para este tipo de barra.',
'Set to 0 to go back to the default ({0}).': 'Defina 0 para voltar ao padrão ({0}).',
'Applies to this exercise everywhere, not just this plan.': 'Vale para este exercício em todos os lugares, não só neste plano.',
'You still log the total weight — the bar only feeds the per-side plate math.': 'Você continua registrando o peso total — a barra só entra no cálculo das anilhas por lado.'
'You still log the total weight — the bar only feeds the per-side plate math.': 'Você continua registrando o peso total — a barra só entra no cálculo das anilhas por lado.',
'Update to {0}?': 'Atualizar para {0}?',
'The latest version will be downloaded and the installer will open.': 'A versão mais recente será baixada e o instalador será aberto.',
'Download & Install': 'Baixar e instalar',
'Update failed: {0}': 'Falha na atualização: {0}',
'openGym v{0} available': 'openGym v{0} disponível',
'Starting download…': 'Iniciando download…',
'Downloading update…': 'Baixando atualização…',
}
export default { ...pt, ...PT_BR_OVERRIDES }
+7
View File
@@ -1080,4 +1080,11 @@ export default {
'Set to 0 to go back to the default ({0}).': 'Coloca 0 para voltar à predefinição ({0}).',
'Applies to this exercise everywhere, not just this plan.': 'Aplica-se a este exercício em todo o lado, não só neste plano.',
'You still log the total weight — the bar only feeds the per-side plate math.': 'Continuas a registar o peso total — a barra só conta para o cálculo dos discos por lado.',
'Update to {0}?': 'Atualizar para {0}?',
'The latest version will be downloaded and the installer will open.': 'A versão mais recente será transferida e o instalador será aberto.',
'Download & Install': 'Transferir e instalar',
'Update failed: {0}': 'Falha na atualização: {0}',
'openGym v{0} available': 'openGym v{0} disponível',
'Starting download…': 'A iniciar transferência…',
'Downloading update…': 'A transferir atualização…',
}
+7
View File
@@ -1080,4 +1080,11 @@ export default {
'Set to 0 to go back to the default ({0}).': 'Поставь 0, чтобы вернуться к значению по умолчанию ({0}).',
'Applies to this exercise everywhere, not just this plan.': 'Действует для этого упражнения везде, а не только в этом плане.',
'You still log the total weight — the bar only feeds the per-side plate math.': 'Записывается по-прежнему общий вес — гриф нужен только для расчёта блинов на сторону.',
'Update to {0}?': 'Обновить до {0}?',
'The latest version will be downloaded and the installer will open.': 'Последняя версия будет загружена и откроется установщик.',
'Download & Install': 'Скачать и установить',
'Update failed: {0}': 'Ошибка обновления: {0}',
'openGym v{0} available': 'openGym v{0} доступна',
'Starting download…': 'Начало загрузки…',
'Downloading update…': 'Загрузка обновления…',
}
+7
View File
@@ -1091,4 +1091,11 @@ export default {
'What should change?': 'ควรเปลี่ยนอะไร',
'Coach is thinking…': 'โค้ชกำลังคิด…',
'Message the Coach…': 'ส่งข้อความถึงโค้ช…',
'Update to {0}?': 'อัปเดตเป็น {0} หรือไม่?',
'The latest version will be downloaded and the installer will open.': 'เวอร์ชันล่าสุดจะถูกดาวน์โหลดและตัวติดตั้งจะเปิดขึ้น',
'Download & Install': 'ดาวน์โหลดและติดตั้ง',
'Update failed: {0}': 'อัปเดตล้มเหลว: {0}',
'openGym v{0} available': 'openGym v{0} พร้อมใช้งาน',
'Starting download…': 'กำลังเริ่มดาวน์โหลด…',
'Downloading update…': 'กำลังดาวน์โหลดอัปเดต…',
}
+7
View File
@@ -1080,4 +1080,11 @@ export default {
'Set to 0 to go back to the default ({0}).': 'Varsayılana ({0}) dönmek için 0 yap.',
'Applies to this exercise everywhere, not just this plan.': 'Yalnızca bu planda değil, bu egzersiz için her yerde geçerli.',
'You still log the total weight — the bar only feeds the per-side plate math.': 'Yine de toplam ağırlığı kaydedersin — bar yalnızca taraf başına plaka hesabına girer.',
'Update to {0}?': '{0} sürümüne güncellensin mi?',
'The latest version will be downloaded and the installer will open.': 'En son sürüm indirilecek ve yükleyici açılacak.',
'Download & Install': 'İndir ve Kur',
'Update failed: {0}': 'Güncelleme başarısız: {0}',
'openGym v{0} available': 'openGym v{0} mevcut',
'Starting download…': 'İndirme başlatılıyor…',
'Downloading update…': 'Güncelleme indiriliyor…',
}
+7
View File
@@ -1080,4 +1080,11 @@ export default {
'Set to 0 to go back to the default ({0}).': '设为 0 即恢复默认值({0})。',
'Applies to this exercise everywhere, not just this plan.': '对这个动作处处生效,不只在此计划中。',
'You still log the total weight — the bar only feeds the per-side plate math.': '记录的仍是总重量——杆重只用于每侧杠铃片的计算。',
'Update to {0}?': '更新到 {0}?',
'The latest version will be downloaded and the installer will open.': '将下载最新版本并打开安装程序。',
'Download & Install': '下载并安装',
'Update failed: {0}': '更新失败:{0}',
'openGym v{0} available': 'openGym v{0} 可用',
'Starting download…': '正在开始下载…',
'Downloading update…': '正在下载更新…',
}