2020-07-23 09:09:36 +00:00
|
|
|
/*
|
2021-03-09 09:15:27 +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
|
|
|
|
*/
|
|
|
|
import com.android.build.gradle.internal.api.BaseVariantOutputImpl
|
|
|
|
|
|
|
|
plugins {
|
2021-03-09 09:23:11 +00:00
|
|
|
id("com.android.application")
|
|
|
|
kotlin("android")
|
|
|
|
`versioning-plugin`
|
|
|
|
`aps-plugin`
|
|
|
|
`crowdin-plugin`
|
2020-12-30 10:06:51 +00:00
|
|
|
}
|
|
|
|
|
2021-03-09 09:23:11 +00:00
|
|
|
configure<CrowdinExtension> { projectName = "android-password-store" }
|
2020-07-23 09:09:36 +00:00
|
|
|
|
|
|
|
android {
|
2021-03-09 09:23:11 +00:00
|
|
|
if (isSnapshot()) {
|
|
|
|
applicationVariants.all {
|
|
|
|
outputs.all {
|
|
|
|
(this as BaseVariantOutputImpl).outputFileName = "aps-${flavorName}_$versionName.apk"
|
|
|
|
}
|
2020-07-23 09:09:36 +00:00
|
|
|
}
|
2021-03-09 09:23:11 +00:00
|
|
|
}
|
2020-07-23 09:09:36 +00:00
|
|
|
|
2021-03-09 09:23:11 +00:00
|
|
|
defaultConfig {
|
|
|
|
applicationId = "dev.msfjarvis.aps"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
2020-07-23 09:09:36 +00:00
|
|
|
|
2021-03-09 09:23:11 +00:00
|
|
|
lintOptions {
|
|
|
|
isAbortOnError = true
|
|
|
|
isCheckReleaseBuilds = false
|
|
|
|
disable("MissingTranslation", "PluralsCandidate", "ImpliedQuantity")
|
|
|
|
}
|
2020-07-23 09:09:36 +00:00
|
|
|
|
2021-03-09 09:23:11 +00:00
|
|
|
flavorDimensions("free")
|
|
|
|
productFlavors {
|
|
|
|
create("free") {}
|
|
|
|
create("nonFree") {}
|
|
|
|
}
|
2020-07-23 09:09:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-04-12 12:08:06 +00:00
|
|
|
compileOnly(libs.androidx.annotation)
|
|
|
|
implementation(projects.autofillParser)
|
|
|
|
implementation(projects.openpgpKtx)
|
|
|
|
implementation(libs.androidx.activityKtx)
|
|
|
|
implementation(libs.androidx.appcompat)
|
|
|
|
implementation(libs.androidx.autofill)
|
|
|
|
implementation(libs.androidx.biometricKtx)
|
|
|
|
implementation(libs.androidx.constraintlayout)
|
|
|
|
implementation(libs.androidx.coreKtx)
|
|
|
|
implementation(libs.androidx.documentfile)
|
|
|
|
implementation(libs.androidx.fragmentKtx)
|
|
|
|
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)
|
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.bouncycastle)
|
|
|
|
implementation(libs.thirdparty.commons.codec)
|
|
|
|
implementation(libs.thirdparty.eddsa)
|
|
|
|
implementation(libs.thirdparty.fastscroll)
|
|
|
|
implementation(libs.thirdparty.jgit) {
|
2021-03-09 09:23:11 +00:00
|
|
|
exclude(group = "org.apache.httpcomponents", module = "httpclient")
|
|
|
|
}
|
2021-04-12 12:08:06 +00:00
|
|
|
implementation(libs.thirdparty.kotlinResult)
|
|
|
|
implementation(libs.thirdparty.modernAndroidPrefs)
|
|
|
|
implementation(libs.thirdparty.plumber)
|
|
|
|
implementation(libs.thirdparty.sshauth)
|
|
|
|
implementation(libs.thirdparty.sshj)
|
|
|
|
implementation(libs.thirdparty.timber)
|
|
|
|
implementation(libs.thirdparty.timberkt)
|
2020-07-23 09:09:36 +00:00
|
|
|
|
2021-03-09 09:23:11 +00:00
|
|
|
if (isSnapshot()) {
|
2021-04-12 12:08:06 +00:00
|
|
|
implementation(libs.thirdparty.leakcanary)
|
|
|
|
implementation(libs.thirdparty.whatthestack)
|
2021-03-09 09:23:11 +00:00
|
|
|
} else {
|
2021-04-12 12:08:06 +00:00
|
|
|
debugImplementation(libs.thirdparty.leakcanary)
|
|
|
|
debugImplementation(libs.thirdparty.whatthestack)
|
2021-03-09 09:23:11 +00:00
|
|
|
}
|
2020-07-23 09:09:36 +00:00
|
|
|
|
2021-04-12 12:08:06 +00:00
|
|
|
"nonFreeImplementation"(libs.thirdparty.nonfree.googlePlayAuthApiPhone)
|
2020-07-23 09:09:36 +00:00
|
|
|
|
2021-04-12 12:08:06 +00:00
|
|
|
androidTestImplementation(libs.bundles.testDependencies)
|
|
|
|
androidTestImplementation(libs.bundles.androidTestDependencies)
|
|
|
|
testImplementation(libs.bundles.testDependencies)
|
2020-07-23 09:09:36 +00:00
|
|
|
}
|