mirror of
https://github.com/ouchadam/small-talk.git
synced 2024-12-18 21:02:48 +01:00
88 lines
2.9 KiB
Groovy
88 lines
2.9 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
}
|
|
|
|
applyCommonAndroidParameters(project)
|
|
applyCrashlyticsIfRelease(project)
|
|
|
|
android {
|
|
ndkVersion "25.0.8141415"
|
|
defaultConfig {
|
|
applicationId "app.dapk.st"
|
|
def versionJson = new groovy.json.JsonSlurper().parseText(rootProject.file('version.json').text)
|
|
versionCode versionJson.code
|
|
versionName versionJson.name
|
|
resConfigs "en"
|
|
}
|
|
|
|
bundle {
|
|
abi.enableSplit true
|
|
density.enableSplit true
|
|
language.enableSplit true
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
versionNameSuffix =" [debug]"
|
|
matchingFallbacks = ['release']
|
|
signingConfig.storeFile rootProject.file("tools/debug.keystore")
|
|
}
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
|
|
'proguard/app.pro',
|
|
"proguard/serializationx.pro",
|
|
"proguard/olm.pro"
|
|
|
|
// actual releases are signed with a different config
|
|
signingConfig = buildTypes.debug.signingConfig
|
|
}
|
|
}
|
|
|
|
packagingOptions {
|
|
resources.excludes += "DebugProbesKt.bin"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
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(':domains:store')
|
|
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:olm")
|
|
|
|
implementation project(":matrix:matrix")
|
|
implementation project(":matrix:matrix-http-ktor")
|
|
implementation project(":matrix:services:auth")
|
|
implementation project(":matrix:services:sync")
|
|
implementation project(":matrix:services:room")
|
|
implementation project(":matrix:services:push")
|
|
implementation project(":matrix:services:message")
|
|
implementation project(":matrix:services:device")
|
|
implementation project(":matrix:services:crypto")
|
|
implementation project(":matrix:services:profile")
|
|
|
|
implementation project(":core")
|
|
|
|
implementation Dependencies.google.androidxComposeUi
|
|
implementation Dependencies.mavenCentral.ktorAndroid
|
|
implementation Dependencies.mavenCentral.sqldelightAndroid
|
|
implementation Dependencies.mavenCentral.matrixOlm
|
|
|
|
implementation Dependencies.mavenCentral.kotlinSerializationJson
|
|
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.8.1'
|
|
}
|