smalltalk-matrix/app/build.gradle

70 lines
2.2 KiB
Groovy
Raw Normal View History

2022-02-24 22:55:56 +01:00
plugins {
2022-12-11 13:49:48 +01:00
id "st-application-conventions"
2022-12-11 14:10:00 +01:00
alias libs.plugins.firebase.crashlytics apply false
2022-02-24 22:55:56 +01:00
}
2022-12-11 14:10:00 +01:00
applyCrashlyticsIfRelease()
2022-02-24 22:55:56 +01:00
android {
namespace "app.dapk.st"
defaultConfig {
applicationId "app.dapk.st"
}
2022-02-24 22:55:56 +01:00
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
'proguard/app.pro',
"proguard/serializationx.pro",
"proguard/olm.pro"
}
}
}
2022-02-24 22:55:56 +01:00
dependencies {
2022-12-11 13:49:48 +01:00
coreLibraryDesugaring libs.android.desugar
2022-02-24 22:55:56 +01:00
implementation project(":features:home")
implementation project(":features:directory")
implementation project(":features:login")
implementation project(":features:settings")
implementation project(":features:notifications")
implementation project(":features:messenger")
implementation project(":features:profile")
implementation project(":features:navigator")
implementation project(":features:share-entry")
2022-02-24 22:55:56 +01:00
2022-06-13 20:10:02 +02:00
implementation project(":domains:android:compose-core")
2022-02-24 22:55:56 +01:00
implementation project(":domains:android:core")
implementation project(":domains:android:tracking")
implementation project(":domains:android:push")
implementation project(":domains:android:work")
implementation project(":domains:android:imageloader")
implementation project(":domains:store")
2022-02-24 22:55:56 +01:00
firebase(it, "messaging")
2022-02-24 22:55:56 +01:00
implementation project(":core")
implementation "chat-engine:chat-engine"
implementation "chat-engine:matrix-chat-engine"
implementation "chat-engine.matrix:store"
2022-12-11 13:49:48 +01:00
implementation libs.ktor.android
implementation libs.sqldelight.android
implementation libs.matrix.olm
2022-02-24 22:55:56 +01:00
2022-12-11 13:49:48 +01:00
implementation libs.kotlin.serialization
debugImplementation libs.leakcanary
2022-02-24 22:55:56 +01:00
}
2022-12-11 14:10:00 +01:00
def applyCrashlyticsIfRelease() {
if (isReleaseBuild && !isFoss()) {
project.apply plugin: libs.plugins.firebase.crashlytics.get().pluginId
project.afterEvaluate {
project.tasks.withType(com.google.firebase.crashlytics.buildtools.gradle.tasks.UploadMappingFileTask).configureEach {
it.googleServicesResourceRoot.set(project.file("src/release/res/"))
}
}
}
}