Commit Graph

6024 Commits

Author SHA1 Message Date
Nik Clayton 85ab714ec1
feat: Add option to save attachments to per-account folders (#945)
The existing code downloaded any attachments to the user's "Downloads"
folder. If the user is logged in with several accounts these downloads
will be mixed up together.

Fix this by adding a new preference that allows the user to specify the
downloads should be placed in a sub-folder per account, named after the
account.

To do this:

- Add an interface for enums that can be used as preferences, with
properties for the string resource to display and the value to store.
- Add `EnumListPreference`, a `ListPreference` that allows the user to
choose between different enum values.
- Add a `DownloadLocation` enum and preference key so the user can
choose the location.
- Add a `core.domain` module, with a use case for downloading URLs that
respect's the user's download preference. Use this use-case everywhere
that files are currently downloaded.

Fixes #938
2024-09-26 13:51:30 +02:00
renovate[bot] 91284ffad1
chore(deps): update actions/upload-artifact digest to 5076954 (#921)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[actions/upload-artifact](https://redirect.github.com/actions/upload-artifact)
| action | digest | `834a144` -> `5076954` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/pachli/pachli-android).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-25 17:27:39 +02:00
renovate[bot] 4005f511f5
chore(deps): update actions/setup-java digest to b36c23c (#940)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/setup-java](https://redirect.github.com/actions/setup-java) |
action | digest | `6a0805f` -> `b36c23c` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/pachli/pachli-android).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-25 17:27:07 +02:00
Nik Clayton 3f9ee1d9c8
fix: Show notification fetch errors instead of JSON (#942)
Previous code showed any JSON-wrapped errors from notification fetches
as the JSON string, instead of the error message.

Fix this by switching to `ApiResult` and using the formatted error
message.

Fixes 937
2024-09-25 13:49:43 +02:00
Nik Clayton 561c26ad4d
fix: Save the reading position if no post is fully visible (#941)
Previous code saved the reading position of a fully visible status. But
there are situations where no status is fully visible.

1. The user is in the middle of viewing a status longer than the screen
height, and the top/bottom of the status are off the top/bottom of the
screen.

2. The user has scrolled between two statuses. Collectively they are
longer than the screen height, and the top of one status is off the top
of the screen and the bottom of the other status is off the bottom of
the screen.

In both cases the user's reading position was not saved.

In these situations use the ID of the status closest to the bottom of
the screen, even if not fully visible. This should ensure the user never
missing anything.

Fixes #936
2024-09-25 11:45:33 +02:00
renovate[bot] 494246097d
fix(deps): update dependency com.github.unifiedpush:android-connector to v2.5.0 (#915)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[com.github.UnifiedPush:android-connector](https://unifiedpush.org/developers/android/)
([source](https://codeberg.org/UnifiedPush/android-connector)) | `2.4.0`
-> `2.5.0` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/com.github.UnifiedPush:android-connector/2.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.github.UnifiedPush:android-connector/2.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.github.UnifiedPush:android-connector/2.4.0/2.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.github.UnifiedPush:android-connector/2.4.0/2.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>UnifiedPush/android-connector
(com.github.UnifiedPush:android-connector)</summary>

###
[`v2.5.0`](https://codeberg.org/UnifiedPush/android-connector/releases/tag/2.5.0)

[Compare
Source](https://codeberg.org/UnifiedPush/android-connector/compare/2.4.0...2.5.0)

- Avoid possible desynchronization that let the app use the token of a
removed instance
- Deprecate `registerAppWithDialog` in favor of the new lib
`org.unifiedpush.android:connector-ui`
- Drop toolchains in favor of compatibility API, removing requirement of
Java version to build project
-   Bump dependencies

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/pachli/pachli-android).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41Ni4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nik Clayton <nik@ngo.org.uk>
2024-09-25 11:20:58 +02:00
Weblate (bot) 5505180868
fix(l10n): Translations update from Hosted Weblate (#933)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for [Pachli/Fastlane
Metadata](https://hosted.weblate.org/projects/pachli/fastlane-metadata/).


It also includes following components:

* [Pachli/Core/Activity :
Main](https://hosted.weblate.org/projects/pachli/coreactivity-main/)

* [Pachli/App :
Google](https://hosted.weblate.org/projects/pachli/app-google/)

* [Pachli/Feature/Suggestions :
Main](https://hosted.weblate.org/projects/pachli/featuresuggestions-main/)

* [Pachli/Core/Designsystem :
Main](https://hosted.weblate.org/projects/pachli/coredesignsystem-main/)

* [Pachli/Core/Network :
Main](https://hosted.weblate.org/projects/pachli/corenetwork-main/)

*
[Pachli/Feature/Login](https://hosted.weblate.org/projects/pachli/featurelogin/)

* [Pachli/Core/Ui :
Main](https://hosted.weblate.org/projects/pachli/coreui-main/)

* [Pachli/Core/Activity :
Orange](https://hosted.weblate.org/projects/pachli/coreactivity-orange/)

* [Pachli/Feature/About :
Main](https://hosted.weblate.org/projects/pachli/featureabout-main/)

* [Pachli/Core/Data :
Main](https://hosted.weblate.org/projects/pachli/coredata-main/)

* [Pachli/App :
Main](https://hosted.weblate.org/projects/pachli/app-main/)

* [Pachli/App :
Fdroid](https://hosted.weblate.org/projects/pachli/app-fdroid/)

* [Pachli/Feature/Lists :
Main](https://hosted.weblate.org/projects/pachli/featurelists-main/)



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/pachli/fastlane-metadata/horizontal-auto.svg)

---------

Co-authored-by: sunniva <schildkroteskoldpadda@gmail.com>
Co-authored-by: LibreTranslate <noreply-mt-libretranslate@weblate.org>
Co-authored-by: ButterflyOfFire <boffire@users.noreply.hosted.weblate.org>
2024-09-20 15:53:28 +02:00
Nik Clayton aec657d49a
refactor: Use ApiResult for requests that return lists of accounts (#932)
Previous code used `Response`. Convert to `ApiResult` as part of the
work to implement anti-harassment controls, which will need to query the
user's list of accounts they are following.

Converting just `accountFollowing` wasn't practical, as all the methods
are called by a single function in `AccountListFragment` which expects
the return type to be the same.
2024-09-09 13:12:26 +02:00
Nik Clayton 9e1f5b426d fix(l10n): Update Galician translations
Currently translated at 100.0% (17 of 17 strings)

Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/gl/
2024-09-09 10:06:19 +02:00
Nik Clayton fb7cc6f22f fix(l10n): Update Gaelic translations
Currently translated at 100.0% (17 of 17 strings)

Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/gd/
2024-09-09 10:06:19 +02:00
Nik Clayton 0a5b81a86e fix(l10n): Update Chinese (Simplified) (zh_MO) translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/zh_MO/
2024-09-09 10:06:19 +02:00
Nik Clayton 861be1a615 fix(l10n): Update Chinese (Simplified Han script, Singapore) translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/zh_Hans_SG/
2024-09-09 10:06:19 +02:00
Nik Clayton 469bd67d39 fix(l10n): Update Chinese (Simplified Han script) translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/zh_Hans/
2024-09-09 10:06:19 +02:00
Nik Clayton e595fced56 fix(l10n): Update Chinese (Traditional Han script) translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/zh_Hant/
2024-09-09 10:06:19 +02:00
Nik Clayton 37032c5a91 fix(l10n): Update Slovak translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/sk/
2024-09-09 10:06:19 +02:00
Nik Clayton 0e4a5747d7 fix(l10n): Update Indonesian translations
Currently translated at 12.5% (3 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/id/
2024-09-09 10:06:19 +02:00
Nik Clayton 6c10530c31 fix(l10n): Update Polish translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/pl/
2024-09-09 10:06:19 +02:00
Nik Clayton e5d7a12dba fix(l10n): Update Czech translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/cs/
2024-09-09 10:06:19 +02:00
Nik Clayton 4b40b3c182 fix(l10n): Update Ukrainian translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/uk/
2024-09-09 10:06:19 +02:00
Nik Clayton f929c786d8 fix(l10n): Update Chinese (Traditional Han script, Hong Kong) translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/zh_Hant_HK/
2024-09-09 10:06:19 +02:00
Nik Clayton bda477eb84 fix(l10n): Update Thai translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/th/
2024-09-09 10:06:19 +02:00
josé m e5b87a0421 fix(l10n): Update Galician translations
Currently translated at 100.0% (62 of 62 strings)

Translation: Pachli/Feature/About : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/featureabout-main/gl/
2024-09-09 10:06:19 +02:00
josé m 95e924a5ef fix(l10n): Update Galician translations
Currently translated at 100.0% (731 of 731 strings)

Translation: Pachli/App : Main
Translate-URL: https://hosted.weblate.org/projects/pachli/app-main/gl/
2024-09-09 10:06:19 +02:00
josé m 95c9ba7f96 fix(l10n): Update Galician translations
Currently translated at 100.0% (17 of 17 strings)

Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/gl/
2024-09-09 10:06:19 +02:00
Aindriú Mac Giolla Eoin bc896d1ee8 fix(l10n): Update Irish translations
Currently translated at 100.0% (17 of 17 strings)

Translation: Pachli/Feature/Login
Translate-URL: https://hosted.weblate.org/projects/pachli/featurelogin/ga/
2024-09-09 10:06:19 +02:00
LibreTranslate 73004a1a56 fix(l10n): Update Chinese (Simplified) (zh_MO) translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/zh_MO/
2024-09-09 10:06:19 +02:00
LibreTranslate b2ce596158 fix(l10n): Update Chinese (Simplified Han script, Singapore) translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/zh_Hans_SG/
2024-09-09 10:06:19 +02:00
LibreTranslate adc716b00e fix(l10n): Update Chinese (Simplified Han script) translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/zh_Hans/
2024-09-09 10:06:19 +02:00
LibreTranslate 32cc40ca49 fix(l10n): Update Chinese (Traditional Han script) translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/zh_Hant/
2024-09-09 10:06:19 +02:00
LibreTranslate 45598c89d6 fix(l10n): Update Portuguese (Portugal) translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/pt_PT/
2024-09-09 10:06:19 +02:00
LibreTranslate 723e549717 fix(l10n): Update Slovak translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/sk/
2024-09-09 10:06:19 +02:00
LibreTranslate e9ca534054 fix(l10n): Update Korean translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/ko/
2024-09-09 10:06:19 +02:00
LibreTranslate 877b2fe8ea fix(l10n): Update Finnish translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/fi/
2024-09-09 10:06:19 +02:00
LibreTranslate b811d43f9f fix(l10n): Update Persian translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/fa/
2024-09-09 10:06:19 +02:00
LibreTranslate eaaca4c8a8 fix(l10n): Update French translations
Currently translated at 12.5% (3 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/fr/
2024-09-09 10:06:19 +02:00
LibreTranslate 65098cae62 fix(l10n): Update Spanish translations
Currently translated at 100.0% (24 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/es/
2024-09-09 10:06:19 +02:00
LibreTranslate 19d32cc145 fix(l10n): Update Indonesian translations
Currently translated at 12.5% (3 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/id/
2024-09-09 10:06:19 +02:00
LibreTranslate a48e696b4c fix(l10n): Update Arabic translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/ar/
2024-09-09 10:06:19 +02:00
LibreTranslate 6898d98bc0 fix(l10n): Update Italian translations
Currently translated at 12.5% (3 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/it/
2024-09-09 10:06:19 +02:00
LibreTranslate 6ddc9c01a5 fix(l10n): Update Polish translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/pl/
2024-09-09 10:06:19 +02:00
LibreTranslate 113251bddf fix(l10n): Update Hebrew translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/he/
2024-09-09 10:06:19 +02:00
LibreTranslate 60c8b4224e fix(l10n): Update Hindi translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/hi/
2024-09-09 10:06:19 +02:00
LibreTranslate a595d08dd7 fix(l10n): Update Hungarian translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/hu/
2024-09-09 10:06:19 +02:00
LibreTranslate bb5c8a45a0 fix(l10n): Update Czech translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/cs/
2024-09-09 10:06:19 +02:00
LibreTranslate 516b7624ef fix(l10n): Update Catalan translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/ca/
2024-09-09 10:06:19 +02:00
LibreTranslate f83797a719 fix(l10n): Update Japanese translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/ja/
2024-09-09 10:06:19 +02:00
LibreTranslate b17dda36b6 fix(l10n): Update Ukrainian translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/uk/
2024-09-09 10:06:19 +02:00
LibreTranslate 83d6fe2f5c fix(l10n): Update Russian translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/ru/
2024-09-09 10:06:19 +02:00
LibreTranslate df99bed9bd fix(l10n): Update Esperanto translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/eo/
2024-09-09 10:06:19 +02:00
LibreTranslate 6cdf17303c fix(l10n): Update Greek translations
Currently translated at 16.6% (4 of 24 strings)

Translation: Pachli/Fastlane Metadata
Translate-URL: https://hosted.weblate.org/projects/pachli/fastlane-metadata/el/
2024-09-09 10:06:19 +02:00