Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove forwarded ports code #5074

Merged
merged 4 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,9 @@ fun ShowDeviceRemovalDialog(onDismiss: () -> Unit, onConfirm: () -> Unit, device
text = {
val htmlFormattedDialogText =
textResource(
id = R.string.max_devices_confirm_removal_description,
device.name.capitalizeFirstCharOfEachWord()
)
.let { introText ->
if (device.ports.isNotEmpty()) {
introText.plus(" " + stringResource(id = R.string.port_removal_notice))
} else {
introText
}
}
id = R.string.max_devices_confirm_removal_description,
device.name.capitalizeFirstCharOfEachWord()
)

HtmlText(htmlFormattedString = htmlFormattedDialogText, textSize = 16.sp.value)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ fun PreviewDeviceListScreen() {
id = "ID",
name = "Name",
pubkey = ByteArray(10),
ports = ArrayList(),
created = "2002-12-12"
),
isLoading = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class AccountViewModelTest {
id = "fake_id",
name = "fake_name",
pubkey = byteArrayOf(),
ports = ArrayList(),
created = "mock_date"
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ import android.os.Parcelable
import kotlinx.parcelize.Parcelize

@Parcelize
data class Device(
val id: String,
val name: String,
val pubkey: ByteArray,
val ports: ArrayList<DevicePort>,
val created: String
) : Parcelable {
data class Device(val id: String, val name: String, val pubkey: ByteArray, val created: String) :
Parcelable {
// Generated by Android Studio
override fun equals(other: Any?): Boolean {
if (this === other) return true
Expand All @@ -21,7 +16,6 @@ data class Device(
if (id != other.id) return false
if (name != other.name) return false
if (!pubkey.contentEquals(other.pubkey)) return false
if (ports != other.ports) return false

return true
}
Expand All @@ -31,7 +25,6 @@ data class Device(
var result = id.hashCode()
result = 31 * result + name.hashCode()
result = 31 * result + pubkey.contentHashCode()
result = 31 * result + ports.hashCode()
return result
}
}
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-da/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">Betalt indtil</string>
<string name="pay_to_start_using">For at begynde at bruge appen skal du først føje tid til din konto.</string>
<string name="port">Port</string>
<string name="port_removal_notice">Dette vil slette alle videresendte porte. Lokale indstillinger vil blive gemt.</string>
<string name="privacy_disclaimer_title">Privatliv</string>
<string name="privacy_policy_label">Fortrolighedspolitik</string>
<string name="problem_report_description">For at vi bedre kan hjælpe dig, bedes du vedhæfte din apps logfil til denne meddelelse. Dine data vil forblive sikre og private, da de anonymiseres, før de sendes via en krypteret kanal.</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">Bezahlt bis</string>
<string name="pay_to_start_using">Um mit der Nutzung dieser App zu beginnen, müssen Sie erst einmal Zeit zu Ihrem Konto hinzufügen.</string>
<string name="port">Port</string>
<string name="port_removal_notice">Dadurch werden alle weitergeleiteten Ports gelöscht. Die lokalen Einstellungen werden gespeichert.</string>
<string name="privacy_disclaimer_title">Datenschutz</string>
<string name="privacy_policy_label">Datenschutzrichtlinie</string>
<string name="problem_report_description">Damit wir Ihnen besser helfen können, wird die Protokolldatei Ihrer App an diese Nachricht angehängt. Ihre Daten bleiben sicher und privat, da sie vor dem Senden über einen verschlüsselten Kanal anonymisiert werden.</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">Pagado hasta</string>
<string name="pay_to_start_using">Para empezar a usar la aplicación, primero necesita agregar tiempo a su cuenta.</string>
<string name="port">Puerto</string>
<string name="port_removal_notice">Se eliminarán todos los puertos reenviados. La configuración local se guardará.</string>
<string name="privacy_disclaimer_title">Privacidad</string>
<string name="privacy_policy_label">Política de privacidad</string>
<string name="problem_report_description">Para ayudarle de una forma más eficiente, se adjuntará el archivo de registro de la aplicación a este mensaje. Sus datos permanecerán protegidos y privados, ya que se anonimizan antes de enviarse a través de un canal cifrado.</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-fi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">Maksu ennen</string>
<string name="pay_to_start_using">Voit aloittaa sovelluksen käyttämisen lisäämällä ensin aikaa tilillesi.</string>
<string name="port">Portti</string>
<string name="port_removal_notice">Toiminto poistaa kaikki välitetyt portit. Paikalliset asetukset tallennetaan.</string>
<string name="privacy_disclaimer_title">Tietosuoja</string>
<string name="privacy_policy_label">Tietosuojakäytäntö</string>
<string name="problem_report_description">Jotta voimme olla avuksi parhaamme mukaan, sovelluksesi lokitiedosto liitetään tähän viestiin. Tietosi pysyvät suojattuina ja yksityisinä, ja ne anonymisoidaan salatun kanavan kautta ennen lähetystä.</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">Payé jusqu\'au</string>
<string name="pay_to_start_using">Pour commencer à utiliser l\'application, vous devez d\'abord ajouter du temps à votre compte.</string>
<string name="port">Port</string>
<string name="port_removal_notice">Ceci supprimera tous les ports transférés. Les paramètres locaux seront enregistrés.</string>
<string name="privacy_disclaimer_title">Confidentialité</string>
<string name="privacy_policy_label">Politique de confidentialité</string>
<string name="problem_report_description">Pour mieux vous aider, le fichier journal de l\'application est joint à ce message. Vos données restent privées et en sécurité dans la mesure où elles sont rendues anonymes avant d\'être envoyées via un canal chiffré.</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">Pagato fino al</string>
<string name="pay_to_start_using">Per iniziare a utilizzare l\'app, devi prima aggiungere tempo al tuo account.</string>
<string name="port">Porta</string>
<string name="port_removal_notice">Questa operazione eliminerà tutte le porte inoltrate. Le impostazioni locali verranno salvate.</string>
<string name="privacy_disclaimer_title">Privacy</string>
<string name="privacy_policy_label">Informativa sulla privacy</string>
<string name="problem_report_description">Per aiutarti in modo più efficace, il file di registro della tua app sarà allegato a questo messaggio. I tuoi dati rimarranno protetti e privati, e saranno anonimizzati prima di essere inviati tramite un canale crittografato.</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">次の日時まで支払い済み</string>
<string name="pay_to_start_using">アプリを使い始めるには、まずはアカウントに時間を追加する必要があります。</string>
<string name="port">ポート</string>
<string name="port_removal_notice">これにより、転送されたポートがすべて削除されます。ローカル設定は保存されます。</string>
<string name="privacy_disclaimer_title">プライバシー</string>
<string name="privacy_policy_label">プライバシーポリシー</string>
<string name="problem_report_description">さらに効率よく問題解決できるよう、お使いのアプリのログファイルがこのメッセージに添付されます。個人データは匿名化された後に暗号化されたチャネルで送信されるため、その安全は確保され、公開されることはありません。</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-ko/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">유효 기간</string>
<string name="pay_to_start_using">앱 사용을 시작하려면, 먼저 계정에 시간을 추가해야 합니다.</string>
<string name="port">포트</string>
<string name="port_removal_notice">전달된 모든 포트가 삭제됩니다. 로컬 설정이 저장됩니다.</string>
<string name="privacy_disclaimer_title">개인 정보 보호</string>
<string name="privacy_policy_label">개인정보 보호정책</string>
<string name="problem_report_description">보다 효과적인 문제 해결을 위해 앱의 로그 파일이 이 메시지에 첨부됩니다. 사용자 데이터는 암호화된 채널을 통해 전송되기 전에 익명 처리되므로 안전하고 비공개로 유지됩니다.</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-my/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">ဖော်ပြပါအထိ ပေးချေထားပြီး</string>
<string name="pay_to_start_using">အက်ပ်ကို စသုံးရန်အတွက် ဦးစွာ သင့်အကောင့်တွင် အချိန်ပေါင်းထည့်ပေးရန် လိုအပ်ပါသည်။</string>
<string name="port">ပေါ့တ်</string>
<string name="port_removal_notice">၎င်းသည် ပေးပို့ထားသော ports ကို ဖျက်ပါမည်။ စက်တွင်းဆက်တင်ကို သိမ်းထားပါမည်။</string>
<string name="privacy_disclaimer_title">ကိုယ်ရေးအချက်အလက် လုံခြုံရေး</string>
<string name="privacy_policy_label">ကိုယ်ပိုင်အချက်အလက် မူဝါဒ</string>
<string name="problem_report_description">သင့်အား ပိုမိုထိရောက်စွာ ကူညီနိုင်ရန် သင့်အက်ပ်၏ မှတ်တမ်းဖိုင်ကို ဤမက်ဆေ့ချ်နှင့်အတူ တွဲပေးသွားပါမည်။ ကုဒ်ပြောင်းဝှက်ထားသည့် ချန်နယ်မှတစ်ဆင့် မပေးပို့မီ သင့်ဒေတာများကို အမည်မဖော်ဘဲ ထားမည်ဖြစ်သောကြောင့် လျှို့ဝှက်လုံခြုံလျက် ရှိနေပါမည်။</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-nb/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">Betalt fram til</string>
<string name="pay_to_start_using">For å starte bruken av appen, må du først legge til tid til kontoen.</string>
<string name="port">Port</string>
<string name="port_removal_notice">Dette vil slette alle formidlede porter. Lokale innstillinger blir lagret.</string>
<string name="privacy_disclaimer_title">Personvern</string>
<string name="privacy_policy_label">Retningslinjer for personvern</string>
<string name="problem_report_description">For å kunne gi deg god nok hjelp vil loggfilen til appen ligge som vedlegg til meldingen. All data forblir beskyttet og privat gjennom anonymisering før det sendes gjennom en kryptert kanal.</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-nl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">Betaald tot</string>
<string name="pay_to_start_using">Om de app te gebruiken, moet u eerst tijd toevoegen aan uw account.</string>
<string name="port">Poort</string>
<string name="port_removal_notice">Hiermee worden alle doorgestuurde poorten verwijderd. De lokale instellingen worden opgeslagen.</string>
<string name="privacy_disclaimer_title">Privacy</string>
<string name="privacy_policy_label">Privacybeleid</string>
<string name="problem_report_description">Het logboekbestand van uw app wordt aan dit bericht gekoppeld zodat we u beter kunnen helpen. Uw gegevens blijven veilig en privé, omdat ze worden geanonimiseerd voordat ze over een versleuteld kanaal worden verzonden.</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">Płatne do</string>
<string name="pay_to_start_using">Aby rozpocząć korzystanie z aplikacji, musisz najpierw dodać czas do swojego konta.</string>
<string name="port">Port</string>
<string name="port_removal_notice">Spowoduje to usunięcie wszystkich przekierowanych portów. Ustawienia lokalne zostaną zapisane.</string>
<string name="privacy_disclaimer_title">Prywatność</string>
<string name="privacy_policy_label">Polityka prywatności</string>
<string name="problem_report_description">Aby można było pomóc Ci skuteczniej, do tej wiadomości dołączony zostanie plik dziennika aplikacji. Twoje dane pozostaną bezpieczne i prywatne, ponieważ przed wysłaniem zaszyfrowanym kanałem zostają one zanonimizowane.</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-pt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">Pago até</string>
<string name="pay_to_start_using">Para começar a utilizar a aplicação, primeiro tem de adicionar tempo à sua conta.</string>
<string name="port">Porta</string>
<string name="port_removal_notice">Esta ação irá apagar todas as portas reencaminhadas. As definições locais serão guardadas.</string>
<string name="privacy_disclaimer_title">Privacidade</string>
<string name="privacy_policy_label">Política de privacidade</string>
<string name="problem_report_description">Para ajudarmos de forma mais eficaz, o ficheiro de registo da sua aplicação será anexado a esta mensagem. Os seus dados permanecerão seguros e privados, pois são tornados anónimos antes de serem enviados através de um canal encriptado.</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">Оплачено до</string>
<string name="pay_to_start_using">Чтобы пользоваться приложением, нужно добавить время на учетную запись.</string>
<string name="port">Порт</string>
<string name="port_removal_notice">Будут удалены все перенаправленные порты. Локальные настройки сохранятся.</string>
<string name="privacy_disclaimer_title">Конфиденциальность</string>
<string name="privacy_policy_label">Политика конфиденциальности</string>
<string name="problem_report_description">Чтобы помощь была эффективнее, к этому сообщению будет прикреплен файл журнала из приложения. Ваши данные останутся защищенными и конфиденциальными: они обезличиваются и отправляются по зашифрованному каналу.</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-sv/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">Betalat till</string>
<string name="pay_to_start_using">Om du vill börja använda appen måste du först lägga till tid i ditt konto.</string>
<string name="port">Port</string>
<string name="port_removal_notice">Detta tar bort alla vidarebefordrade portar. Lokala inställningar sparas.</string>
<string name="privacy_disclaimer_title">Sekretess</string>
<string name="privacy_policy_label">Sekretesspolicy</string>
<string name="problem_report_description">För att hjälpa dig mer effektivt kommer appens loggfil att bifogas i detta meddelande. Dina uppgifter förblir säkra och privata, eftersom de anonymiseras innan de skickas över en krypterad kanal.</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-th/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">ชำระเงินแล้วจนถึง</string>
<string name="pay_to_start_using">คุณจำเป็นต้องเพิ่มเวลาไปยังบัญชีของคุณก่อน เพื่อที่จะเริ่มใช้งานแอป</string>
<string name="port">พอร์ต</string>
<string name="port_removal_notice">นี่จะเป็นการลบพอร์ตที่ส่งต่อทั้งหมด และการตั้งค่าบนอุปกรณ์จะได้รับการบันทึกไว้</string>
<string name="privacy_disclaimer_title">ความเป็นส่วนตัว</string>
<string name="privacy_policy_label">นโยบายความเป็นส่วนตัว</string>
<string name="problem_report_description">ไฟล์บันทึกล็อกของแอปของคุณจะถูกแนบไปกับข้อความนี้ เพื่อที่เราจะช่วยเหลือคุณได้อย่างมีประสิทธิภาพมากขึ้น ข้อมูลของคุณจะยังคงมีความปลอดภัยและเป็นส่วนตัว เนื่องจากจะไม่มีการระบุตัวตนก่อนส่งข้อมูลผ่านช่องทางที่มีการเข้ารหัส</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values-tr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">Şu tarihe kadar ödendi:</string>
<string name="pay_to_start_using">Uygulamayı kullanmaya başlamak için önce hesabınıza süre eklemeniz gerekir.</string>
<string name="port">Port</string>
<string name="port_removal_notice">Bu işlem, yönlendirilen tüm portları silecek. Yerel ayarlar kaydedilecektir.</string>
<string name="privacy_disclaimer_title">Gizlilik</string>
<string name="privacy_policy_label">Gizlilik politikası</string>
<string name="problem_report_description">Size daha etkili bir şekilde yardımcı olmak için uygulamanızın günlük dosyası bu mesaja eklenecektir. Verileriniz şifrelenmiş bir kanal üzerinden gönderilmeden önce anonimleştirildiği için güvenli ve gizli kalacaktır.</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">到期时间</string>
<string name="pay_to_start_using">要开始使用本应用,您首先需要向帐户中充入时间。</string>
<string name="port">端口</string>
<string name="port_removal_notice">这将删除所有转发的端口。将保存本地设置。</string>
<string name="privacy_disclaimer_title">隐私</string>
<string name="privacy_policy_label">隐私政策</string>
<string name="problem_report_description">为了更有效地帮助您,您应用的日志文件将被附加到此消息。您的数据将保持安全和私密,因为所有数据在发送之前都将通过加密通道进行匿名处理。</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<string name="paid_until">支付至</string>
<string name="pay_to_start_using">需先在帳戶中加時,才能開始使用本應用程式。</string>
<string name="port">連接埠</string>
<string name="port_removal_notice">這將刪除所有轉送的連接埠。將儲存本機設定。</string>
<string name="privacy_disclaimer_title">隱私權</string>
<string name="privacy_policy_label">隱私權政策</string>
<string name="problem_report_description">為了更有效協助您,會將應用程式的日誌檔將附加到此郵件。您的資料會保持安全和私密性,因為這些資料會先經過匿名處理,再透過加密通道傳送。</string>
Expand Down
1 change: 0 additions & 1 deletion android/lib/resource/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
<string name="confirm_removal">Yes, log out device</string>
<string name="continue_login">Continue with login</string>
<string name="failed_to_fetch_devices">Failed to fetch list of devices</string>
<string name="port_removal_notice">This will delete all forwarded ports. Local settings will be saved.</string>
<string name="copy_account_number">Copy account number</string>
<string name="hide_account_number">Hide account number</string>
<string name="show_account_number">Show account number</string>
Expand Down
Loading
Loading