Android-Password-Store/app/build.gradle.kts

118 lines
4 KiB
Text
Raw Normal View History

2020-07-23 09:09:36 +00:00
/*
* Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
2020-07-23 09:09:36 +00:00
* SPDX-License-Identifier: GPL-3.0-only
*/
@file:Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
2020-07-23 09:09:36 +00:00
plugins {
2021-11-28 20:57:21 +00:00
id("com.github.android-password-store.android-application")
id("com.github.android-password-store.crowdin-plugin")
id("com.github.android-password-store.kotlin-android")
id("com.github.android-password-store.kotlin-kapt")
id("com.github.android-password-store.versioning-plugin")
id("com.github.android-password-store.sentry")
id("com.github.android-password-store.rename-artifacts")
id("dagger.hilt.android.plugin")
}
crowdin {
2021-11-28 20:57:21 +00:00
projectName = "android-password-store"
skipCleanup = false
}
2020-07-23 09:09:36 +00:00
android {
compileOptions { isCoreLibraryDesugaringEnabled = true }
2020-07-23 09:09:36 +00:00
defaultConfig {
applicationId = "app.passwordstore"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
2020-07-23 09:09:36 +00:00
2022-07-18 17:22:45 +00:00
buildFeatures {
compose = true
composeOptions {
useLiveLiterals = false
kotlinCompilerExtensionVersion = libs.compose.compiler.get().versionConstraint.requiredVersion
}
}
2022-07-14 19:23:48 +00:00
namespace = "app.passwordstore"
lint {
2022-01-24 02:46:58 +00:00
abortOnError = true
checkReleaseBuilds = false
warningsAsErrors = true
2022-01-24 02:46:58 +00:00
disable.add("MissingTranslation")
disable.add("PluralsCandidate")
disable.add("ImpliedQuantity")
2022-07-09 10:30:17 +00:00
disable.add("DialogFragmentCallbacksDetector")
2022-04-23 08:16:57 +00:00
baseline = file("lint-baseline.xml")
}
2020-07-23 09:09:36 +00:00
}
dependencies {
kapt(libs.dagger.hilt.compiler)
implementation(libs.androidx.annotation)
coreLibraryDesugaring(libs.android.desugarJdkLibs)
2021-04-12 12:08:06 +00:00
implementation(projects.autofillParser)
implementation(projects.coroutineUtils)
implementation(projects.cryptoPgpainless)
implementation(projects.formatCommonImpl)
2021-12-10 09:22:26 +00:00
implementation(projects.passgen.diceware)
implementation(projects.passgen.random)
2022-07-06 16:49:01 +00:00
implementation(projects.uiCompose)
implementation(libs.androidx.activity.ktx)
2022-07-18 17:22:45 +00:00
implementation(libs.androidx.activity.compose)
2021-04-12 12:08:06 +00:00
implementation(libs.androidx.appcompat)
implementation(libs.androidx.autofill)
implementation(libs.androidx.biometricKtx)
implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.core.ktx)
2021-04-12 12:08:06 +00:00
implementation(libs.androidx.documentfile)
implementation(libs.androidx.fragment.ktx)
2021-04-12 12:08:06 +00:00
implementation(libs.bundles.androidxLifecycle)
implementation(libs.androidx.material)
implementation(libs.androidx.preference)
implementation(libs.androidx.recyclerview)
implementation(libs.androidx.recyclerviewSelection)
implementation(libs.androidx.security)
implementation(libs.androidx.swiperefreshlayout)
implementation(libs.compose.ui.tooling)
implementation(libs.dagger.hilt.android)
2020-07-23 09:09:36 +00:00
2021-04-12 12:08:06 +00:00
implementation(libs.kotlin.coroutines.android)
implementation(libs.kotlin.coroutines.core)
2020-07-23 09:09:36 +00:00
2021-04-12 12:08:06 +00:00
implementation(libs.aps.sublimeFuzzy)
implementation(libs.aps.zxingAndroidEmbedded)
2020-07-23 09:09:36 +00:00
2021-04-12 12:08:06 +00:00
implementation(libs.thirdparty.eddsa)
implementation(libs.thirdparty.fastscroll)
implementation(libs.thirdparty.flowbinding.android)
2021-04-12 12:08:06 +00:00
implementation(libs.thirdparty.jgit) {
exclude(group = "org.apache.httpcomponents", module = "httpclient")
}
2021-04-12 12:08:06 +00:00
implementation(libs.thirdparty.kotlinResult)
implementation(libs.thirdparty.logcat)
2021-04-12 12:08:06 +00:00
implementation(libs.thirdparty.modernAndroidPrefs)
implementation(libs.thirdparty.plumber)
implementation(libs.thirdparty.sshj) { exclude(group = "org.bouncycastle") }
implementation(libs.thirdparty.bouncycastle.bcprov)
implementation(libs.thirdparty.bouncycastle.bcpkix)
2020-07-23 09:09:36 +00:00
2022-05-19 07:23:59 +00:00
if (snapshot.snapshot) {
2021-04-12 12:08:06 +00:00
implementation(libs.thirdparty.whatthestack)
} else {
2021-04-12 12:08:06 +00:00
debugImplementation(libs.thirdparty.whatthestack)
}
2020-07-23 09:09:36 +00:00
debugImplementation(libs.thirdparty.leakcanary)
add("nonFreeImplementation", libs.thirdparty.nonfree.googlePlayAuthApiPhone)
add("nonFreeImplementation", libs.thirdparty.nonfree.sentry)
add("freeImplementation", projects.sentryStub)
2020-07-23 09:09:36 +00:00
testImplementation(libs.testing.robolectric)
testImplementation(libs.testing.sharedPrefsMock)
2021-04-12 12:08:06 +00:00
testImplementation(libs.bundles.testDependencies)
2020-07-23 09:09:36 +00:00
}