protoncore_android/payment/presentation/build.gradle.kts

91 lines
2.3 KiB
Plaintext

/*
* Copyright (c) 2023 Proton AG
* This file is part of Proton AG and ProtonCore.
*
* ProtonCore is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ProtonCore is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ProtonCore. If not, see <https://www.gnu.org/licenses/>.
*/
import studio.forface.easygradle.dsl.*
import studio.forface.easygradle.dsl.android.*
plugins {
protonAndroidUiLibrary
protonDagger
id("kotlin-parcelize")
}
protonCoverage {
branchCoveragePercentage.set(38)
lineCoveragePercentage.set(66)
}
publishOption.shouldBePublishedAsLib = true
android {
namespace = "me.proton.core.payment.presentation"
compileOptions {
isCoreLibraryDesugaringEnabled = true
}
}
dependencies {
api(
project(Module.countryDomain),
project(Module.domain),
project(Module.humanVerificationDomain),
project(Module.networkDomain),
project(Module.observabilityDomain),
project(Module.paymentDomain),
project(Module.planDomain),
project(Module.presentation),
`activity-noktx`,
`constraint-layout`,
coordinatorlayout,
`coroutines-core`,
`hilt-android`,
material,
recyclerview
)
coreLibraryDesugaring(`desugar-jdk-libs`)
implementation(
// Core
project(Module.kotlinUtil),
// Features
project(Module.countryPresentation),
// Android
activity,
`android-ktx`,
appcompat,
fragment,
`lifecycle-common`,
`lifecycle-runtime`,
`lifecycle-viewModel`,
)
testImplementation(
project(Module.androidTest),
project(Module.kotlinTest),
`android-arch-testing`,
`coroutines-test`,
junit,
`kotlin-test`,
mockk,
turbine
)
}