Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
alias(libs.plugins.android.application) apply false // https://youtrack.jetbrains.com/issue/KT-31643/Unable-to-load-class-com.android.build.gradle.BaseExtension-with-Kotlin-plugin-applied-to-root-Gradle-project
alias(libs.plugins.android.library) apply false // see above url
alias(libs.plugins.kotlinAndroid) apply false
alias(libs.plugins.paparazzi) apply false
alias(libs.plugins.kapt) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.hilt) apply false // fun https://github.com/google/dagger/issues/3068
Expand Down
7 changes: 4 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
assertk = "0.25"
coil = "2.2.2"
compose = "1.5.1"
composeCompiler = "1.5.3"
composeCompiler = "1.5.14"
composeMaterial3 = "1.1.1"
composeUiTestJUnit4 = "1.5.1"
daggerHilt = "2.48"
Expand All @@ -24,7 +24,7 @@
firebaseBom = "32.2.3"
glance = "1.0.0"
glance-tools = "0.2.2"
gradlePlugins-agp = "8.4.0-alpha09"
gradlePlugins-agp = "8.4.2"

Check warning

Code scanning / Android Lint

Obsolete Android Gradle Plugin Version Warning

A newer version of com.android.application than 8.4.2 is available: 8.13.0

Check warning

Code scanning / Android Lint

Obsolete Android Gradle Plugin Version Warning

A newer version of com.android.application than 8.4.2 is available: 8.13.0

Check warning

Code scanning / Android Lint

Obsolete Android Gradle Plugin Version Warning

A newer version of com.android.library than 8.4.2 is available: 8.13.0

Check warning

Code scanning / Android Lint

Obsolete Android Gradle Plugin Version Warning

A newer version of com.android.library than 8.4.2 is available: 8.13.0
gradlePlugins-crashlytics = "2.9.9"
gradlePlugins-detekt = "1.23.1"
gradlePlugins-gms = "4.3.15"
Expand All @@ -40,7 +40,7 @@
hilt = "1.0.0"
hiltNavigationCompose = "1.0.0"
junit = "4.13.2"
kotlin = "1.9.10"
kotlin = "1.9.24"
kotlinxCoroutinesTest = "1.7.1"
kotlinxSerialization = "1.5.0"
lifecycle = "2.6.2"
Expand Down Expand Up @@ -182,6 +182,7 @@
hilt = { id = "dagger.hilt.android.plugin", version.ref = "gradlePlugins-hilt" }
kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
paparazzi = { id = "app.cash.paparazzi", version = "1.3.4" }
kotlinxSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "gradlePlugins-kotlinxSerialization" }
kotlinter = { id = "org.jmailen.kotlinter", version.ref = "gradlePlugins-kotlinter" }
ksp = { id = "com.google.devtools.ksp", version.ref = "gradlePlugins-ksp" }
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Nov 03 16:26:13 CET 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-rc-1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
3 changes: 2 additions & 1 deletion shared-ui/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.paparazzi)
}

android {
namespace = "dev.sebastiano.bundel.ui"
compileSdk = 33
compileSdk = 34

defaultConfig {
minSdk = 26
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package dev.sebastiano.bundel.ui.composables

import app.cash.paparazzi.Paparazzi
import com.android.ide.common.rendering.api.SessionParams
import org.junit.Rule
import org.junit.Test

class OnboardingPreviewsTest {
@get:Rule
val paparazzi = Paparazzi(
renderingMode = SessionParams.RenderingMode.SHRINK
)

@Test
fun active() {
paparazzi.snapshot {
OnboardingPreviews().TimeRangeRowOnboardingActivePreview()
}
}

@Test
fun inactive() {
paparazzi.snapshot {
OnboardingPreviews().TimeRangeRowOnboardingInactivePreview()
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading