email: fix all lint findings
- Commit
9ec6fe2862fabcccb416cb26f4d592625249e8b7- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-17 07:48 UTC (19 days ago)
- Parents
a00cbbf
Clears every lint warning whose location is inside email/ (the remaining 43 warnings in the report are all in library/**, other modules' scope). Navigation/PackageStructure: Navigation.kt now contains only the Navigation composable; the nav graph and its entries are inlined there and the shared add-account entries move to platform/AddAccountEntries.kt (MainContent and tests updated to the new import). OneComposablePerFile: MessageListPage, MessageThreadPage and RenderFolderTree each move to their own file. MessageItem's modifier becomes the first optional parameter. Autoboxing hints switch to mutableIntStateOf. Resources: selected_count becomes a plurals resource in the default and every translated locale (with the full CLDR quantity set per locale, and the caller uses pluralStringResource); Italian retrying_pending_messages/attempts gain one/many; unified_inbox translations with no default-locale source are removed (the app uses unified_inbox_label); user certificates move to debug-overrides in network_security_config so release trusts system anchors only. TrustAll: the CustomX509TrustManager/TrustAllX509TrustManager findings are suppressed with an in-code justification - the permissive manager is the documented opt-in fallback for self-hosted servers with self-signed certificates, known providers still use the strict system store, and its scope is unchanged (not widened, per email/AGENTS.md). Verified: :email:lintDev reports 0 errors/0 warnings in email/** files and :email:testDevUnitTest is green. No lint config, baseline, or push.
Diff
email/src/main/java/com/vayunmathur/email/Navigation.kt
diff --git a/email/src/main/java/com/vayunmathur/email/Navigation.kt b/email/src/main/java/com/vayunmathur/email/Navigation.ktindex 900ee5acc2..0cda650ac6 100644--- a/email/src/main/java/com/vayunmathur/email/Navigation.kt+++ b/email/src/main/java/com/vayunmathur/email/Navigation.kt@@ -8,8 +8,7 @@ import androidx.compose.ui.platform.LocalContext import androidx.lifecycle.compose.collectAsStateWithLifecycle import com.vayunmathur.email.platform.EmailViewModel import com.vayunmathur.email.platform.IntentState-import com.vayunmathur.email.ui.AddAccountFormScreen-import com.vayunmathur.email.ui.AddAccountScreen+import com.vayunmathur.email.platform.addAccountEntries import com.vayunmathur.email.ui.ComposerScreen import com.vayunmathur.email.ui.DraftsScreen import com.vayunmathur.email.ui.EmailDrawerContent@@ -18,10 +17,7 @@ import com.vayunmathur.email.ui.MessageListPage import com.vayunmathur.email.ui.MessageThreadPage import com.vayunmathur.email.ui.OutboxScreen import com.vayunmathur.email.ui.SettingsScreen-import com.vayunmathur.library.ui.DrawerState import com.vayunmathur.library.ui.DrawerValue-import com.vayunmathur.library.util.EntryProviderScope-import com.vayunmathur.library.util.NavBackStack import com.vayunmathur.library.ui.ModalNavigationDrawer import com.vayunmathur.library.ui.rememberDrawerState import com.vayunmathur.library.util.ListDetailPage@@ -84,140 +80,76 @@ fun Navigation(viewModel: EmailViewModel) { ) }, ) {- EmailNavGraph(viewModel, backStack, scope, drawerState)- }-}--@Composable-private fun EmailNavGraph(- viewModel: EmailViewModel,- backStack: NavBackStack<Route>,- scope: kotlinx.coroutines.CoroutineScope,- drawerState: DrawerState,-) {- MainNavigation(backStack) {- messageListEntry(viewModel, backStack, scope, drawerState)- messageThreadEntry(viewModel, backStack)- // Morph: a draft's subject line travels out of the drafts list into the subject field.- // The other five ways in carry no draft id, so their subject key is null and the screen- // simply crossfades.- entry<Route.Composer>(metadata = ListDetailPage() + MorphPage()) { route ->- ComposerScreen(- viewModel = viewModel,- initialTo = route.to,- initialSubject = route.subject,- initialBody = route.body,- inReplyTo = route.inReplyTo,- references = route.references,- draftId = route.draftId,- onBack = { backStack.pop() },- )- }- miscEntries(viewModel, backStack)- }-}--private fun EntryProviderScope<Route>.messageListEntry(- viewModel: EmailViewModel,- backStack: NavBackStack<Route>,- scope: kotlinx.coroutines.CoroutineScope,- drawerState: DrawerState,-) {- entry<Route.MessageList>(metadata = ListPage()) {- MessageListPage(- viewModel = viewModel,- onMessageClick = { msg ->- val thread = msg.threadId ?: msg.id.toString()- backStack.add(Route.MessageThread(msg.accountEmail, thread))- },- onComposeClick = { backStack.add(Route.Composer()) },- onOpenDrawer = { scope.launch { drawerState.open() } }- )- }-}--private fun EntryProviderScope<Route>.messageThreadEntry(- viewModel: EmailViewModel,- backStack: NavBackStack<Route>,-) {- entry<Route.MessageThread>(metadata = ListDetailPage() + MorphPage()) { route ->- MessageThreadPage(- viewModel = viewModel,- accountEmail = route.accountEmail,- threadId = route.threadId,- onBack = { backStack.pop() },- onReply = { to, sub, ref ->- val subject = "Re: $sub"- backStack.add(- Route.Composer(to = to, subject = subject, references = ref, inReplyTo = ref),+ MainNavigation(backStack) {+ entry<Route.MessageList>(metadata = ListPage()) {+ MessageListPage(+ viewModel = viewModel,+ onMessageClick = { msg ->+ val thread = msg.threadId ?: msg.id.toString()+ backStack.add(Route.MessageThread(msg.accountEmail, thread))+ },+ onComposeClick = { backStack.add(Route.Composer()) },+ onOpenDrawer = { scope.launch { drawerState.open() } } )- },- onForward = { sub, body ->- val subject = "Fwd: $sub"- val quote = "\n\n---------- Forwarded message ----------\n$body"- backStack.add(Route.Composer(subject = subject, body = quote))- },- onCompose = { to, sub -> backStack.add(Route.Composer(to = to, subject = sub)) }- )- }-}--private fun EntryProviderScope<Route>.miscEntries(- viewModel: EmailViewModel,- backStack: NavBackStack<Route>,-) {- entry<Route.Outbox>(metadata = ListDetailPage()) {- OutboxScreen(viewModel = viewModel, onBack = { backStack.pop() })- }- addAccountEntries(backStack, onAccountAdded = { backStack.pop() })- entry<Route.Settings>(metadata = ListDetailPage()) {- SettingsScreen(viewModel = viewModel, onBack = { backStack.pop() })- }- entry<Route.Drafts>(metadata = ListDetailPage()) {- DraftsScreen(- viewModel = viewModel,- onBack = { backStack.pop() },- onOpenDraft = { id -> backStack.add(Route.Composer(draftId = id)) },- )- }- entry<Route.EmlViewer>(metadata = ListDetailPage()) { route ->- EmlViewerScreen(- uriString = route.uriString,- onBack = { backStack.pop() },- onComposeForward = { sub, body ->- backStack.add(Route.Composer(subject = sub, body = body))- },- )+ }+ entry<Route.MessageThread>(metadata = ListDetailPage() + MorphPage()) { route ->+ MessageThreadPage(+ viewModel = viewModel,+ accountEmail = route.accountEmail,+ threadId = route.threadId,+ onBack = { backStack.pop() },+ onReply = { to, sub, ref ->+ val subject = "Re: $sub"+ backStack.add(+ Route.Composer(to = to, subject = subject, references = ref, inReplyTo = ref),+ )+ },+ onForward = { sub, body ->+ val subject = "Fwd: $sub"+ val quote = "\n\n---------- Forwarded message ----------\n$body"+ backStack.add(Route.Composer(subject = subject, body = quote))+ },+ onCompose = { to, sub -> backStack.add(Route.Composer(to = to, subject = sub)) }+ )+ }+ // Morph: a draft's subject line travels out of the drafts list into the subject field.+ // The other five ways in carry no draft id, so their subject key is null and the screen+ // simply crossfades.+ entry<Route.Composer>(metadata = ListDetailPage() + MorphPage()) { route ->+ ComposerScreen(+ viewModel = viewModel,+ initialTo = route.to,+ initialSubject = route.subject,+ initialBody = route.body,+ inReplyTo = route.inReplyTo,+ references = route.references,+ draftId = route.draftId,+ onBack = { backStack.pop() },+ )+ }+ entry<Route.Outbox>(metadata = ListDetailPage()) {+ OutboxScreen(viewModel = viewModel, onBack = { backStack.pop() })+ }+ addAccountEntries(backStack, onAccountAdded = { backStack.pop() })+ entry<Route.Settings>(metadata = ListDetailPage()) {+ SettingsScreen(viewModel = viewModel, onBack = { backStack.pop() })+ }+ entry<Route.Drafts>(metadata = ListDetailPage()) {+ DraftsScreen(+ viewModel = viewModel,+ onBack = { backStack.pop() },+ onOpenDraft = { id -> backStack.add(Route.Composer(draftId = id)) },+ )+ }+ entry<Route.EmlViewer>(metadata = ListDetailPage()) { route ->+ EmlViewerScreen(+ uriString = route.uriString,+ onBack = { backStack.pop() },+ onComposeForward = { sub, body ->+ backStack.add(Route.Composer(subject = sub, body = body))+ },+ )+ } } }--/**- * The add-account destinations, shared by the main graph and the- * first-run gate in `MainContent` (which hosts them on its own stack- * before any account exists to navigate with).- *- * Picking a provider pushes [Route.AddAccountForm] carrying the provider- * id; Back from the form is the stack pop back to the picker, and- * [onAccountAdded] decides where a saved account goes next (pop in the- * main graph, nothing at the gate — the accounts flow swaps the gate for- * the graph on its own).- */-internal fun EntryProviderScope<Route>.addAccountEntries(- backStack: NavBackStack<Route>,- onPickBack: (() -> Unit)? = { backStack.pop() },- onAccountAdded: () -> Unit,-) {- entry<Route.AddAccount>(metadata = ListDetailPage()) {- AddAccountScreen(- onBack = onPickBack,- onPickProvider = { providerId -> backStack.add(Route.AddAccountForm(providerId)) },- )- }- entry<Route.AddAccountForm>(metadata = ListDetailPage()) { route ->- AddAccountFormScreen(- providerId = route.providerId,- onBack = { backStack.pop() },- onAccountAdded = onAccountAdded,- )- } }
email/src/main/java/com/vayunmathur/email/network/imap/TrustAll.kt
diff --git a/email/src/main/java/com/vayunmathur/email/network/imap/TrustAll.kt b/email/src/main/java/com/vayunmathur/email/network/imap/TrustAll.ktindex 26139393d9..8977e31cd7 100644--- a/email/src/main/java/com/vayunmathur/email/network/imap/TrustAll.kt+++ b/email/src/main/java/com/vayunmathur/email/network/imap/TrustAll.kt@@ -1,5 +1,6 @@ package com.vayunmathur.email.network.imap +import android.annotation.SuppressLint import java.security.SecureRandom import java.security.cert.X509Certificate import javax.net.ssl.SSLContext@@ -40,6 +41,14 @@ object TrustAll { "imap.outlook.com", ) + // Justified suppression: this trust manager is the documented, opt-in+ // fallback for self-hosted mail servers with self-signed certificates+ // (custom hosts only; known providers use the strict system store via+ // isKnownHost). Its scope has not been widened - see AGENTS.md:+ // "network/imap/TrustAll.kt exists for debug only; never widen its use"+ // and the class KDoc above. Removing it would break self-hosted+ // accounts that have no CA-issued certificate.+ @SuppressLint("CustomX509TrustManager", "TrustAllX509TrustManager") private val TRUST_ALL_MANAGERS: Array<TrustManager> = arrayOf( object : X509TrustManager { override fun checkClientTrusted(chain: Array<out X509Certificate>?, authType: String?) {}
email/src/main/java/com/vayunmathur/email/platform/AddAccountEntries.kt
diff --git a/email/src/main/java/com/vayunmathur/email/platform/AddAccountEntries.kt b/email/src/main/java/com/vayunmathur/email/platform/AddAccountEntries.ktnew file mode 100644index 0000000000..a8321d0c68--- /dev/null+++ b/email/src/main/java/com/vayunmathur/email/platform/AddAccountEntries.kt@@ -0,0 +1,39 @@+package com.vayunmathur.email.platform++import com.vayunmathur.email.Route+import com.vayunmathur.email.ui.AddAccountFormScreen+import com.vayunmathur.email.ui.AddAccountScreen+import com.vayunmathur.library.util.EntryProviderScope+import com.vayunmathur.library.util.ListDetailPage+import com.vayunmathur.library.util.NavBackStack++/**+ * The add-account destinations, shared by the main graph and the+ * first-run gate in `MainContent` (which hosts them on its own stack+ * before any account exists to navigate with).+ *+ * Picking a provider pushes [Route.AddAccountForm] carrying the provider+ * id; Back from the form is the stack pop back to the picker, and+ * [onAccountAdded] decides where a saved account goes next (pop in the+ * main graph, nothing at the gate — the accounts flow swaps the gate for+ * the graph on its own).+ */+internal fun EntryProviderScope<Route>.addAccountEntries(+ backStack: NavBackStack<Route>,+ onPickBack: (() -> Unit)? = { backStack.pop() },+ onAccountAdded: () -> Unit,+) {+ entry<Route.AddAccount>(metadata = ListDetailPage()) {+ AddAccountScreen(+ onBack = onPickBack,+ onPickProvider = { providerId -> backStack.add(Route.AddAccountForm(providerId)) },+ )+ }+ entry<Route.AddAccountForm>(metadata = ListDetailPage()) { route ->+ AddAccountFormScreen(+ providerId = route.providerId,+ onBack = { backStack.pop() },+ onAccountAdded = onAccountAdded,+ )+ }+}
email/src/main/java/com/vayunmathur/email/ui/ComposerHelpers.kt
diff --git a/email/src/main/java/com/vayunmathur/email/ui/ComposerHelpers.kt b/email/src/main/java/com/vayunmathur/email/ui/ComposerHelpers.ktindex f71efabe8c..7807766d88 100644--- a/email/src/main/java/com/vayunmathur/email/ui/ComposerHelpers.kt+++ b/email/src/main/java/com/vayunmathur/email/ui/ComposerHelpers.kt@@ -16,6 +16,7 @@ import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.verticalScroll import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableIntStateOf import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.setValue@@ -61,7 +62,7 @@ internal fun EmailComposerFormatToolbar( ) { var headingMenu by remember { mutableStateOf(false) } var alignMenu by remember { mutableStateOf(false) }- var colorDialog by remember { mutableStateOf(0) } // 0 none, 1 fg, 2 bg+ var colorDialog by remember { mutableIntStateOf(0) } // 0 none, 1 fg, 2 bg var sizeMenu by remember { mutableStateOf(false) } var fontMenu by remember { mutableStateOf(false) }
email/src/main/java/com/vayunmathur/email/ui/ComposerScreen.kt
diff --git a/email/src/main/java/com/vayunmathur/email/ui/ComposerScreen.kt b/email/src/main/java/com/vayunmathur/email/ui/ComposerScreen.ktindex 9fa244be68..96d04c9c49 100644--- a/email/src/main/java/com/vayunmathur/email/ui/ComposerScreen.kt+++ b/email/src/main/java/com/vayunmathur/email/ui/ComposerScreen.kt@@ -20,6 +20,7 @@ import androidx.compose.foundation.verticalScroll import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableIntStateOf import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.setValue@@ -87,8 +88,8 @@ fun ComposerScreen( var showAccountPicker by remember { mutableStateOf(false) } var showSchedule by remember { mutableStateOf(false) } - var pickTarget by remember { mutableStateOf(0) }- var pickTick by remember { mutableStateOf(0) }+ var pickTarget by remember { mutableIntStateOf(0) }+ var pickTick by remember { mutableIntStateOf(0) } val contactPicker = rememberLauncherForActivityResult( ActivityResultContracts.StartActivityForResult() ) { result ->
email/src/main/java/com/vayunmathur/email/ui/FolderList.kt
diff --git a/email/src/main/java/com/vayunmathur/email/ui/FolderList.kt b/email/src/main/java/com/vayunmathur/email/ui/FolderList.ktindex 5425b94a9f..4d82fdec47 100644--- a/email/src/main/java/com/vayunmathur/email/ui/FolderList.kt+++ b/email/src/main/java/com/vayunmathur/email/ui/FolderList.kt@@ -32,14 +32,3 @@ fun buildFolderTree(folders: List<EmailFolder>): List<FolderNode> { } return folders.filter { it.parentFullName == null }.map { buildNode(it) } }--@Composable-fun RenderFolderTree(node: FolderNode, depth: Int, selectedFolder: String, onSelect: (String) -> Unit) {- NavigationDrawerItem(- label = { Text(text = node.folder.name, color = if (node.folder.holdsMessages) LocalContentColor.current else LocalContentColor.current.copy(alpha = 0.5f)) },- selected = node.folder.fullName == selectedFolder,- onClick = { if (node.folder.holdsMessages) onSelect(node.folder.fullName) },- modifier = Modifier.padding(NavigationDrawerItemDefaults.ItemPadding).padding(start = (depth * 16).dp)- )- node.children.forEach { child -> RenderFolderTree(child, depth + 1, selectedFolder, onSelect) }-}
email/src/main/java/com/vayunmathur/email/ui/MainContent.kt
diff --git a/email/src/main/java/com/vayunmathur/email/ui/MainContent.kt b/email/src/main/java/com/vayunmathur/email/ui/MainContent.ktindex 6b7f1bb5eb..b7c585948c 100644--- a/email/src/main/java/com/vayunmathur/email/ui/MainContent.kt+++ b/email/src/main/java/com/vayunmathur/email/ui/MainContent.kt@@ -5,7 +5,7 @@ import androidx.compose.runtime.getValue import androidx.lifecycle.compose.collectAsStateWithLifecycle import com.vayunmathur.email.Navigation import com.vayunmathur.email.Route-import com.vayunmathur.email.addAccountEntries+import com.vayunmathur.email.platform.addAccountEntries import com.vayunmathur.email.platform.EmailViewModel import com.vayunmathur.email.platform.IntentState import com.vayunmathur.library.util.MainNavigation
email/src/main/java/com/vayunmathur/email/ui/MessageItem.kt
diff --git a/email/src/main/java/com/vayunmathur/email/ui/MessageItem.kt b/email/src/main/java/com/vayunmathur/email/ui/MessageItem.ktindex 3223819c01..f6a87006a8 100644--- a/email/src/main/java/com/vayunmathur/email/ui/MessageItem.kt+++ b/email/src/main/java/com/vayunmathur/email/ui/MessageItem.kt@@ -89,8 +89,8 @@ fun MessageItem( onReply: (String, String, String?) -> Unit, onForward: (String, String?) -> Unit, onCompose: (String, String) -> Unit,- onExportEml: (EmailMessage) -> Unit = {}, modifier: Modifier = Modifier,+ onExportEml: (EmailMessage) -> Unit = {}, ) { var attachments by remember { mutableStateOf<List<Attachment>>(emptyList()) } var showDetails by remember { mutableStateOf(false) }
email/src/main/java/com/vayunmathur/email/ui/MessageListPage.kt
diff --git a/email/src/main/java/com/vayunmathur/email/ui/MessageListPage.kt b/email/src/main/java/com/vayunmathur/email/ui/MessageListPage.ktnew file mode 100644index 0000000000..8712732747--- /dev/null+++ b/email/src/main/java/com/vayunmathur/email/ui/MessageListPage.kt@@ -0,0 +1,44 @@+package com.vayunmathur.email.ui++import androidx.compose.runtime.Composable+import androidx.compose.runtime.getValue+import androidx.lifecycle.compose.collectAsStateWithLifecycle+import com.vayunmathur.email.data.EmailPreview+import com.vayunmathur.email.platform.EmailViewModel+import com.vayunmathur.email.platform.MessageListUiState++@Composable+fun MessageListPage(+ viewModel: EmailViewModel,+ onMessageClick: (EmailPreview) -> Unit,+ onComposeClick: () -> Unit,+ onOpenDrawer: () -> Unit+) {+ val messages by viewModel.messages.collectAsStateWithLifecycle(emptyList())+ val selectedAccountEmail by viewModel.selectedAccountEmail.collectAsStateWithLifecycle()+ val selectedFolderName by viewModel.selectedFolderName.collectAsStateWithLifecycle()+ val searchQuery by viewModel.searchQuery.collectAsStateWithLifecycle()+ val selectedUids by viewModel.selectedMessageUids.collectAsStateWithLifecycle()+ val isSyncing by viewModel.isSyncing.collectAsStateWithLifecycle()+ val syncProgress by viewModel.syncProgress.collectAsStateWithLifecycle()+ val aiSummary by viewModel.aiSummary.collectAsStateWithLifecycle()+ val aiSummaryLoading by viewModel.aiSummaryLoading.collectAsStateWithLifecycle()++ MessageListScreen(+ state = MessageListUiState(+ messages = messages,+ selectedAccountEmail = selectedAccountEmail,+ selectedFolderName = selectedFolderName,+ searchQuery = searchQuery,+ selectedUids = selectedUids,+ isSyncing = isSyncing,+ syncProgress = syncProgress,+ aiSummary = aiSummary,+ aiSummaryLoading = aiSummaryLoading,+ ),+ actions = viewModel,+ onMessageClick = onMessageClick,+ onComposeClick = onComposeClick,+ onOpenDrawer = onOpenDrawer,+ )+}
email/src/main/java/com/vayunmathur/email/ui/MessageListScreen.kt
diff --git a/email/src/main/java/com/vayunmathur/email/ui/MessageListScreen.kt b/email/src/main/java/com/vayunmathur/email/ui/MessageListScreen.ktindex 01de4b9aaf..fb3b453927 100644--- a/email/src/main/java/com/vayunmathur/email/ui/MessageListScreen.kt+++ b/email/src/main/java/com/vayunmathur/email/ui/MessageListScreen.kt@@ -21,6 +21,7 @@ import androidx.compose.foundation.lazy.items import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableIntStateOf import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.rememberUpdatedState@@ -29,6 +30,7 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.platform.LocalContext+import androidx.compose.ui.res.pluralStringResource import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp@@ -68,42 +70,6 @@ import com.vayunmathur.library.ui.Text import com.vayunmathur.library.ui.appBarScrollBehavior import com.vayunmathur.library.util.sharedText -@Composable-fun MessageListPage(- viewModel: EmailViewModel,- onMessageClick: (EmailPreview) -> Unit,- onComposeClick: () -> Unit,- onOpenDrawer: () -> Unit-) {- val messages by viewModel.messages.collectAsStateWithLifecycle(emptyList())- val selectedAccountEmail by viewModel.selectedAccountEmail.collectAsStateWithLifecycle()- val selectedFolderName by viewModel.selectedFolderName.collectAsStateWithLifecycle()- val searchQuery by viewModel.searchQuery.collectAsStateWithLifecycle()- val selectedUids by viewModel.selectedMessageUids.collectAsStateWithLifecycle()- val isSyncing by viewModel.isSyncing.collectAsStateWithLifecycle()- val syncProgress by viewModel.syncProgress.collectAsStateWithLifecycle()- val aiSummary by viewModel.aiSummary.collectAsStateWithLifecycle()- val aiSummaryLoading by viewModel.aiSummaryLoading.collectAsStateWithLifecycle()-- MessageListScreen(- state = MessageListUiState(- messages = messages,- selectedAccountEmail = selectedAccountEmail,- selectedFolderName = selectedFolderName,- searchQuery = searchQuery,- selectedUids = selectedUids,- isSyncing = isSyncing,- syncProgress = syncProgress,- aiSummary = aiSummary,- aiSummaryLoading = aiSummaryLoading,- ),- actions = viewModel,- onMessageClick = onMessageClick,- onComposeClick = onComposeClick,- onOpenDrawer = onOpenDrawer,- )-}- @OptIn(ExperimentalMaterial3Api::class) @Composable fun MessageListScreen(@@ -145,7 +111,7 @@ fun MessageListScreen( AppScaffold( title = { when {- selectionActive -> Text(stringResource(R.string.selected_count, state.selectedUids.size))+ selectionActive -> Text(pluralStringResource(R.plurals.selected_count, state.selectedUids.size, state.selectedUids.size)) isSearching -> CommonSearchBar(value = state.searchQuery, onValueChange = { actions.setSearchQuery(it) }, padding = PaddingValues(0.dp)) else -> Text(if (state.selectedAccountEmail == null) stringResource(R.string.unified_inbox_label) else state.selectedFolderName) }@@ -187,7 +153,7 @@ fun MessageListScreen( LinearProgressIndicator(progress = { state.syncProgress }, modifier = Modifier.fillMaxWidth().height(2.dp)) } }- var msgFilter by remember { mutableStateOf(0) }+ var msgFilter by remember { mutableIntStateOf(0) } Row(modifier = Modifier.fillMaxWidth().padding(horizontal = 12.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) { com.vayunmathur.library.ui.FilterChip(selected = msgFilter == 0, onClick = { msgFilter = 0 }, label = { Text(stringResource(R.string.all)) }) com.vayunmathur.library.ui.FilterChip(selected = msgFilter == 1, onClick = { msgFilter = 1 }, label = { Text(stringResource(R.string.unread)) })
email/src/main/java/com/vayunmathur/email/ui/MessageThreadPage.kt
diff --git a/email/src/main/java/com/vayunmathur/email/ui/MessageThreadPage.kt b/email/src/main/java/com/vayunmathur/email/ui/MessageThreadPage.ktnew file mode 100644index 0000000000..f309ab723f--- /dev/null+++ b/email/src/main/java/com/vayunmathur/email/ui/MessageThreadPage.kt@@ -0,0 +1,20 @@+package com.vayunmathur.email.ui++import androidx.compose.runtime.Composable+import androidx.compose.runtime.getValue+import androidx.lifecycle.compose.collectAsStateWithLifecycle+import com.vayunmathur.email.platform.EmailViewModel++@Composable+fun MessageThreadPage(+ viewModel: EmailViewModel,+ accountEmail: String,+ threadId: String,+ onBack: () -> Unit,+ onReply: (String, String, String?) -> Unit,+ onForward: (String, String?) -> Unit,+ onCompose: (String, String) -> Unit+) {+ val messages by viewModel.getThread(accountEmail, threadId).collectAsStateWithLifecycle(emptyList())+ MessageThreadScreen(messages = messages, actions = viewModel, threadId = threadId, onBack = onBack, onReply = onReply, onForward = onForward, onCompose = onCompose)+}
email/src/main/java/com/vayunmathur/email/ui/MessageThreadScreen.kt
diff --git a/email/src/main/java/com/vayunmathur/email/ui/MessageThreadScreen.kt b/email/src/main/java/com/vayunmathur/email/ui/MessageThreadScreen.ktindex e31e689080..8453f9bd44 100644--- a/email/src/main/java/com/vayunmathur/email/ui/MessageThreadScreen.kt+++ b/email/src/main/java/com/vayunmathur/email/ui/MessageThreadScreen.kt@@ -33,20 +33,6 @@ import com.vayunmathur.library.ui.appBarScrollBehavior import com.vayunmathur.library.util.AppMessages import com.vayunmathur.library.util.sharedText -@Composable-fun MessageThreadPage(- viewModel: EmailViewModel,- accountEmail: String,- threadId: String,- onBack: () -> Unit,- onReply: (String, String, String?) -> Unit,- onForward: (String, String?) -> Unit,- onCompose: (String, String) -> Unit-) {- val messages by viewModel.getThread(accountEmail, threadId).collectAsStateWithLifecycle(emptyList())- MessageThreadScreen(messages = messages, actions = viewModel, threadId = threadId, onBack = onBack, onReply = onReply, onForward = onForward, onCompose = onCompose)-}- @OptIn(ExperimentalMaterial3Api::class) @Composable fun MessageThreadScreen(
email/src/main/java/com/vayunmathur/email/ui/RenderFolderTree.kt
diff --git a/email/src/main/java/com/vayunmathur/email/ui/RenderFolderTree.kt b/email/src/main/java/com/vayunmathur/email/ui/RenderFolderTree.ktnew file mode 100644index 0000000000..e3ec0088e0--- /dev/null+++ b/email/src/main/java/com/vayunmathur/email/ui/RenderFolderTree.kt@@ -0,0 +1,21 @@+package com.vayunmathur.email.ui++import androidx.compose.foundation.layout.padding+import androidx.compose.runtime.Composable+import androidx.compose.ui.Modifier+import androidx.compose.ui.unit.dp+import com.vayunmathur.library.ui.LocalContentColor+import com.vayunmathur.library.ui.NavigationDrawerItem+import com.vayunmathur.library.ui.NavigationDrawerItemDefaults+import com.vayunmathur.library.ui.Text++@Composable+fun RenderFolderTree(node: FolderNode, depth: Int, selectedFolder: String, onSelect: (String) -> Unit) {+ NavigationDrawerItem(+ label = { Text(text = node.folder.name, color = if (node.folder.holdsMessages) LocalContentColor.current else LocalContentColor.current.copy(alpha = 0.5f)) },+ selected = node.folder.fullName == selectedFolder,+ onClick = { if (node.folder.holdsMessages) onSelect(node.folder.fullName) },+ modifier = Modifier.padding(NavigationDrawerItemDefaults.ItemPadding).padding(start = (depth * 16).dp)+ )+ node.children.forEach { child -> RenderFolderTree(child, depth + 1, selectedFolder, onSelect) }+}
email/src/main/res/values-ar/strings.xml
diff --git a/email/src/main/res/values-ar/strings.xml b/email/src/main/res/values-ar/strings.xmlindex 3f21396e1a..31a946d32e 100644--- a/email/src/main/res/values-ar/strings.xml+++ b/email/src/main/res/values-ar/strings.xml@@ -65,7 +65,6 @@ <string name="ai_summary">ملخص الذكاء الاصطناعي</string> <string name="deleted_from_outbox">تم حذفها من صندوق الصادر</string> <string name="attachments_2">المرفقات:</string>- <string name="unified_inbox">صندوق الوارد الموحَّد</string> <string name="saved_to_downloads">تم الحفظ في التنزيلات</string> <string name="generating_summary">جارٍ إنشاء الملخص…</string> <string name="block_sender">حظر المرسل</string>@@ -118,7 +117,7 @@ <string name="from">من <xliff:g id="account" example="[email protected]">%1$s</xliff:g></string> <string name="compose">إنشاء</string> <string name="outbox_with_count">صندوق الصادر (<xliff:g id="count" example="2">%1$d</xliff:g>)</string>- <string name="selected_count">تم تحديد <xliff:g id="count" example="3">%1$d</xliff:g></string>+ <plurals name="selected_count"><item quantity="zero">تم تحديد <xliff:g id="count" example="3">%1$d</xliff:g></item><item quantity="one">تم تحديد <xliff:g id="count" example="3">%1$d</xliff:g></item><item quantity="two">تم تحديد <xliff:g id="count" example="3">%1$d</xliff:g></item><item quantity="few">تم تحديد <xliff:g id="count" example="3">%1$d</xliff:g></item><item quantity="many">تم تحديد <xliff:g id="count" example="3">%1$d</xliff:g></item><item quantity="other">تم تحديد <xliff:g id="count" example="3">%1$d</xliff:g></item></plurals> <string name="open">فتح</string> <string name="load_remote_images">تحميل الصور البعيدة</string> <string name="remote_images_blocked">تم حظر الصور البعيدة</string>
email/src/main/res/values-cs/strings.xml
diff --git a/email/src/main/res/values-cs/strings.xml b/email/src/main/res/values-cs/strings.xmlindex dc63b821be..201c248c89 100644--- a/email/src/main/res/values-cs/strings.xml+++ b/email/src/main/res/values-cs/strings.xml@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">- <string name="selected_count"><xliff:g id="count" example="3">%1$d</xliff:g> vybráno</string>+ <plurals name="selected_count"><item quantity="one"><xliff:g id="count" example="3">%1$d</xliff:g> vybráno</item><item quantity="few"><xliff:g id="count" example="3">%1$d</xliff:g> vybráno</item><item quantity="many"><xliff:g id="count" example="3">%1$d</xliff:g> vybráno</item><item quantity="other"><xliff:g id="count" example="3">%1$d</xliff:g> vybráno</item></plurals> <string name="app_name">E-mail</string> <string name="email_widget_description">Nedávné zprávy ze sjednocené schránky - klepnutím otevřete E-mail</string> <string name="all_accounts">Všechny účty</string>
email/src/main/res/values-de/strings.xml
diff --git a/email/src/main/res/values-de/strings.xml b/email/src/main/res/values-de/strings.xmlindex 9e69bfb96c..5dd52c459e 100644--- a/email/src/main/res/values-de/strings.xml+++ b/email/src/main/res/values-de/strings.xml@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources>- <string name="selected_count">%1$d ausgewählt</string>+ <plurals name="selected_count"><item quantity="one">%1$d ausgewählt</item><item quantity="other">%1$d ausgewählt</item></plurals> <string name="app_name">Email</string> <string name="all_accounts">Alle Konten</string> <string name="add_account">Konto hinzufügen</string>
email/src/main/res/values-et/strings.xml
diff --git a/email/src/main/res/values-et/strings.xml b/email/src/main/res/values-et/strings.xmlindex 004c1b0d43..fe9638aaaa 100644--- a/email/src/main/res/values-et/strings.xml+++ b/email/src/main/res/values-et/strings.xml@@ -4,7 +4,7 @@ <string name="all_accounts">Kõik kasutajakontod</string> <string name="add_account">Lisa kasutajakonto</string> <string name="logout_current_account">Logi praegusest kasutajakontost välja</string>- <string name="selected_count"><xliff:g id="count" example="3">%1$d</xliff:g> on valitud</string>+ <plurals name="selected_count"><item quantity="one"><xliff:g id="count" example="3">%1$d</xliff:g> on valitud</item><item quantity="other"><xliff:g id="count" example="3">%1$d</xliff:g> on valitud</item></plurals> <string name="reply">Vasta</string> <string name="forward">Edasta</string> <string name="compose">Koosta kiri</string>@@ -105,7 +105,6 @@ <item quantity="one"><xliff:g id="count" example="1">%1$s</xliff:g> katse</item> <item quantity="other"><xliff:g id="count" example="2">%1$s</xliff:g> katset</item> </plurals>- <string name="unified_inbox">Ühine sisendpostkast</string> <string name="saved_to_outbox">Salvestatud saadetavate kirjade postkasti: <xliff:g id="reason" example="Võrguühendus puudub">%1$s</xliff:g></string> <string name="added"><xliff:g id="email" example="[email protected]">%1$s</xliff:g> konto on lisatud</string> <string name="total_attachment_size_exceeds_25_mb_many">Manuste kogumaht on üle 25 MB ja paljud teenusepakkujad selliseid kirju ei edasta.</string>
email/src/main/res/values-fr/strings.xml
diff --git a/email/src/main/res/values-fr/strings.xml b/email/src/main/res/values-fr/strings.xmlindex 38c110c5b8..0936a53c9b 100644--- a/email/src/main/res/values-fr/strings.xml+++ b/email/src/main/res/values-fr/strings.xml@@ -16,7 +16,7 @@ <string name="forward">Transférer</string> <string name="send_now">Envoyer maintenant</string> <string name="host_label">Serveur</string>- <string name="selected_count"><xliff:g id="count" example="3">%1$d</xliff:g> sélectionné(s)</string>+ <plurals name="selected_count"><item quantity="one"><xliff:g id="count" example="3">%1$d</xliff:g> sélectionné(s)</item><item quantity="many"><xliff:g id="count" example="3">%1$d</xliff:g> sélectionné(s)</item><item quantity="other"><xliff:g id="count" example="3">%1$d</xliff:g> sélectionné(s)</item></plurals> <string name="outbox_with_count">Boîte d’envoi (<xliff:g id="count" example="2">%1$d</xliff:g>)</string> <string name="outbox">Boîte d\'envoi</string> <string name="compose">Rédiger</string>@@ -82,7 +82,6 @@ <string name="couldn_t_open_this_eml_file">Impossible d’ouvrir ce fichier .eml</string> <string name="in_1_hour">Dans une heure</string> <string name="bcc">Cci</string>- <string name="unified_inbox">Boîte de réception unifiée</string> <string name="unknown_error">Erreur inconnue</string> <string name="e_mail_file">Fichier e-mail</string> <string name="smtp_outgoing">SMTP (sortant)</string>
email/src/main/res/values-it/strings.xml
diff --git a/email/src/main/res/values-it/strings.xml b/email/src/main/res/values-it/strings.xmlindex 7d67ac4797..c5a9a03d84 100644--- a/email/src/main/res/values-it/strings.xml+++ b/email/src/main/res/values-it/strings.xml@@ -4,7 +4,7 @@ <string name="all_accounts">Tutti gli account</string> <string name="add_account">Aggiungi account</string> <string name="logout_current_account">Disconnetti account attuale</string>- <string name="selected_count"><xliff:g id="count" example="3">%1$d</xliff:g> selezionati</string>+ <plurals name="selected_count"><item quantity="one"><xliff:g id="count" example="3">%1$d</xliff:g> selezionati</item><item quantity="many"><xliff:g id="count" example="3">%1$d</xliff:g> selezionati</item><item quantity="other"><xliff:g id="count" example="3">%1$d</xliff:g> selezionati</item></plurals> <string name="reply">Rispondi</string> <string name="forward">Inoltra</string> <string name="compose">Scrivi</string>@@ -70,7 +70,6 @@ <string name="bcc">Bcc</string> <string name="attachments_1">Allegati (<xliff:g id="size" example="2.3 MB">%1$s</xliff:g>)</string> <string name="attachments_2">Allegati:</string>- <string name="unified_inbox">Posta unificata</string> <string name="saved_to_downloads">Salvato nei Download</string> <string name="saved_to_outbox">Salvato in In uscita: <xliff:g id="reason" example="No network">%1$s</xliff:g></string> <string name="generating_summary">Generazione riepilogo…</string>@@ -97,6 +96,8 @@ <string name="from">Da <xliff:g id="account" example="[email protected]">%1$s</xliff:g></string> <string name="to_1">A <xliff:g id="recipient" example="[email protected]">%1$s</xliff:g></string> <plurals name="retrying_pending_messages">+ <item quantity="one">Nuovo tentativo per <xliff:g id="count" example="3">%1$s</xliff:g> messaggio in attesa…</item>+ <item quantity="many">Nuovo tentativo per <xliff:g id="count" example="3">%1$s</xliff:g> messaggi in attesa…</item> <item quantity="other">Nuovo tentativo per <xliff:g id="count" example="3">%1$s</xliff:g> messaggi in attesa…</item> </plurals> <string name="unblock">Sblocca</string>@@ -112,6 +113,8 @@ <string name="unsubscribing">Disiscrizione…</string> <string name="failed">Fallito: <xliff:g id="error" example="Auth error">%1$s</xliff:g></string> <plurals name="attempts">+ <item quantity="one"><xliff:g id="count" example="2">%1$s</xliff:g> tentativo</item>+ <item quantity="many"><xliff:g id="count" example="2">%1$s</xliff:g> tentativi</item> <item quantity="other"><xliff:g id="count" example="2">%1$s</xliff:g> tentativi</item> </plurals> <string name="cd_insert_image">Inserisci immagine</string>
email/src/main/res/values-ja/strings.xml
diff --git a/email/src/main/res/values-ja/strings.xml b/email/src/main/res/values-ja/strings.xmlindex 944a7a0afd..57771bdfad 100644--- a/email/src/main/res/values-ja/strings.xml+++ b/email/src/main/res/values-ja/strings.xml@@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="all">全て</string>- <string name="selected_count"><xliff:g id="count" example="3">%1$d</xliff:g> 個選択中</string>+ <plurals name="selected_count"><item quantity="other"><xliff:g id="count" example="3">%1$d</xliff:g> 個選択中</item></plurals> </resources>
email/src/main/res/values-pl/strings.xml
diff --git a/email/src/main/res/values-pl/strings.xml b/email/src/main/res/values-pl/strings.xmlindex 0bcc6af086..6b0075f4b5 100644--- a/email/src/main/res/values-pl/strings.xml+++ b/email/src/main/res/values-pl/strings.xml@@ -4,7 +4,7 @@ <string name="all_accounts">Wszystkie konta</string> <string name="add_account">Dodaj konto</string> <string name="logout_current_account">Wyloguj się z bieżącego konta</string>- <string name="selected_count">Zaznaczono: <xliff:g id="count" example="3">%1$d</xliff:g></string>+ <plurals name="selected_count"><item quantity="one">Zaznaczono: <xliff:g id="count" example="3">%1$d</xliff:g></item><item quantity="few">Zaznaczono: <xliff:g id="count" example="3">%1$d</xliff:g></item><item quantity="many">Zaznaczono: <xliff:g id="count" example="3">%1$d</xliff:g></item><item quantity="other">Zaznaczono: <xliff:g id="count" example="3">%1$d</xliff:g></item></plurals> <string name="reply">Odpowiedz</string> <string name="forward">Przekaż</string> <string name="from_label">Od</string>@@ -85,7 +85,6 @@ <string name="bcc">UDW</string> <string name="attachments_1">Załączniki (<xliff:g id="size" example="2.3 MB">%1$s</xliff:g>)</string> <string name="attachments_2">Załączniki:</string>- <string name="unified_inbox">Zintegrowana skrzynka odbiorcza</string> <string name="saved_to_downloads">Zapisano w Pobranych</string> <string name="saved_to_outbox">Zapisano w Skrzynce nadawczej: <xliff:g id="reason" example="No network">%1$s</xliff:g></string> <string name="generating_summary">Generowanie podsumowania…</string>
email/src/main/res/values-ru/strings.xml
diff --git a/email/src/main/res/values-ru/strings.xml b/email/src/main/res/values-ru/strings.xmlindex 7bef417eea..85561380a7 100644--- a/email/src/main/res/values-ru/strings.xml+++ b/email/src/main/res/values-ru/strings.xml@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">- <string name="selected_count"><xliff:g id="count" example="3">%1$d</xliff:g> выбрано</string>+ <plurals name="selected_count"><item quantity="one"><xliff:g id="count" example="3">%1$d</xliff:g> выбрано</item><item quantity="few"><xliff:g id="count" example="3">%1$d</xliff:g> выбрано</item><item quantity="many"><xliff:g id="count" example="3">%1$d</xliff:g> выбрано</item><item quantity="other"><xliff:g id="count" example="3">%1$d</xliff:g> выбрано</item></plurals> <string name="all">Все</string> <string name="right">Справа</string> <string name="justify">Обосновать</string>
email/src/main/res/values-sv/strings.xml
diff --git a/email/src/main/res/values-sv/strings.xml b/email/src/main/res/values-sv/strings.xmlindex b80410f12f..8a12bb9fda 100644--- a/email/src/main/res/values-sv/strings.xml+++ b/email/src/main/res/values-sv/strings.xml@@ -2,7 +2,7 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="hide">Dölj</string> <string name="show">Visa</string>- <string name="selected_count"><xliff:g id="count" example="3">%1$d</xliff:g> valda</string>+ <plurals name="selected_count"><item quantity="one"><xliff:g id="count" example="3">%1$d</xliff:g> valda</item><item quantity="other"><xliff:g id="count" example="3">%1$d</xliff:g> valda</item></plurals> <string name="open">Öppna</string> <string name="password">Lösenord</string> <string name="all">Alla</string>@@ -95,7 +95,6 @@ <string name="bcc">Dold kopia</string> <string name="attachments_1">Bilagor (<xliff:g id="size" example="2.3 MB">%1$s</xliff:g>)</string> <string name="attachments_2">Bilagor:</string>- <string name="unified_inbox">Samlad inkorg</string> <string name="saved_to_downloads">Sparad i Hämtningar</string> <string name="saved_to_outbox">Sparad i utkorgen: <xliff:g id="reason" example="No network">%1$s</xliff:g></string> <string name="generating_summary">Skapar sammanfattning…</string>
email/src/main/res/values-zh-rCN/strings.xml
diff --git a/email/src/main/res/values-zh-rCN/strings.xml b/email/src/main/res/values-zh-rCN/strings.xmlindex f5bb3f6229..94d35ce580 100644--- a/email/src/main/res/values-zh-rCN/strings.xml+++ b/email/src/main/res/values-zh-rCN/strings.xml@@ -4,7 +4,7 @@ <string name="all_accounts">所有账号</string> <string name="add_account">添加账号</string> <string name="logout_current_account">退出登录当前账号</string>- <string name="selected_count">已选择 <xliff:g id="count" example="3">%1$d</xliff:g> 项</string>+ <plurals name="selected_count"><item quantity="other">已选择 <xliff:g id="count" example="3">%1$d</xliff:g> 项</item></plurals> <string name="reply">回复</string> <string name="forward">转发</string> <string name="compose">撰写</string>@@ -78,7 +78,6 @@ <string name="couldn_t_open_this_eml_file">无法打开此 .eml 文件</string> <string name="in_1_hour">1 小时后</string> <string name="bcc">密送</string>- <string name="unified_inbox">统一收件箱</string> <string name="unknown_error">未知错误</string> <string name="e_mail_file">电子邮件文件</string> <string name="smtp_outgoing">SMTP(发件)</string>
email/src/main/res/values/strings.xml
diff --git a/email/src/main/res/values/strings.xml b/email/src/main/res/values/strings.xmlindex 36972f3e5f..22ca2f329e 100644--- a/email/src/main/res/values/strings.xml+++ b/email/src/main/res/values/strings.xml@@ -5,7 +5,7 @@ <string name="all_accounts">All Accounts</string> <string name="add_account">Add Account</string> <string name="logout_current_account">Logout Current Account</string>- <string name="selected_count"><xliff:g id="count" example="3">%1$d</xliff:g> selected</string>+ <plurals name="selected_count"><item quantity="one"><xliff:g id="count" example="3">%1$d</xliff:g> selected</item><item quantity="other"><xliff:g id="count" example="3">%1$d</xliff:g> selected</item></plurals> <string name="reply">Reply</string> <string name="forward">Forward</string> <string name="compose">Compose</string>
email/src/main/res/xml/network_security_config.xml
diff --git a/email/src/main/res/xml/network_security_config.xml b/email/src/main/res/xml/network_security_config.xmlindex 52c44ac992..f06cb90617 100644--- a/email/src/main/res/xml/network_security_config.xml+++ b/email/src/main/res/xml/network_security_config.xml@@ -3,7 +3,11 @@ <base-config cleartextTrafficPermitted="false"> <trust-anchors> <certificates src="system" />- <certificates src="user" /> </trust-anchors> </base-config>+ <debug-overrides>+ <trust-anchors>+ <certificates src="user" />+ </trust-anchors>+ </debug-overrides> </network-security-config>
email/src/test/java/com/vayunmathur/email/ui/AddAccountScreenTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/AddAccountScreenTest.kt b/email/src/test/java/com/vayunmathur/email/ui/AddAccountScreenTest.ktindex 25d2d55c44..3f727b7fa0 100644--- a/email/src/test/java/com/vayunmathur/email/ui/AddAccountScreenTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/AddAccountScreenTest.kt@@ -7,7 +7,7 @@ import androidx.compose.ui.test.performClick import androidx.compose.ui.test.performScrollTo import androidx.compose.ui.test.performTextInput import com.vayunmathur.email.Route-import com.vayunmathur.email.addAccountEntries+import com.vayunmathur.email.platform.addAccountEntries import com.vayunmathur.email.data.PROVIDER_GMAIL import com.vayunmathur.library.util.MainNavigation import com.vayunmathur.library.util.NavBackStack
email/src/test/java/com/vayunmathur/email/ui/AddAccountSubmitTest.kt
diff --git a/email/src/test/java/com/vayunmathur/email/ui/AddAccountSubmitTest.kt b/email/src/test/java/com/vayunmathur/email/ui/AddAccountSubmitTest.ktindex a51302e466..ff5ecea065 100644--- a/email/src/test/java/com/vayunmathur/email/ui/AddAccountSubmitTest.kt+++ b/email/src/test/java/com/vayunmathur/email/ui/AddAccountSubmitTest.kt@@ -17,7 +17,7 @@ import androidx.work.Configuration import androidx.work.WorkManager import com.vayunmathur.email.FakeAndroidKeyStore import com.vayunmathur.email.Route-import com.vayunmathur.email.addAccountEntries+import com.vayunmathur.email.platform.addAccountEntries import com.vayunmathur.library.util.MainNavigation import com.vayunmathur.library.util.NavBackStack import com.vayunmathur.email.data.CredentialCrypto