diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-03-27 18:07:18 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-27 12:37:18 +0000 |
commit | 2320201f895530d127441b15317bb6a557820396 (patch) | |
tree | 2fbb5f8618b28e00a98b54472e8a37faeba5019f /ui-compose | |
parent | 4d3be5b0708cf8f6cfe40d790763a576d010bc18 (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')
-rw-r--r-- | ui-compose/build.gradle.kts | 25 | ||||
-rw-r--r-- | ui-compose/src/main/AndroidManifest.xml | 2 |
2 files changed, 17 insertions, 10 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) } diff --git a/ui-compose/src/main/AndroidManifest.xml b/ui-compose/src/main/AndroidManifest.xml index 482100e7..e3cc34c8 100644 --- a/ui-compose/src/main/AndroidManifest.xml +++ b/ui-compose/src/main/AndroidManifest.xml @@ -3,4 +3,4 @@ ~ SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception --> -<manifest package="dev.msfjarvis.aps.ui.compose" /> +<manifest /> |