diff options
author | Aditya Wasan <adityawasan55@gmail.com> | 2021-05-25 15:15:26 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-25 09:45:26 +0000 |
commit | 373a46f73a51bda3900b895f72fba5ca619e5884 (patch) | |
tree | 79b09082f029c4fb49a2281c605ef0ac66d96a52 /app/build.gradle.kts | |
parent | 6f453cc27cc40f5a9f860aa04454e154ef4032e2 (diff) |
Add compose dependencies (#1421)
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/build.gradle.kts')
-rw-r--r-- | app/build.gradle.kts | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app/build.gradle.kts b/app/build.gradle.kts index b0ee9972..ca591aef 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -14,6 +14,22 @@ plugins { `crowdin-plugin` } +repositories { + val composeSnapshot = libs.versions.composeSnapshot.get() + if (composeSnapshot.isNotEmpty()) { + maven("https://androidx.dev/snapshots/builds/$composeSnapshot/artifacts/repository/") { + content { + includeGroup("androidx.compose.animation") + includeGroup("androidx.compose.compiler") + includeGroup("androidx.compose.foundation") + includeGroup("androidx.compose.material") + includeGroup("androidx.compose.runtime") + includeGroup("androidx.compose.ui") + } + } + } +} + configure<CrowdinExtension> { projectName = "android-password-store" } android { @@ -31,12 +47,15 @@ android { testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } + buildFeatures.compose = true + lintOptions { isAbortOnError = true isCheckReleaseBuilds = false disable("MissingTranslation", "PluralsCandidate", "ImpliedQuantity") // https://issuetracker.google.com/issues/187524311 disable("DialogFragmentCallbacksDetector") + disable("CoroutineCreationDuringComposition") } flavorDimensions("free") @@ -45,6 +64,11 @@ android { create("nonFree") {} } testOptions { unitTests.isReturnDefaultValues = true } + + composeOptions { + kotlinCompilerVersion = libs.versions.kotlin.get() + kotlinCompilerExtensionVersion = libs.versions.compose.get() + } } dependencies { @@ -74,6 +98,15 @@ dependencies { implementation(libs.kotlin.coroutines.android) implementation(libs.kotlin.coroutines.core) + implementation(libs.androidx.activity.compose) + implementation(libs.androidx.hilt.compose) + implementation(libs.compose.foundation.core) + implementation(libs.compose.foundation.layout) + implementation(libs.compose.material) + implementation(libs.compose.ui.core) + implementation(libs.compose.ui.viewbinding) + compileOnly(libs.compose.ui.tooling) + implementation(libs.aps.sublimeFuzzy) implementation(libs.aps.zxingAndroidEmbedded) |