Commit Graph

269 Commits

Author SHA1 Message Date
bjoern f18831b196 set targetSdkVersion to 33 (#2649)
* set targetSdkVersion to 33

* api33 requires permission NEARBY_WIFI_DEVICES to access wifi

not sure, if this affects getSystemService(Context.WIFI_SERVICE),
however, we anyway do not ask for permissions here but just try/catch -
if things do not work, we just cannot get the wifi name

(we're not asking for permission as this would require LOCATION in the past -
and that would scare users that just installed Delta Chat
and select "Add Second Devive".
this is the exact reason why NEARBY_WIFI_DEVICES was introduced, btw.
so in case getting the Wifi name does not work on api33,
we can consider asking for a permission - would still be on startup, however)

* update storage permissions in manifest

according to https://developer.android.com/training/data-storage/shared/media#storage-permission

* also update compileSdkVersion

* api33: adapt audio permission request

* api33: adapt gallery permission request

* request correct permissions for the 'photo rail'

* request correct permissions for avatar selection

* api33: storage and audio permission not needed

* add comment wrt 'camera roll'

* add POST_NOTIFICATIONS to the manifest, this already allows to enable notifications in the system settings

* ask for POST_NOTIFICATIONS permission on startup

* explain how to re-enable notifications if initially disabled

* prefer a device message over an alert

* show in settings if notifications are system-disabled
2023-10-03 00:42:20 +02:00
B. Petersen 12ca77ab01 create 1.40.1 release 2023-08-19 12:38:15 +02:00
bjoern a80fcf32a6 prepare 1.40.0 (#2630)
* update CHANGELOG for 1.40, core part

* update CHANGELOG for 1.40, android part

* bump version to 1.40
2023-08-05 01:04:32 +02:00
Hocuri 3becdf52ec Fix crash in the "Full Msg" view by downgrading Gson (#2610) 2023-06-30 16:29:08 +02:00
Asiel Díaz Benítez ebaa5f69c4 Merge pull request #2588 from deltachat/adb/improve-crop
use image editor for avatar selection when possible
2023-06-27 18:31:00 +02:00
bjoern 0bf64511c4 prepare 1.38.2 (#2593)
* update CHANGELOG

* bump version to 1.38.2 - google needs a fresh versionCode: due to a failed upload the old one seems burned :)
2023-06-22 08:48:12 +02:00
bjoern e6aed3a6f9 prepare 1.38.1 (#2591)
* update CHANGELOG for 1.38.1

* bump version tp 1.38.1
2023-06-21 15:38:18 +02:00
bjoern b8a38ff5cf prepare 1.38.0 (#2590)
* update changelog for 1.38.0

* update device message for 1.38.0

* bump bersion to 1.38.0

* make device message translatable
2023-06-20 11:38:45 +02:00
adbenitez 592607dd0e use image editor for avatar selection when possible
also update old android-crop dependency
2023-06-11 20:22:43 +02:00
adbenitez 75a387be6c update dependency com.github.penfeizhou.android.animation:glide-plugin:2.25.0 2023-06-09 14:29:07 +02:00
bjoern 167920b90f prepare 1.37.0 (#2584)
* update CHANGELOG for 1.37.0, core part

* update CHANGELOG for 1.37.0, android part

* bump version to 1.37.0

* update device message
2023-06-07 19:46:40 +02:00
adbenitez 941627db6e move Rpc class to com.b44t.messenger.rpc package 2023-04-25 20:09:59 -04:00
bjoern 5e8294eb64 prepare 1.36.5 (#2548)
* update changelog for 1.36.5

* bump version to 1.36.5
2023-04-20 22:32:05 +02:00
B. Petersen a98a21092c bump version to 1.36.4, fixing reported core version 2023-04-18 13:34:05 +02:00
bjoern 8c026738f4 prepare 1.36.3 (#2545)
* update changelog for 1.36.3

* bump version to 1.36.3
2023-04-17 23:23:35 +02:00
link2xt 0e307bc4a7 Set ndkVersion in build.gradle 2023-04-15 14:22:08 +00:00
link2xt 22058dd81d Setup Android plugin using plugins and pluginManagement 2023-04-14 13:08:52 +00:00
link2xt 8e2dd50d89 Upgrade from Gradle 7.5 to Gradle 8.0.2
Upgraded gradle plugin from 7.2.2 to 7.4.2.

Upgraded gradle wrapper with

    ./gradlew wrapper --gradle-version 8.0.2 --gradle-distribution-sha256-sum=ff7bf6a86f09b9b2c40bb8f48b25fc19cf2b2664fd1d220cd7ab833ec758d0d7

This command updated gradle/wrapper/gradle-wrapper.properties.
Checksum for 8.0.2 is copied from <https://gradle.org/release-checksums/>.

Replaced deprecated "package" attribute with "namespace" in build.gradle.
2023-04-14 13:08:52 +00:00
bjoern da517bdc9b prepare 1.36.2 (#2535)
* update deltachat-core-rust to 'ref: More logging for ongoing and get_backup (#4289)' of branch 'stable-1.112'

* update changelog for 1.36.2

* bump version to 1.36.2

* add some feedback at end of upload-release script, similar to upload-beta
2023-04-05 15:41:15 +02:00
bjoern affd120ba4 prepare 1.36 (#2522)
* update changelog for 1.36, core part

* update changelog for 1.36, android part

* bump version to 1.36

* add device message for 1.36

* qualify 'Add Second Device' as experimental also in device message

* apply recent suggestions to CHANGELOG
2023-03-29 12:32:42 +02:00
B. Petersen 032603a868 bump version 2023-03-25 10:24:51 +01: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 4f421d9c96 bump version 2023-03-16 20:40:02 +01:00
B. Petersen e6713a9468 bump version to 1.35.0 2023-03-14 21:22:19 +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
bjoern 8620b85416 prepare 1.34.13 (#2472)
* update CHANGELOG for 1.34.13

* nudge outselves to drop a line about what to test

the changelog is not always sufficient for that.

* bump version to 1.34.13
2023-02-09 23:21:00 +01:00
bjoern 904efe872b prepare 1.34.12 (#2467)
* update CHANGELOG for 1.34.12

* bump version to 1.34.12
2023-02-06 00:12:19 +01:00
bjoern 699d97cccc prepare 1.34.11 (#2459)
* update changelog for 1.34.11

* bump version to 1.34.11
2023-01-31 21:36:27 +01:00
bjoern 90c4399d2a prepare 1.34.10 (#2447)
* update CHANGELOG for 1.34.9

* bump version to 1.34.9

* add a little device message for the 1.34.9 update

* add f-droid changelog

* make device message more clear and add it only for existing installations

* bump to 1.34.10
2023-01-11 10:54:02 +01:00
bjoern 949cb3fafb prepare 1.34.8 (#2438)
* update changelog

* bump version to 1.34.8

* mark recent testrun vesions as such
2022-12-21 20:18:27 +01:00
bjoern b016ccc6dd prepare 1.34.7 (#2436)
* update CHANGELOG for 1.34.7

* bump version to 1.34.7
2022-12-16 16:11:28 +01:00
bjoern 4d22d91e98 prepare 1.34.5 (#2428)
* update changelog for 1.34.5

* bump version to 1.34.5
2022-11-15 20:01:10 +01:00
bjoern ae0be1302c prepare 1.34.4 (#2424)
* update changelog for 1.34.4

* bump version to 1.34.4
2022-11-12 23:15:34 +01:00
bjoern f9ce0baea1 prepare 1.34.3 (#2412)
* update changelog for 1.34.3

* bump version to 1.34.3
2022-11-02 10:49:26 +01:00
bjoern 33bbfaf951 prepare 1.34.2 (#2406)
* update changelog for 1.34.2

* bump version to 1.34.2
2022-10-30 17:36:30 +01:00
bjoern 443ea0cd36 bump targetSdkVersion to 32 (#2407)
* bump targetSdkVersion to 32

* explicitly set `android:exported` for `indent-filter`

this is required since targetSdkVersion 31,
https://developer.android.com/guide/components/intents-filters#Receiving

as the default was `false` before,
i just explicitly set `android:exported="false"` without looking in the details
of each filter.

* update to gradle 7.2.2; this might be needed to get warnings etc.

* update androidx dependencies

at least the update of androidx.sharetarget is required because of the missing
`android:exported`; i took the chance to update all androidx depenencies.

see https://developer.android.com/jetpack/androidx/releases/appcompat
for a CHANGELOG of each dependency.

* use explicit dependency instead of transitive ones; this fixes a weird duplicate error, see https://stackoverflow.com/questions/69817925/problem-duplicate-class-androidx-lifecycle-viewmodel-found-in-modules

* work around google's poor design decision wrt FLAG_MUTABLE

instead of setting a default behavior and logging a warning,
google crashes the application when the flag is missing on newer androids.

and setting the flag for older API seems to be undefined and therefore a lot of
Build.VERSION.SDK_INT >= Build.VERSION_CODES.M would be required each time
a PendingIntent object is constructed ...

our Util returns either the new flag or zero,
so that can just be used unconditionally on construction.

* update dependencies but exoplayer to mitigate issues with FLAG_MUTABLE

exoplayer needs more love and updating opens a can of worms;
i tested, at least in the emulator, video and voice message playback
works as usual, so let's update exoplayer if needed.
2022-10-30 16:06:24 +01:00
bjoern 35f16c80ac prepare 1.34.1 (#2395)
* update changelog for 1.34.1

* bump version to 1.34.1
2022-10-05 01:22:04 +02:00
bjoern a9c8b30c3e prepare 1.34.0 (#2392)
* bump version to 1.34.0

* update changelog for 1.34

* add core changes to CHANGELOG (core91..core95)

* add 1.34 device message

* tweak device message

* update translations
2022-10-01 23:01:26 +02:00
B. Petersen 32577b23bc bump version to beta series 2022-09-01 10:09:08 +02:00
link2xt 51efa1fb17 build.gradle: cleanup repository configuration 2022-07-30 16:15:45 +00:00
B. Petersen 9816c972e1 update version to 1.32.0 2022-07-23 00:59:23 +02:00
adbenitez c667efd3ac update org.maplibre.gl to version 9.5.2 2022-07-22 23:48:42 +02:00
B. Petersen ff22ef8bfb bump version to 1.31.1 2022-07-17 15:26:34 +02:00
bjoern 5cbb64da7a prepare 1.31.0 (#2336)
* bump version to 1.31.0

* update changelog for 1.31.0 (add core88 features)

* update changelog for 1.31.0 (android features)

* remove outdated device message, the final 1.32 will probably get a fresh one
2022-07-08 11:24:21 +02:00
B. Petersen 7547628d6b bump version to 1.30.3 2022-06-07 09:52:29 +02:00
B. Petersen 4664e51754 bump version to 1.30.2 2022-05-24 18:46:09 +02:00
adbenitez 0ab1ae9de7 exclude com.google.android.gms from apk binaries 2022-05-17 23:38:13 -04:00
B. Petersen 7cd60b2fc1 bump version to 1.30.1 2022-05-06 14:17:02 +02:00
B. Petersen ca40562669 bump version to 1.30.0 2022-05-02 21:06:22 +02:00
B. Petersen 88d776e6a4 bump beta-version to 1.29.1 2022-04-10 18:47:55 +02:00