diff --git a/build.gradle.kts b/build.gradle.kts index 59b736667..af0804116 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,6 +8,7 @@ allprojects { } apply(plugin = rootProject.libs.plugins.ktlint.get().pluginId) + apply(plugin = rootProject.libs.plugins.compose.guard.get().pluginId) configure { filter { @@ -27,5 +28,6 @@ plugins { alias(libs.plugins.kotlin.serialization) apply false alias(libs.plugins.kotlin.parcelize) apply false alias(libs.plugins.ktlint) + alias(libs.plugins.compose.guard) apply false alias(libs.plugins.moko.resources) apply false } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1a022df49..24122dfe4 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -8,6 +8,7 @@ better-parse = "0.4.4" camera = "1.3.3" coil-compose = "2.5.0" compose = "1.6.2" +compose-guard = "2.0.0" crashlytics = "2.9.9" crashlytics-ktx = "18.6.4" datastore-preferences = "1.1.0" @@ -105,4 +106,5 @@ ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint-gradle" } android-application = { id = "com.android.application", version.ref = "android-gradle" } google-services = { id = "com.google.gms.google-services", version.ref = "google-services" } crashlytics = { id = "com.google.firebase.crashlytics", version.ref = "crashlytics" } -moko-resources = { id = "dev.icerock.mobile.multiplatform-resources", version.ref = "moko-resources" } \ No newline at end of file +moko-resources = { id = "dev.icerock.mobile.multiplatform-resources", version.ref = "moko-resources" } +compose-guard = { id = "com.joetr.compose.guard", version.ref = "compose-guard" } \ No newline at end of file