summaryrefslogtreecommitdiff
path: root/ui-compose/build.gradle.kts
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-03-27 18:07:18 +0530
committerGitHub <noreply@github.com>2022-03-27 12:37:18 +0000
commit2320201f895530d127441b15317bb6a557820396 (patch)
tree2fbb5f8618b28e00a98b54472e8a37faeba5019f /ui-compose/build.gradle.kts
parent4d3be5b0708cf8f6cfe40d790763a576d010bc18 (diff)
Migrate namespaces to Gradle (#1805)
* ui-compose: update Gradle configuration * gradle: fix namespace for a couple astray Compose dependencies * all: switch to Gradle namespace property Mirrors a similar change from AndroidX https://github.com/androidx/androidx/commit/dcfa035a961fd1daabb7dcccf97d77fa2a006abf
Diffstat (limited to 'ui-compose/build.gradle.kts')
-rw-r--r--ui-compose/build.gradle.kts25
1 files changed, 16 insertions, 9 deletions
diff --git a/ui-compose/build.gradle.kts b/ui-compose/build.gradle.kts
index e84b0ac1..19b06532 100644
--- a/ui-compose/build.gradle.kts
+++ b/ui-compose/build.gradle.kts
@@ -4,14 +4,21 @@ plugins {
id("com.github.android-password-store.kotlin-library")
}
+android {
+ buildFeatures {
+ compose = true
+ composeOptions {
+ useLiveLiterals = false
+ kotlinCompilerExtensionVersion = libs.versions.compose.get()
+ }
+ }
+ namespace = "dev.msfjarvis.aps.ui.compose"
+}
+
dependencies {
- 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.androidx.compose.material3)
- implementation(libs.compose.ui.core)
- implementation(libs.compose.ui.viewbinding)
- compileOnly(libs.compose.ui.tooling)
+ api(libs.compose.foundation.core)
+ api(libs.compose.foundation.layout)
+ api(libs.compose.material)
+ api(libs.compose.material3)
+ api(libs.compose.ui.core)
}