Commit Graph

4630 Commits

Author SHA1 Message Date
bjoern a6ea240c26 cleanup base activities (#2508)
* remove superfluous overwrites

* move initFragment() to BaseActivity so that it can be better accessed
2023-03-25 00:12:17 +01:00
link2xt a908fc5e20 Run nix flake update 2023-03-24 14:45:56 +00:00
bjoern 3cede346f3 add multi-device-setup (#2493)
* add DcBackupProvider add receiveBackup() wrappers

* add 'Add Another Device' item to settings

* add android-ifaddrs

core-rust uses getifaddrs() which is not available on android ndk.
pull in the code from https://github.com/morristech/android-ifaddrs
that provides an implementation.

* add BackupProviderActivity

* make SVG-hack reusable

* add BackupProviderFragment

* prepare scanning backup codes

* Revert "add android-ifaddrs"

This reverts commit 33b1424427620396f282805d37f8e05c67758546.

* more logging

* call receiveBackup() on scanning DC_QR_BACKUP

* Fixup for recvmmsg fallback

* protect BackupProviderActivity by system secret

* show transfer progress as provided form the core; hide qr-code once scanned

* add a permanent notification for the provider

* clarify what we are waiting for

* add a permanent notification for the receiver

* ask before finishing BackupProviderActivity

* it is fine to cancel the abort question by tapping outside the alert

* remove outdated comment from 'keep screen on'

* add and check TRANSFER_MODE

* rename BackupProviderActivity to BackupTransferActivity

* use our base activity

* start/stop IO in base activity

* use BackupTransferActivity also for scanning

* add BackupReceiverFragment

* show detailed transfer progress

* show details instead of percent during preparation, for now

* launch chatlist and remove welcome when transfer is done

* redirect to chatlist automatically after transfer succeeded

* reword

* make log accessible from send and receive activities

* bump version

* show error if backup provider creation fails

* remove unneeded format()

* show some context in the errors alerts, hide QR code sooner

* calculate transfer percentage as specified

* show a 'close' instead of a 'back' button to make visually clear, things are aborted (there is a quesion anyway)

* add option to copy backup-qr-code to clipboard

* remove vague retry statement, core will show a detailed error soon

* warn about QR codes on clipboard getting invalidated

* make basic strings translatable

* add troubleshooting menu item (once help is evolved, it may be a more visible button, may be localized, may be offline)

* rename to backup_transfer_fragment.xml

* add detailed instructions

* move 1,2,3 layout to the .xml

* fix layout

* use text size used elsewhere

* do best effort to show SSID on sending device

* make SSID code reusable for receiver

* adapt to otherwise used font style

* show ssid also for receiver

* minor refactorings

* make qr code subtitle translatable

* tune down 'same network hint' on scanning device

* add progress bar to provider

* add progress bar to receiver

* bump version

* use 'Add Second Device' wording

this seems slightly catchier as "Add Another Device"
and has less "A" esp. in "Add as Another Device" :)

also at least translation to german seems nicer ("Zweitgerät"),
most ppl will use max. two devices, but even if more,
that should still be fine.

this was also the first intuition also by other devs in their mockups,
so we'll give it a try.

* use "Exporting/Preparing/Prepared Account" wording

let's give that a try - "Account" is also widely used,
so that seems to make some sense.
even if not 100% fitting,
it seems better than introducing the new term "Collection".

* refine abort question

* Update res/layout/backup_provider_fragment.xml

Co-authored-by: Hocuri <hocuri@gmx.de>

* Update src/org/thoughtcrime/securesms/qr/BackupProviderFragment.java

Co-authored-by: Hocuri <hocuri@gmx.de>

* Update src/org/thoughtcrime/securesms/qr/BackupReceiverFragment.java

Co-authored-by: Hocuri <hocuri@gmx.de>

* Update src/org/thoughtcrime/securesms/qr/BackupTransferActivity.java

Co-authored-by: Hocuri <hocuri@gmx.de>

* Update src/org/thoughtcrime/securesms/qr/BackupReceiverFragment.java

Co-authored-by: Hocuri <hocuri@gmx.de>

* remove string duplicate

* refine 1,2,3

* simplify string ids

* focus on what matters

---------

Co-authored-by: link2xt <link2xt@testrun.org>
Co-authored-by: Hocuri <hocuri@gmx.de>
2023-03-24 15:22:26 +01:00
B. Petersen 9a8d7b6b0f update translations 2023-03-22 15:46:03 +01:00
Asiel Díaz Benítez 1523e7bc07 add app icon to webxdc info messages (#2503)
* add app icon to webxdc info messages

* Update res/layout/conversation_item_update.xml

Co-authored-by: Hocuri <hocuri@gmx.de>

* check if info message type is DcMsg.DC_INFO_WEBXDC_INFO_MESSAGE before loading parent message

---------

Co-authored-by: Hocuri <hocuri@gmx.de>
2023-03-22 15:44:56 +01:00
Hocuri 2a23d0826c Improve readme (#2504)
to prevent this problem in the future:
https://support.delta.chat/t/building-instruction-on-github-page-arent-working/2081/27

Supersedes #2285, but
1. doesn't require the Readme to be updated the NDK is updated
2. Adapted to the changes to Dockerfile.
2023-03-21 21:00:16 +01:00
B. Petersen 4c3441be66 update translations 2023-03-19 11:05:41 +01:00
bjoern 44f3865bb3 use term "Wallpaper" instead of "Background" (#2501)
in english "Background" is already used for "Background connection",
"Background App Refresh", "Background Notification",
so using another term here make things clearer -
esp. when the option is seen without futher context.

also, many other app prefer "Wallpaper", eg. iOS, Android, Signal, WhatsApp ...
so it is also known from there.

all in all, the new term seems much clearer and
avoids misunderstandings.

note: this change is about english only,
no need to re-translate the other languages,
where "Wallpaper" may also should strange;
i added a hint that translators do not need to use the term literally.
2023-03-19 10:57:33 +01:00
B. Petersen 96e93abdf4 update translations 2023-03-18 16:34:10 +01:00
B. Petersen 4f421d9c96 bump version 2023-03-16 20:40:02 +01:00
B. Petersen 490dbf0f80 update translations 2023-03-16 16:47:15 +01:00
B. Petersen e6713a9468 bump version to 1.35.0 2023-03-14 21:22:19 +01:00
B. Petersen 900fa11a78 update translations 2023-03-14 21:20:49 +01:00
bjoern 56cac342f9 streamline "App" wording (#2500)
the term "App" and "Apps" seems to be clear enough inside Delta Chat.
from outside, other terms may still be used to clarify things.
2023-03-14 21:09:19 +01:00
B. Petersen 6f47ba5289 update translations 2023-03-14 21:05:30 +01:00
Asiel Díaz Benítez 33db24b41f Merge pull request #2496 from deltachat/adb/improve-qr-show
set background image for QrShowFragment
2023-03-14 13:44:06 -04:00
adbenitez b116da053c set background image for QrShowFragment 2023-03-14 11:29:57 -04:00
B. Petersen 1ceef89ae8 update translations 2023-03-14 15:47:11 +01:00
bjoern 69600179d2 fix "empty hints" for "all media" view (#2499)
a common hint makes things easier,
and also has the advantage, that it is more clear to the user what the
focus of this view is as it picks up the wording from the title.
2023-03-14 15:41:54 +01:00
B. Petersen 8956838641 clarify 'Clear Chat', remove string prefix (we add new prefixes or postfixes only if the raw one is not free) 2023-03-14 11:31:26 +01:00
Asiel Díaz Benítez b4682b9d79 Merge pull request #2497 from deltachat/adb/tweak-menus
tweak main menu and settings
2023-03-13 20:27:03 -04:00
Asiel Díaz Benítez 920889c119 Merge pull request #2175 from deltachat/adb-clear-chat
allow to remove all messages from current chat
2023-03-13 20:18:44 -04:00
adbenitez 75f3a7c0df tweak main menu and settings 2023-03-13 19:45:09 -04:00
adbenitez ffb788e4b6 add "clear chat" 2023-03-13 19:08:06 -04:00
Asiel Díaz Benítez bdf0029085 Merge pull request #2489 from deltachat/adb/add-all-media
Add "All Media" option to global menu
2023-03-13 15:40:43 -04:00
Asiel Díaz Benítez 25c192573e Merge pull request #2464 from deltachat/adb/multi-account-notifications
allow notifications for all accounts
2023-03-13 15:00:24 -04:00
adbenitez 4f457a5e62 add "All Media" option to global menu 2023-03-13 14:54:19 -04:00
link2xt 2986d46717 Run nix flake update 2023-03-10 11:04:58 +00:00
B. Petersen 005475c521 update translations 2023-03-08 19:33:37 +01:00
B. Petersen bd973ab377 remove dead code, follow up to #2456 2023-03-08 19:32:40 +01:00
meganoahj 6c8613d3f5 Removed create group button from contact info screen (#2456)
closes #2432

Co-authored-by: meganoahj <s3ccg@testrun.org>
2023-03-08 19:27:50 +01:00
link2xt 03a98f5e78 scripts/ndk-make.sh: enable debug builds explicitly with --debug
Currently F-Droid builds split architecture .apks
by invoking ndk-make.sh with architecture argument.
This results in debug builds of the core.

This change makes debug builds explicit.
2023-03-07 10:46:58 +00:00
link2xt 9b3d5df1fd Add fallback implementations for sendmmsg, recvmmsg and getauxval (#2491)
These functions are not available in related NDK,
so we provide a fallback implementation for them.
2023-03-06 23:04:39 +01:00
bjoern 08bb30eb3a add codespell, fix typos (#2490)
* add script to call codespell utility

* fix typos found by scripts/codespell.sh
2023-03-06 13:44:46 +01:00
link2xt 1eb04a8bcb scripts/ndk-make.sh: set ranlib path 2023-03-04 01:12:06 +00:00
link2xt fd421a126d nix: add SDK command line tools to PATH 2023-03-04 00:45:25 +00:00
link2xt 86af180095 scripts/ndk-make.sh: remove CFLAGS setting
Setting __ANDROID_API__ manually causes
  '__ANDROID_API__' macro redefined [-Werror,-Wmacro-redefined]
when compiling the `ring` crate dependency.

TARGET_CC wrapper should set necessary variables itself.

See similar issue in the `ring` bugtracker for explanation:
https://github.com/briansmith/ring/issues/1519
2023-03-04 00:13:17 +00:00
link2xt e56f24b014 nix: add NDK toolchain binaries to PATH
Otherwise gradle is unable to strip native binary
and the resulting .apk is 85M instead of 59M.
2023-03-03 13:25:34 +00:00
link2xt dc94b8614d Add Nix development environment 2023-03-01 14:54:40 +00:00
link2xt 84a767dc17 scripts/ndk-make.sh: use absolute paths for TARGET_{CC,AR}
Do not assume that $PATH contains toolchain bin/
2023-03-01 00:27:25 +00:00
link2xt be8f9f1468 scripts/ndk-make.sh: export RUSTUP_TOOLCHAIN
This allows to build the core on systems without rustup.
In this case system rust is used,
but there is no error due to `+1.64.0`
being unknown argument to non-rustup cargo.
2023-03-01 00:27:25 +00:00
link2xt 8ed79c5b27 scripts/ndk-make.sh: unset RUSTFLAGS
Common way to configure `mold` is to set

    RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=/usr/bin/mold"

This breaks cross-compilation, as wrong linker is used.
2023-03-01 00:27:25 +00:00
link2xt 63fc13179b scripts/ndk-make.sh: escape grep argument
This makes `scripts/ndk-make.sh` print meaningful error.
2023-03-01 00:26:43 +00:00
link2xt df58225192 Revert "add epoll_create fallback which is missing in API<21"
This reverts commit e29b6f9974.

Since update to `mio` 0.8.5, it does not require `epoll_create1()`
function to be present on Android anymore.
2023-02-24 12:55:45 +00:00
B. Petersen 9d9932775a update translations 2023-02-23 20:22:44 +01:00
bjoern 2b75ec5515 remove unused lines; the iframe should include webxdc.js as needed (#2474) 2023-02-23 13:10:51 +01:00
B. Petersen 95d58765e2 update translations 2023-02-23 12:52:25 +01:00
B. Petersen 7ece7b1ca9 amend f-droid changelog from CHANGELOG 2023-02-20 21:05:57 +01:00
B. Petersen e129602996 update f-droid changelog from CHANGELOG 2023-02-20 21:04:18 +01:00
B. Petersen 6a677517fc update translations 2023-02-13 11:24:16 +01:00