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 {
|
2022-12-11 16:06:05 +01:00
|
|
|
namespace "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-10-02 17:26:44 +02:00
|
|
|
}
|
|
|
|
|
2022-02-24 22:55:56 +01:00
|
|
|
dependencies {
|
2022-12-11 13:49:48 +01:00
|
|
|
coreLibraryDesugaring libs.android.desugar
|
2022-03-17 20:50:40 +01:00
|
|
|
|
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")
|
2022-05-29 20:53:45 +02:00
|
|
|
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")
|
2022-12-05 23:25:06 +01:00
|
|
|
implementation project(":domains:store")
|
2022-02-24 22:55:56 +01:00
|
|
|
|
2022-08-31 18:44:17 +02:00
|
|
|
firebase(it, "messaging")
|
|
|
|
|
2022-02-24 22:55:56 +01:00
|
|
|
implementation project(":core")
|
|
|
|
|
2022-12-05 23:25:06 +01:00
|
|
|
implementation "chat-engine:chat-engine"
|
|
|
|
implementation "chat-engine:matrix-chat-engine"
|
|
|
|
implementation "chat-engine.matrix:store"
|
2022-10-09 17:52:33 +02:00
|
|
|
|
2022-12-11 13:49:48 +01:00
|
|
|
implementation libs.compose.ui
|
|
|
|
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/"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|