2022-02-24 22:55:56 +01:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'kotlin-android'
|
|
|
|
}
|
|
|
|
|
|
|
|
applyCommonAndroidParameters(project)
|
|
|
|
applyCrashlyticsIfRelease(project)
|
|
|
|
|
|
|
|
android {
|
|
|
|
ndkVersion "25.0.8141415"
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "app.dapk.st"
|
2022-03-07 20:04:25 +01:00
|
|
|
def versionJson = new groovy.json.JsonSlurper().parseText(rootProject.file('version.json').text)
|
|
|
|
versionCode versionJson.code
|
|
|
|
versionName versionJson.name
|
2022-06-11 15:29:33 +02:00
|
|
|
|
|
|
|
if (isDebugBuild) {
|
|
|
|
resConfigs "en", "xxhdpi"
|
|
|
|
variantFilter { variant ->
|
|
|
|
if (variant.buildType.name == "release") {
|
|
|
|
setIgnore(true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
resConfigs "en"
|
|
|
|
}
|
2022-08-31 21:34:40 +02:00
|
|
|
|
|
|
|
if (isFoss()) {
|
|
|
|
archivesBaseName = "$archivesBaseName-foss"
|
|
|
|
}
|
2022-02-24 22:55:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bundle {
|
|
|
|
abi.enableSplit true
|
|
|
|
density.enableSplit true
|
|
|
|
language.enableSplit true
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
2022-06-11 15:29:33 +02:00
|
|
|
versionNameSuffix = " [debug]"
|
2022-02-24 22:55:56 +01:00
|
|
|
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"
|
2022-03-07 20:04:25 +01:00
|
|
|
|
2022-08-24 16:15:26 +02:00
|
|
|
if (project.hasProperty("unsigned")) {
|
|
|
|
// releases are signed externally
|
|
|
|
} else {
|
|
|
|
signingConfig = buildTypes.debug.signingConfig
|
|
|
|
}
|
2022-02-24 22:55:56 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-17 20:50:40 +01:00
|
|
|
compileOptions {
|
|
|
|
coreLibraryDesugaringEnabled true
|
|
|
|
}
|
|
|
|
|
2022-02-24 22:55:56 +01:00
|
|
|
packagingOptions {
|
|
|
|
resources.excludes += "DebugProbesKt.bin"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-07-11 20:37:53 +02:00
|
|
|
coreLibraryDesugaring Dependencies.google.jdkLibs
|
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
|
|
|
|
|
|
|
implementation project(':domains:store')
|
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:olm")
|
|
|
|
|
2022-08-31 18:44:17 +02:00
|
|
|
firebase(it, "messaging")
|
|
|
|
|
2022-02-24 22:55:56 +01:00
|
|
|
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
|
2022-04-26 00:09:35 +02:00
|
|
|
debugImplementation Dependencies.mavenCentral.leakCanary
|
2022-02-24 22:55:56 +01:00
|
|
|
}
|