From 15aa92980239d6d61c3b0febc0407b7f63e152b3 Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Tue, 11 Aug 2020 18:11:39 +0200 Subject: Switch to URL-based Git config and refactor Git settings (#1008) * Make Git config URL-based and refactor * Use Kotlin style null handling for string prefs * Also show an error if generated URL can't be parsed * Add some testcases for migration strategy Signed-off-by: Harsh Shandilya Co-authored-by: Harsh Shandilya --- app/src/main/res/layout/activity_git_clone.xml | 68 ++------------------------ app/src/main/res/values-ar/strings.xml | 4 -- app/src/main/res/values-cs/strings.xml | 4 -- app/src/main/res/values-de/strings.xml | 4 -- app/src/main/res/values-es/strings.xml | 4 -- app/src/main/res/values-fr/strings.xml | 4 -- app/src/main/res/values-ja/strings.xml | 4 -- app/src/main/res/values-pt-rBR/strings.xml | 5 -- app/src/main/res/values-ru/strings.xml | 4 -- app/src/main/res/values-zh-rCN/strings.xml | 4 -- app/src/main/res/values-zh-rTW/strings.xml | 4 -- app/src/main/res/values/strings.xml | 8 ++- 12 files changed, 7 insertions(+), 110 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_git_clone.xml b/app/src/main/res/layout/activity_git_clone.xml index f9bec00a..7c59572c 100644 --- a/app/src/main/res/layout/activity_git_clone.xml +++ b/app/src/main/res/layout/activity_git_clone.xml @@ -65,78 +65,18 @@ android:text="@string/clone_protocol_https" /> - - - - - - - - - - - - - - - - - + app:layout_constraintTop_toBottomOf="@id/clone_protocol_group"> + app:layout_constraintTop_toBottomOf="@id/label_server_url"> إستخدام مجلد محلي الخادوم البروتوكول - عنوان الخادوم - 22 - مسار المستودع - إسم المستخدم نوع المصادقة diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index 0ed0bcea..3c4df560 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -57,10 +57,6 @@ Vyberte kam ukládat hesla Server Protokol - URL serveru - 22 - Cesta k repozitáři - Jméno Mód ověření diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index cdfb7dba..fd94c8a9 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -40,10 +40,6 @@ Nutze lokalen Ordner Server Protokoll - Server URL - 22 - Repo-Pfad - Nutzername Authentifizierungsmethode diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 780e83ca..ff04cf3e 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -54,10 +54,6 @@ Servidor Protocolo - URL de servidor - 22 - Ruta del repositorio - Nombre de usuario Modo de autenticación diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 19fbdb33..9f9e1768 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -60,10 +60,6 @@ Serveur Protocole - URL du serveur - 22 - Chemin du dépôt - Nom d\'utilisateur Méthode d\'authentification diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index e0e84cda..132ecad4 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -41,10 +41,6 @@ ローカルディレクトリーを使用する サーバー プロトコル - サーバー URL - 22 - リポジトリのパス - ユーザー名 認証モード diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 8ed71353..79edf2d9 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -68,10 +68,6 @@ Você deve selecionar um diretório onde armazenar suas senhas. Se você deseja armazenar suas senhas dentro do armazenamento oculto do aplicativo, cancele esta caixa de diálogo e desative a opção \"Repositório Externo\". Servidor Protocolo - URL do servidor - Porta - Caminho do repositório - Usuário Modo de autenticação Usuário @@ -295,7 +291,6 @@ Chave SSH Senha Configuração salva com sucesso - Erro de configuração: %s hostname vazio por favor, verifique suas configurações e tente novamente porta deve ser numérica diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 7a46da75..596e1c14 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -62,10 +62,6 @@ Сервер Протокол - URL сервера - 22 - Путь к репозиторию - Имя пользователя Тип авторизации diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 343d5855..e7899c76 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -41,10 +41,6 @@ 使用本地目录 服务器 接口 - 服务器 URL - 22 - Repo 路径 - 用户名 认证模式 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index bbc9672a..572d67da 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -38,10 +38,6 @@ 使用本機目錄 伺服器 port - 伺服器 URL - 22 - Repo 路徑 - 使用者名稱 認證模式 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9251d91e..46dfa401 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -83,10 +83,8 @@ Server Protocol - Server URL - Port - Repo path - Username + Repository URL + Branch Authentication Mode @@ -326,7 +324,7 @@ Password OpenKeychain Successfully saved configuration - Configuration error: %s + The provided repository URL is not valid empty hostname please verify your settings and try again port must be numeric -- cgit v1.2.3