17 Commits

Author SHA1 Message Date
shannon
54d04aed4e Continue to make MastodonAuthenticationBox the standard form of passing user information
Further simplify the AuthenticationViewModel and the public interface of AuthenticationServiceProvider.

Publish currentActiveUser from AuthenticationServiceProvider instead of assuming all callers know to take the first in the list as the active one.

contributes to iOS-319
2024-11-19 12:09:55 -05:00
shannon
40ec6e94b2 Move a very specific extension to the one file that uses it
contributes to iOS-319
2024-11-19 12:09:05 -05:00
shannon
35f1280904 Make view models @MainActor 2024-11-15 14:15:01 -05:00
shannon
c4442fe8a9 Fix crash on launch due to infinite loop
And more honestly about singletons.
2024-11-15 12:25:58 -05:00
shannon
5dcc64b094 Simplify MasotodonAuthenticationBox 2024-11-14 11:17:22 -05:00
Nathan Mattes
c3d40d260d Use accounts for shortcut-extension (IOS-192)
This is broken atm, see #1204
2024-01-05 11:29:25 +01:00
Nathan Mattes
6df7cf8a80 Don't use core data in memory (for now) 2023-10-11 15:52:05 +02:00
Marcus Kida
55afa02b52 Try migrating old auth to keychain 2023-06-13 15:11:50 +02:00
Marcus Kida
d570d3ef09 Replace MastodonAuthentication to not be backed by CoreData 2023-06-13 14:47:43 +02:00
Marcus Kida
c7c635d32a
Implement MastodonAccountInMemoryCache (I)OS-140) 2023-05-09 11:15:28 +02:00
Nathan Mattes
2b2a879905
Merge pull request #900 from j-f1/set-intent-url
Intent: Set the `url` property of the Post object before returning it
2023-02-07 20:26:38 +01:00
Jed Fox
a56477b896
Further tweak 2023-02-07 13:47:30 -05:00
Jed Fox
2374a6552b
Clarify the logic for setting the URL 2023-02-07 13:37:36 -05:00
Jed Fox
c93bfa7329
Set the url property of the Post object before returning it 2023-02-07 13:35:17 -05:00
Jed Fox
0a9689c67f
Add support for selecting the post language (#907)
* Basic fake language picker support

* Recognize languages from post text

* Exclude suggested languages from recents

* Load recent languages from Settings object

* Send the language to the API

* Persist the used language to settings

* Always show the currently selected language in the list

* Fix crash

* Add support for picking arbitrary lanuages

* Fix display of 3 letter language codes

* Improve label to include endonym too

* Limit to 3 recent languages

* Reduce lower bound for displaying language suggestions

* Fix saving recent language when publishing

* Fix tint color of language picker button

* Add a badge to prompt users to change language

* Dismiss the badge even if you pick the same language

* Read language names in the language if possible

* Use a compressed font for 3-letter codes

Also use `minimumScaleFactor` to shrink troublesome codes to fit

Co-Authored-By: samhenrigold <49251320+samhenrigold@users.noreply.github.com>

* Remove .vscode/launch.json

* Add message to fatalError()

Co-authored-by: samhenrigold <49251320+samhenrigold@users.noreply.github.com>
2023-01-24 01:50:10 +01:00
CMK
64f3d2fe3a chore: [WIP] move core logic into package 2022-09-30 19:28:09 +08:00
CMK
69d790c45d feat: allow select accounts for SendPost Siri shortcut intent. resolve #446 2022-06-09 18:09:28 +08:00