Repo created
This commit is contained in:
parent
75dc487a7a
commit
39c29d175b
6317 changed files with 388324 additions and 2 deletions
12
feature/account/settings/api/build.gradle.kts
Normal file
12
feature/account/settings/api/build.gradle.kts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
plugins {
|
||||
id(ThunderbirdPlugins.Library.androidCompose)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "net.thunderbird.feature.account.settings.api"
|
||||
resourcePrefix = "account_settings_api_"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(projects.core.ui.compose.navigation)
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package net.thunderbird.feature.account.settings.api
|
||||
|
||||
import app.k9mail.core.ui.compose.navigation.Navigation
|
||||
|
||||
interface AccountSettingsNavigation : Navigation<AccountSettingsRoute>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package net.thunderbird.feature.account.settings.api
|
||||
|
||||
import app.k9mail.core.ui.compose.navigation.Route
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
sealed interface AccountSettingsRoute : Route {
|
||||
|
||||
@Serializable
|
||||
data class GeneralSettings(val accountId: String) : AccountSettingsRoute {
|
||||
override val basePath: String = BASE_PATH
|
||||
|
||||
override fun route(): String = "$basePath/$accountId"
|
||||
|
||||
companion object {
|
||||
const val BASE_PATH = "$ACCOUNT_SETTINGS_BASE_PATH/general"
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val ACCOUNT_SETTINGS_BASE_PATH = "app://account/settings"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue