Commit graph

622 commits

Author SHA1 Message Date
Wolf-Martell Montwé
f0353eb743
Change to AccountManager and add test for AccountLoader 2023-09-25 16:13:01 +02:00
Wolf-Martell Montwé
eff8b25a3a
Add AccountLoader 2023-09-25 16:13:00 +02:00
Wolf-Martell Montwé
8549bfc554
Add newAccount method to preferences to allow creation with given UUID 2023-09-15 11:24:17 +02:00
Wolf-Martell Montwé
61d955f774
Add AccountUpdater contract and implementation 2023-09-15 11:24:17 +02:00
Wolf-Martell Montwé
11b12f9c5e
Change named injection to typed injection for server validation to avoid issues with dependency resolution 2023-09-13 18:46:22 +02:00
Wolf-Martell Montwé
1fe926fad4
Bump Gradle 8.1.1 -> 8.3 2023-09-06 18:13:22 +02:00
Wolf-Martell Montwé
dcad7a95b6
Move server certificate to server module 2023-09-05 17:10:44 +02:00
Wolf-Martell Montwé
6acdf48e2d
Add account server validation module 2023-09-05 16:14:22 +02:00
Wolf-Martell Montwé
5fff204b95
Move shared domain from setup to common module 2023-08-31 19:07:25 +02:00
cketti
cbf480dbf7 Prepare for version 6.711 2023-08-18 19:58:01 +02:00
cketti
7aa919e097 Version 6.710 2023-08-18 18:40:20 +02:00
cketti
2b3b768eed Handle broken AuthState
The authorization state created using the new account setup in K-9 Mail 6.709 is broken and can't be used to refresh the access token. So we clear the authorization state when trying to refresh the token fails with an `IllegalStateException`.
2023-08-16 15:04:15 +02:00
cketti
40d7db53f4 Prepare for version 6.710 2023-08-14 19:17:11 +02:00
cketti
7784d37e99 Version 6.709 2023-08-14 19:10:31 +02:00
cketti
ca851d1b80 Switch to new account setup UI 2023-08-14 18:44:57 +02:00
cketti
fe80fa9166 Prepare for version 6.709 2023-08-09 00:05:45 +02:00
cketti
a51d34b756 Version 6.708 2023-08-08 22:03:12 +02:00
cketti
09240fec56 Implement AccountRemoverWorker.getForegroundInfo()
This is required to run expedited jobs on older Android versions.
2023-08-07 18:17:32 +02:00
GitStart
be83b62d32 Migrate JobIntentService to WorkManager 2023-08-07 17:07:39 +02:00
cketti
4efbf3d0d9 Add OAuth to auto discovery flow 2023-07-31 15:16:09 +02:00
cketti
8e7a5f3541 Add an AuthStateStorage parameter to ServerSettingsValidator
Typically we use `Account` to hold the (OAuth 2.0) authorization state. But during account setup we don't have an `Account` instance yet. So we allow a `ServerSettingsValidator` caller to pass an `AuthStateStorage` that we then use with `OAuth2TokenProviderFactory` to create an `OAuth2TokenProvider` instance. When setting up an account we can use an `AuthStateStorage` implementation that will simply hold the state in memory.
2023-07-29 23:36:02 +02:00
cketti
84f132c148 Add abstraction for storing and retrieving the OAuth state 2023-07-26 15:28:34 +02:00
cketti
d8598a64b3 Fix hostnames for Microsoft OAuth configuration 2023-07-20 14:50:39 +02:00
cketti
0392f86a63 Extract values from ServerSettings when creating an IMAP account 2023-07-17 15:49:39 +02:00
cketti
8c35dd5b34 Log error when creating an account fails 2023-07-17 12:39:18 +02:00
cketti
037b39a566 Fix setting account name and sender name when creating an account 2023-07-17 12:37:44 +02:00
cketti
8b07c61d18 Use signature when one was configured during account setup 2023-07-17 12:22:26 +02:00
cketti
248fd3dc2a Set folderPushMode to NONE when creating account 2023-07-17 12:17:44 +02:00
Wolf-Martell Montwé
878cc45c04
Merge pull request #7040 from thundernest/add_feature_flags
Add feature flags
2023-07-03 16:04:27 +02:00
Wolf-Martell Montwé
c781e7032d
Add FeatureFlagFactory to K9 app and use the flag in MessageList 2023-07-03 15:37:22 +02:00
Wolf-Martell Montwé
1aa69635f5
Add launch import settings 2023-07-03 15:30:57 +02:00
Wolf-Martell Montwé
6cfd9481aa
Move AccountSetupFinishedLauncher to feature launcher 2023-07-03 10:21:14 +02:00
Wolf-Martell Montwé
9bf80c2266
Change AccountSetupFinishedLauncher to use custom intent for properly launching MessageList 2023-06-30 13:18:19 +02:00
Wolf-Martell Montwé
fe180f282d
Add createAccount use case to account setup 2023-06-30 12:13:16 +02:00
Wolf-Martell Montwé
5c076d4f69
Change AccountSetupExternalContract to suspend and wrap IO operations with coroutine IO dispatcher 2023-06-30 12:04:27 +02:00
Wolf-Martell Montwé
32a8f23dc7
Add create account use case 2023-06-30 12:04:27 +02:00
Wolf-Martell Montwé
1c142876d0
Add AccountOptions and state mapper 2023-06-30 12:04:27 +02:00
Wolf-Martell Montwé
5384350689
Add AccountCreator as external dependency for the account setup 2023-06-30 12:04:27 +02:00
Wolf-Martell Montwé
88a4b7913f
Add AccountOwnerNameProvider 2023-06-29 12:24:28 +02:00
Wolf-Martell Montwé
dbdbb25cdb
Add AccountSetupFinishedLauncher 2023-06-29 12:24:28 +02:00
cketti
1e42e92b1b Include more information in IMAP-specific ServerSettings
The additional properties are necessary to validate server settings.
2023-06-23 17:13:22 +02:00
cketti
6d53e41114 Use constructor injection for "clientIdAppName" 2023-06-23 14:35:12 +02:00
Wolf-Martell Montwé
00148f1a99
Change OAuth to not use OAuthProvider enum and delegate configuration creation to the app 2023-06-21 14:05:28 +02:00
Wolf-Martell Montwé
e64d030d22
Refactor OauthConfiguration to be placed in common module with added OAuthProvder and OAuthProviderSettings 2023-06-20 15:17:47 +02:00
Wolf-Martell Montwé
9e0f1bd815
Resolve app.core dependency blocking oauth extraction 2023-06-20 15:17:45 +02:00
cketti
8973559507 Prepare for version 6.708 2023-06-19 13:49:01 +02:00
cketti
955dc2380b Version 6.707 2023-06-19 13:38:23 +02:00
cketti
e6469422a8 Prepare for version 6.707 2023-06-16 15:44:24 +02:00
cketti
f60e5e073f Version 6.706 2023-06-16 15:35:00 +02:00
cketti
656a9d3862 Use relaxed mode to parse email addresses from message headers 2023-06-15 19:32:56 +02:00