Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 0b572ec0 authored by Wolf Montwé's avatar Wolf Montwé
Browse files

Add `:core:ui:compose:common` module to host commonly shared functionality and add DevicePreviews

parent f15ba579
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
## Core - UI - Compose - Common

This module contains common code for the compose UI.
+8 −0
Original line number Diff line number Diff line
plugins {
    id(ThunderbirdPlugins.Library.androidCompose)
}

android {
    namespace = "app.k9mail.core.ui.compose.common"
    resourcePrefix = "core_ui_common_"
}
+16 −0
Original line number Diff line number Diff line
package app.k9mail.core.ui.compose.common

import androidx.compose.ui.tooling.preview.Devices
import androidx.compose.ui.tooling.preview.Preview

/**
 * A marker annotation for device previews.
 *
 * It's used to provide previews for a set of different devices and form factors.
 */
@Preview(name = "Phone", device = Devices.PHONE)
@Preview(name = "Phone landscape", device = "spec:shape=Normal,width=891,height=411,unit=dp,dpi=420")
@Preview(name = "Foldable", device = Devices.FOLDABLE)
@Preview(name = "Tablet", device = Devices.TABLET)
@Preview(name = "Desktop", device = Devices.DESKTOP)
annotation class DevicePreviews
+1 −0
Original line number Diff line number Diff line
@@ -8,5 +8,6 @@ android {
}

dependencies {
    api(projects.core.ui.compose.common)
    implementation(libs.androidx.compose.material)
}
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ include(
    ":core:common",
    ":core:testing",
    ":core:android:common",
    ":core:ui:compose:common",
    ":core:ui:compose:designsystem",
    ":core:ui:compose:theme",
)