diff --git a/snapshots/sample/app/build.gradle.kts b/snapshots/sample/app/build.gradle.kts index 10b8b6d8..2a492488 100644 --- a/snapshots/sample/app/build.gradle.kts +++ b/snapshots/sample/app/build.gradle.kts @@ -7,6 +7,13 @@ plugins { emerge { apiToken.set(System.getenv("EMERGE_API_TOKEN")) + + vcs { + gitHub { + repoName.set("emerge-android") + repoOwner.set("EmergeTools") + } + } } android { diff --git a/snapshots/sample/app/src/main/kotlin/com/emergetools/snapshots/sample/ui/ThemedComponent.kt b/snapshots/sample/app/src/main/kotlin/com/emergetools/snapshots/sample/ui/ThemedComponent.kt index c5e21c73..fc1ad9a0 100644 --- a/snapshots/sample/app/src/main/kotlin/com/emergetools/snapshots/sample/ui/ThemedComponent.kt +++ b/snapshots/sample/app/src/main/kotlin/com/emergetools/snapshots/sample/ui/ThemedComponent.kt @@ -5,6 +5,7 @@ import android.content.res.Configuration.UI_MODE_NIGHT_YES import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment @@ -12,6 +13,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.tooling.preview.Preview +import com.emergetools.snapshots.sample.ui.theme.SnapshotsSampleTheme @Preview(uiMode = UI_MODE_NIGHT_YES) @Preview(uiMode = UI_MODE_NIGHT_NO) @@ -38,3 +40,22 @@ fun ThemedComponent() { ) } } + +@Preview(uiMode = UI_MODE_NIGHT_YES) +@Preview(uiMode = UI_MODE_NIGHT_NO) +@Composable +fun MaterialThemedComponent() { + SnapshotsSampleTheme { + Box( + modifier = Modifier + .fillMaxSize() + .background(color = MaterialTheme.colorScheme.background) + ) { + Text( + text = "This is a themed component", + color = MaterialTheme.colorScheme.primary, + modifier = Modifier.align(Alignment.Center) + ) + } + } +}