From 8cfe6ec84c1bd8119fd59fbb76d729da284ced27 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 19 Dec 2022 16:47:17 +0530 Subject: refactor: merge format-common-impl into format-common Also converts the format-common module into an Android library since UriTotpFinder requires the Android SDK. --- format-common/build.gradle.kts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'format-common/build.gradle.kts') diff --git a/format-common/build.gradle.kts b/format-common/build.gradle.kts index a42a2404..34b5c69e 100644 --- a/format-common/build.gradle.kts +++ b/format-common/build.gradle.kts @@ -5,15 +5,27 @@ @file:Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage") plugins { - kotlin("jvm") + id("com.github.android-password-store.android-library") + id("com.github.android-password-store.kotlin-android") id("com.github.android-password-store.kotlin-library") } +android { + namespace = "app.passwordstore.format.common" + compileOptions { isCoreLibraryDesugaringEnabled = true } +} + dependencies { + api(libs.kotlin.coroutines.core) api(libs.thirdparty.kotlinResult) + compileOnly(libs.androidx.annotation) + coreLibraryDesugaring(libs.android.desugarJdkLibs) implementation(projects.coroutineUtils) - implementation(libs.androidx.annotation) implementation(libs.dagger.hilt.core) implementation(libs.thirdparty.commons.codec) - implementation(libs.kotlin.coroutines.core) + testImplementation(projects.coroutineUtilsTesting) + testImplementation(libs.bundles.testDependencies) + testImplementation(libs.kotlin.coroutines.test) + testImplementation(libs.testing.robolectric) + testImplementation(libs.testing.turbine) } -- cgit v1.2.3