2020-07-23 11:09:36 +02:00
|
|
|
/*
|
2021-03-09 10:15:27 +01:00
|
|
|
* Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
|
2020-07-23 11:09:36 +02:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
plugins {
|
2021-11-28 21:57:21 +01: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")
|
2022-02-20 14:28:35 +01:00
|
|
|
id("com.github.android-password-store.sentry")
|
2022-02-23 09:55:03 +01:00
|
|
|
id("com.github.android-password-store.rename-artifacts")
|
2021-04-18 00:22:41 +02:00
|
|
|
id("dagger.hilt.android.plugin")
|
2020-12-30 11:06:51 +01:00
|
|
|
}
|
|
|
|
|
2022-01-26 18:11:04 +01:00
|
|
|
crowdin {
|
2021-11-28 21:57:21 +01:00
|
|
|
projectName = "android-password-store"
|
|
|
|
skipCleanup = false
|
|
|
|
}
|
|
|
|
|
2020-07-23 11:09:36 +02:00
|
|
|
android {
|
2021-04-18 00:22:41 +02:00
|
|
|
compileOptions { isCoreLibraryDesugaringEnabled = true }
|
2020-07-23 11:09:36 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "dev.msfjarvis.aps"
|
2020-10-16 17:18:11 +02:00
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
2020-07-23 11:09:36 +02:00
|
|
|
}
|
|
|
|
|
2022-03-27 14:37:18 +02:00
|
|
|
namespace = "dev.msfjarvis.aps"
|
|
|
|
|
2021-10-09 09:43:14 +02:00
|
|
|
lint {
|
2022-01-24 03:46:58 +01:00
|
|
|
abortOnError = true
|
|
|
|
checkReleaseBuilds = false
|
|
|
|
disable.add("MissingTranslation")
|
|
|
|
disable.add("PluralsCandidate")
|
|
|
|
disable.add("ImpliedQuantity")
|
2022-04-23 10:16:57 +02:00
|
|
|
baseline = file("lint-baseline.xml")
|
2020-07-23 11:09:36 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-04-18 00:22:41 +02:00
|
|
|
kapt(libs.dagger.hilt.compiler)
|
2021-05-12 12:41:32 +02:00
|
|
|
implementation(libs.androidx.annotation)
|
2021-04-18 00:22:41 +02:00
|
|
|
coreLibraryDesugaring(libs.android.desugarJdkLibs)
|
2021-04-12 14:08:06 +02:00
|
|
|
implementation(projects.autofillParser)
|
2021-12-09 05:37:54 +01:00
|
|
|
implementation(projects.coroutineUtils)
|
2021-10-23 13:32:50 +02:00
|
|
|
implementation(projects.cryptoPgpainless)
|
2021-04-18 00:42:13 +02:00
|
|
|
implementation(projects.formatCommon)
|
2021-04-12 14:08:06 +02:00
|
|
|
implementation(projects.openpgpKtx)
|
2021-12-10 10:22:26 +01:00
|
|
|
implementation(projects.passgen.diceware)
|
2022-01-13 17:43:53 +01:00
|
|
|
implementation(projects.passgen.random)
|
2022-07-06 18:49:01 +02:00
|
|
|
implementation(projects.uiCompose)
|
2021-06-04 08:00:30 +02:00
|
|
|
implementation(libs.androidx.activity.ktx)
|
2021-04-12 14:08:06 +02:00
|
|
|
implementation(libs.androidx.appcompat)
|
|
|
|
implementation(libs.androidx.autofill)
|
|
|
|
implementation(libs.androidx.biometricKtx)
|
|
|
|
implementation(libs.androidx.constraintlayout)
|
2021-06-04 08:00:30 +02:00
|
|
|
implementation(libs.androidx.core.ktx)
|
2021-04-12 14:08:06 +02:00
|
|
|
implementation(libs.androidx.documentfile)
|
2021-06-04 08:00:30 +02:00
|
|
|
implementation(libs.androidx.fragment.ktx)
|
2021-04-12 14:08:06 +02: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)
|
2021-04-18 00:22:41 +02:00
|
|
|
implementation(libs.dagger.hilt.android)
|
2020-07-23 11:09:36 +02:00
|
|
|
|
2021-04-12 14:08:06 +02:00
|
|
|
implementation(libs.kotlin.coroutines.android)
|
|
|
|
implementation(libs.kotlin.coroutines.core)
|
2020-07-23 11:09:36 +02:00
|
|
|
|
2021-04-12 14:08:06 +02:00
|
|
|
implementation(libs.aps.sublimeFuzzy)
|
|
|
|
implementation(libs.aps.zxingAndroidEmbedded)
|
2020-07-23 11:09:36 +02:00
|
|
|
|
2021-04-12 14:08:06 +02:00
|
|
|
implementation(libs.thirdparty.eddsa)
|
|
|
|
implementation(libs.thirdparty.fastscroll)
|
2021-08-08 09:36:26 +02:00
|
|
|
implementation(libs.thirdparty.flowbinding.android)
|
2021-04-12 14:08:06 +02:00
|
|
|
implementation(libs.thirdparty.jgit) {
|
2020-07-23 11:09:36 +02:00
|
|
|
exclude(group = "org.apache.httpcomponents", module = "httpclient")
|
|
|
|
}
|
2021-04-12 14:08:06 +02:00
|
|
|
implementation(libs.thirdparty.kotlinResult)
|
2021-10-03 10:32:15 +02:00
|
|
|
implementation(libs.thirdparty.logcat)
|
2021-04-12 14:08:06 +02:00
|
|
|
implementation(libs.thirdparty.modernAndroidPrefs)
|
|
|
|
implementation(libs.thirdparty.plumber)
|
|
|
|
implementation(libs.thirdparty.sshauth)
|
2022-05-27 09:30:10 +02:00
|
|
|
implementation(libs.thirdparty.sshj) { exclude(group = "org.bouncycastle") }
|
|
|
|
implementation(libs.thirdparty.bouncycastle.bcprov)
|
|
|
|
implementation(libs.thirdparty.bouncycastle.bcpkix)
|
2020-07-23 11:09:36 +02:00
|
|
|
|
2022-05-19 09:23:59 +02:00
|
|
|
if (snapshot.snapshot) {
|
2021-04-12 14:08:06 +02:00
|
|
|
implementation(libs.thirdparty.whatthestack)
|
2020-07-23 11:09:36 +02:00
|
|
|
} else {
|
2021-04-12 14:08:06 +02:00
|
|
|
debugImplementation(libs.thirdparty.whatthestack)
|
2020-07-23 11:09:36 +02:00
|
|
|
}
|
|
|
|
|
2021-06-07 19:18:17 +02:00
|
|
|
debugImplementation(libs.thirdparty.leakcanary)
|
|
|
|
add("nonFreeImplementation", libs.thirdparty.nonfree.googlePlayAuthApiPhone)
|
2022-02-20 14:28:35 +01:00
|
|
|
add("nonFreeImplementation", libs.thirdparty.nonfree.sentry)
|
2022-03-13 13:11:01 +01:00
|
|
|
add("freeImplementation", projects.sentryStub)
|
2020-07-23 11:09:36 +02:00
|
|
|
|
2021-04-19 13:43:12 +02:00
|
|
|
testImplementation(libs.testing.robolectric)
|
2021-05-17 10:49:02 +02:00
|
|
|
testImplementation(libs.testing.sharedPrefsMock)
|
2021-04-12 14:08:06 +02:00
|
|
|
testImplementation(libs.bundles.testDependencies)
|
2020-07-23 11:09:36 +02:00
|
|
|
}
|