Change k9mail app to use build plugin

This commit is contained in:
Wolf Montwé 2023-02-15 18:42:27 +01:00
parent 948f11378b
commit 7d871fd9cb
No known key found for this signature in database
GPG key ID: 6D45B21512ACBF72
2 changed files with 3 additions and 27 deletions

View file

@ -1,6 +1,5 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
id("thunderbird.app.android.default")
}
if (rootProject.testCoverage) {
@ -8,8 +7,6 @@ if (rootProject.testCoverage) {
}
dependencies {
coreLibraryDesugaring libs.desugar
implementation project(":app:ui:legacy")
implementation project(":app:ui:message-list-widget")
implementation project(":app:core")
@ -38,10 +35,6 @@ dependencies {
testImplementation project(':plugins:openpgp-api-lib:openpgp-api')
testImplementation libs.robolectric
testImplementation libs.junit
testImplementation libs.truth
testImplementation libs.mockito.inline
testImplementation libs.mockito.kotlin
testImplementation libs.koin.test
testImplementation libs.koin.test.junit4
}
@ -63,18 +56,10 @@ android {
"fy"
}
buildFeatures {
buildConfig true
}
signingConfigs {
release
}
compileOptions {
coreLibraryDesugaringEnabled true
}
buildTypes {
release {
if (project.hasProperty('storeFile')) {
@ -109,10 +94,6 @@ android {
}
}
lint {
checkDependencies true
}
packagingOptions {
jniLibs {
excludes += ['kotlin/**']
@ -136,11 +117,6 @@ android {
]
}
}
dependenciesInfo {
includeInApk = false
includeInBundle = false
}
}
if (project.hasProperty('keyAlias')) {

View file

@ -1,5 +1,5 @@
import com.android.build.gradle.BaseExtension
import com.android.build.gradle.BasePlugin
import com.android.build.gradle.LibraryPlugin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
@Suppress("DSL_SCOPE_VIOLATION")
@ -64,7 +64,7 @@ allprojects {
}
}
plugins.withType<BasePlugin> {
plugins.withType<LibraryPlugin> {
configure<BaseExtension> {
compileSdkVersion(33)