2022-08-02 18:14:08 +03:00
|
|
|
import com.android.build.OutputFile
|
|
|
|
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'com.google.firebase.appdistribution'
|
|
|
|
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-parcelize'
|
|
|
|
apply plugin: 'kotlin-kapt'
|
2022-10-03 17:30:44 +03:00
|
|
|
apply plugin: 'com.google.devtools.ksp'
|
2022-08-02 18:14:08 +03:00
|
|
|
apply plugin: 'dagger.hilt.android.plugin'
|
|
|
|
apply plugin: 'kotlinx-knit'
|
2022-08-02 18:33:55 +03:00
|
|
|
apply plugin: 'com.likethesalad.stem'
|
2022-08-02 18:14:08 +03:00
|
|
|
|
|
|
|
if (project.hasProperty("coverage")) {
|
|
|
|
apply plugin: 'jacoco'
|
|
|
|
}
|
|
|
|
|
|
|
|
kapt {
|
|
|
|
correctErrorTypes = true
|
|
|
|
}
|
|
|
|
|
|
|
|
knit {
|
|
|
|
files = fileTree(project.rootDir) {
|
|
|
|
include '**/*.md'
|
|
|
|
include '**/*.kt'
|
|
|
|
include '**/*.kts'
|
|
|
|
exclude '**/build/**'
|
|
|
|
exclude '**/.gradle/**'
|
|
|
|
exclude '**/towncrier/template.md'
|
|
|
|
exclude '**/CHANGES.md'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Note: 2 digits max for each value
|
|
|
|
ext.versionMajor = 1
|
2023-05-17 13:10:23 +03:00
|
|
|
ext.versionMinor = 6
|
2022-08-02 18:14:08 +03:00
|
|
|
// Note: even values are reserved for regular release, odd values for hotfix release.
|
|
|
|
// When creating a hotfix, you should decrease the value, since the current value
|
|
|
|
// is the value for the next regular release.
|
2024-09-23 21:51:18 +03:00
|
|
|
ext.versionPatch = 24
|
2022-08-02 18:14:08 +03:00
|
|
|
|
2024-11-29 13:53:05 +03:00
|
|
|
ext.scVersion = 82
|
2022-09-10 12:28:34 +03:00
|
|
|
|
2022-08-02 18:14:08 +03:00
|
|
|
static def getGitTimestamp() {
|
|
|
|
def cmd = 'git show -s --format=%ct'
|
|
|
|
return cmd.execute().text.trim() as Long
|
|
|
|
}
|
|
|
|
|
|
|
|
static def generateVersionCodeFromTimestamp() {
|
|
|
|
// It's unix timestamp, minus timestamp of October 3rd 2018 (first commit date) divided by 100: It's incremented by one every 100 seconds.
|
|
|
|
// plus 20_000_000 for compatibility reason with the previous way the Version Code was computed
|
|
|
|
// Note that the result will be multiplied by 10 when adding the digit for the arch
|
|
|
|
return ((getGitTimestamp() - 1_538_524_800) / 100).toInteger() + 20_000_000
|
|
|
|
}
|
|
|
|
|
|
|
|
def generateVersionCodeFromVersionName() {
|
|
|
|
// plus 4_000_000 for compatibility reason with the previous way the Version Code was computed
|
|
|
|
// Note that the result will be multiplied by 10 when adding the digit for the arch
|
2022-09-10 12:28:34 +03:00
|
|
|
return (versionMajor * 1_00_00 + versionMinor * 1_00 + versionPatch + scVersion) + 4_000_000
|
2022-08-02 18:14:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
def getVersionCode() {
|
|
|
|
if (gitBranchName() == "develop") {
|
|
|
|
return generateVersionCodeFromTimestamp()
|
|
|
|
} else {
|
|
|
|
return generateVersionCodeFromVersionName()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-02 14:40:48 +03:00
|
|
|
def getNightlyUniversalApkPath() {
|
|
|
|
def taskNames = gradle.getStartParameter().taskNames.toString()
|
2023-10-02 14:58:51 +03:00
|
|
|
if(taskNames.contains("Nightly")) {
|
|
|
|
return "vector-app/build/outputs/apk/gplay/nightly/vector-gplay-universal-nightly.apk"
|
2022-12-02 14:40:48 +03:00
|
|
|
} else {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
def getFirebaseAppId() {
|
2023-05-12 16:19:06 +03:00
|
|
|
// def taskNames = gradle.getStartParameter().taskNames.toString()
|
|
|
|
// if(taskNames.contains("RustCryptoNightly")) {
|
|
|
|
// return "1:912726360885:android:94fb99347eaa36d100427c"
|
|
|
|
// } else if (taskNames.contains("KotlinCryptoNightly")) {
|
2022-12-02 14:40:48 +03:00
|
|
|
return "1:912726360885:android:efd8545af52a9f9300427c"
|
2023-05-12 16:19:06 +03:00
|
|
|
// } else {
|
|
|
|
// return ""
|
|
|
|
// }
|
2022-12-02 14:40:48 +03:00
|
|
|
}
|
2022-08-02 18:14:08 +03:00
|
|
|
static def gitRevision() {
|
|
|
|
def cmd = "git rev-parse --short=8 HEAD"
|
|
|
|
return cmd.execute().text.trim()
|
|
|
|
}
|
|
|
|
|
|
|
|
static def gitRevisionDate() {
|
|
|
|
def cmd = "git show -s --format=%ci HEAD^{commit}"
|
|
|
|
return cmd.execute().text.trim()
|
|
|
|
}
|
|
|
|
|
|
|
|
static def gitBranchName() {
|
2022-11-14 17:02:01 +03:00
|
|
|
def cmd = "git rev-parse --abbrev-ref HEAD"
|
|
|
|
return cmd.execute().text.trim()
|
2022-08-02 18:14:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// For Google Play build, build on any other branch than main will have a "-dev" suffix
|
|
|
|
static def getGplayVersionSuffix() {
|
2022-09-10 12:28:34 +03:00
|
|
|
if (gitBranchName() == "main" || true) {
|
2022-08-02 18:14:08 +03:00
|
|
|
return ""
|
|
|
|
} else {
|
|
|
|
return "-dev"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static def gitTag() {
|
|
|
|
def cmd = "git describe --exact-match --tags"
|
|
|
|
return cmd.execute().text.trim()
|
|
|
|
}
|
|
|
|
|
|
|
|
// For F-Droid build, build on a not tagged commit will have a "-dev" suffix
|
|
|
|
static def getFdroidVersionSuffix() {
|
|
|
|
if (gitTag() == "") {
|
|
|
|
return "-dev"
|
|
|
|
} else {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
project.android.buildTypes.all { buildType ->
|
|
|
|
buildType.javaCompileOptions.annotationProcessorOptions.arguments =
|
|
|
|
[
|
|
|
|
validateEpoxyModelUsage: String.valueOf(buildType.name == 'debug')
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
// map for the version codes last digit
|
|
|
|
// x86 must have greater values than arm
|
|
|
|
// 64 bits have greater value than 32 bits
|
|
|
|
ext.abiVersionCodes = ["armeabi-v7a": 1, "arm64-v8a": 2, "x86": 3, "x86_64": 4].withDefault { 0 }
|
|
|
|
|
|
|
|
android {
|
2022-10-17 10:14:28 +03:00
|
|
|
namespace "im.vector.application"
|
2022-08-02 18:14:08 +03:00
|
|
|
// Due to a bug introduced in Android gradle plugin 3.6.0, we have to specify the ndk version to use
|
|
|
|
// Ref: https://issuetracker.google.com/issues/144111441
|
|
|
|
ndkVersion "21.3.6528147"
|
|
|
|
|
|
|
|
compileSdk versions.compileSdk
|
|
|
|
|
|
|
|
defaultConfig {
|
2022-09-10 12:28:34 +03:00
|
|
|
applicationId "de.spiritcroc.riotx"
|
2022-08-02 18:14:08 +03:00
|
|
|
// Set to API 21: see #405
|
|
|
|
minSdk versions.minSdk
|
|
|
|
targetSdk versions.targetSdk
|
|
|
|
multiDexEnabled true
|
|
|
|
|
|
|
|
renderscriptTargetApi 24
|
|
|
|
renderscriptSupportModeEnabled true
|
|
|
|
|
2024-11-29 13:53:05 +03:00
|
|
|
versionCode 40101320
|
|
|
|
versionName "1.6.24.sc82"
|
2022-08-02 18:14:08 +03:00
|
|
|
|
|
|
|
// Generate a random app task affinity
|
|
|
|
manifestPlaceholders = [appTaskAffinitySuffix: "H_${gitRevision()}"]
|
|
|
|
|
|
|
|
buildConfigField "String", "GIT_REVISION", "\"${gitRevision()}\""
|
|
|
|
buildConfigField "String", "GIT_REVISION_DATE", "\"${gitRevisionDate()}\""
|
|
|
|
buildConfigField "String", "GIT_BRANCH_NAME", "\"${gitBranchName()}\""
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
|
|
|
// Keep abiFilter for the universalApk
|
|
|
|
ndk {
|
|
|
|
abiFilters "armeabi-v7a", "x86", 'arm64-v8a', 'x86_64'
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ref: https://developer.android.com/studio/build/configure-apk-splits.html
|
|
|
|
splits {
|
|
|
|
// Configures multiple APKs based on ABI.
|
|
|
|
abi {
|
|
|
|
// Enables building multiple APKs per ABI.
|
|
|
|
enable true
|
|
|
|
|
|
|
|
// By default all ABIs are included, so use reset() and include to specify that we only
|
|
|
|
// want APKs for armeabi-v7a, x86, arm64-v8a and x86_64.
|
|
|
|
|
|
|
|
// Resets the list of ABIs that Gradle should create APKs for to none.
|
|
|
|
reset()
|
|
|
|
|
|
|
|
// Specifies a list of ABIs that Gradle should create APKs for.
|
|
|
|
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
|
|
|
|
|
|
|
|
// Generate a universal APK that includes all ABIs, so user who install from CI tool can use this one by default.
|
|
|
|
universalApk true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
applicationVariants.all { variant ->
|
|
|
|
// assign different version code for each output
|
2023-08-06 20:03:37 +03:00
|
|
|
// SC: Compared do upstream, we do not multiply by ten,
|
2023-08-06 19:04:28 +03:00
|
|
|
// compare https://gitlab.com/fdroid/fdroiddata/-/commit/3a615a9b85960cf2a165e78436870290a8f3d9e5#note_1502091143
|
|
|
|
def baseVariantVersion = variant.versionCode
|
2022-08-02 18:14:08 +03:00
|
|
|
variant.outputs.each { output ->
|
|
|
|
def baseAbiVersionCode = project.ext.abiVersionCodes.get(output.getFilter(OutputFile.ABI))
|
|
|
|
// Known limitation: it does not modify the value in the BuildConfig.java generated file
|
|
|
|
// See https://issuetracker.google.com/issues/171133218
|
|
|
|
output.versionCodeOverride = baseVariantVersion + baseAbiVersionCode
|
2022-08-25 12:30:06 +03:00
|
|
|
print "ABI " + output.getFilter(OutputFile.ABI) + " \t-> VersionCode = " + output.versionCode + "\n"
|
2022-08-03 16:56:58 +03:00
|
|
|
output.outputFileName = output.outputFileName.replace("vector-app", "vector")
|
2022-08-02 18:14:08 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// The following argument makes the Android Test Orchestrator run its
|
|
|
|
// "pm clear" command after each test invocation. This command ensures
|
|
|
|
// that the app's state is completely cleared between tests.
|
|
|
|
testInstrumentationRunnerArguments clearPackageData: 'true'
|
|
|
|
}
|
|
|
|
|
|
|
|
testOptions {
|
|
|
|
// Disables animations during instrumented tests you run from the command line…
|
|
|
|
// This property does not affect tests that you run using Android Studio.”
|
|
|
|
animationsDisabled = true
|
|
|
|
|
|
|
|
// Comment to run on Android 12
|
|
|
|
// execution 'ANDROIDX_TEST_ORCHESTRATOR'
|
|
|
|
}
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
debug {
|
|
|
|
keyAlias 'androiddebugkey'
|
|
|
|
keyPassword 'android'
|
|
|
|
storeFile file('./signature/debug.keystore')
|
|
|
|
storePassword 'android'
|
|
|
|
}
|
|
|
|
nightly {
|
|
|
|
keyAlias System.env.ELEMENT_ANDROID_NIGHTLY_KEYID ?: project.property("signing.element.nightly.keyId")
|
|
|
|
keyPassword System.env.ELEMENT_ANDROID_NIGHTLY_KEYPASSWORD ?: project.property("signing.element.nightly.keyPassword")
|
|
|
|
storeFile file('./signature/nightly.keystore')
|
|
|
|
storePassword System.env.ELEMENT_ANDROID_NIGHTLY_STOREPASSWORD ?: project.property("signing.element.nightly.storePassword")
|
|
|
|
}
|
|
|
|
release {
|
|
|
|
keyAlias project.property("signing.element.keyId")
|
|
|
|
keyPassword project.property("signing.element.keyPassword")
|
|
|
|
storeFile file(project.property("signing.element.storePath"))
|
|
|
|
storePassword project.property("signing.element.storePassword")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
applicationIdSuffix ".debug"
|
|
|
|
signingConfig signingConfigs.debug
|
2022-09-10 12:28:34 +03:00
|
|
|
resValue "string", "app_name", "SchildiChat dbg"
|
2022-08-02 18:14:08 +03:00
|
|
|
|
|
|
|
if (project.hasProperty("coverage")) {
|
2024-07-15 19:12:08 +03:00
|
|
|
testCoverageEnabled = project.coverage == "true"
|
2022-08-02 18:14:08 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
release {
|
2022-09-10 12:28:34 +03:00
|
|
|
resValue "string", "app_name", "SchildiChat"
|
2022-08-02 18:14:08 +03:00
|
|
|
postprocessing {
|
2023-05-09 15:29:58 +03:00
|
|
|
// FIXME Set to true.
|
|
|
|
removeUnusedCode false
|
2022-08-02 18:14:08 +03:00
|
|
|
removeUnusedResources true
|
|
|
|
// We do not activate obfuscation as it makes it hard then to read crash reports, and it's a bit useless on an open source project :)
|
|
|
|
obfuscate false
|
|
|
|
optimizeCode true
|
|
|
|
proguardFiles 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
// signingConfig signingConfigs.release
|
|
|
|
}
|
|
|
|
|
|
|
|
nightly {
|
|
|
|
initWith release
|
|
|
|
applicationIdSuffix ".nightly"
|
|
|
|
versionNameSuffix "-nightly"
|
2022-08-08 15:00:42 +03:00
|
|
|
// Just override the background color of the launcher icon for the nightly build.
|
2022-08-02 18:14:08 +03:00
|
|
|
// We need to copy paste this block, this is not done automatically by `initWith release`
|
|
|
|
postprocessing {
|
2023-05-09 15:29:58 +03:00
|
|
|
// FIXME Set to true.
|
|
|
|
removeUnusedCode false
|
2022-08-02 18:14:08 +03:00
|
|
|
removeUnusedResources true
|
|
|
|
// We do not activate obfuscation as it makes it hard then to read crash reports, and it's a bit useless on an open source project :)
|
|
|
|
obfuscate false
|
|
|
|
optimizeCode true
|
|
|
|
proguardFiles 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
matchingFallbacks = ['release']
|
|
|
|
signingConfig signingConfigs.nightly
|
|
|
|
firebaseAppDistribution {
|
|
|
|
artifactType = "APK"
|
|
|
|
// We upload the universal APK to fix this error:
|
|
|
|
// "App Distribution found more than 1 output file for this variant.
|
|
|
|
// Please contact firebase-support@google.com for help using APK splits with App Distribution."
|
2022-12-02 14:40:48 +03:00
|
|
|
artifactPath = "$rootDir/${getNightlyUniversalApkPath()}"
|
2022-08-02 18:14:08 +03:00
|
|
|
// This file will be generated by the GitHub action
|
|
|
|
releaseNotesFile = "CHANGES_NIGHTLY.md"
|
|
|
|
groups = "external-testers"
|
|
|
|
// This should not be required, but if I do not add the appId, I get this error:
|
|
|
|
// "App Distribution halted because it had a problem uploading the APK: [404] Requested entity was not found."
|
2022-12-02 14:40:48 +03:00
|
|
|
appId = "${getFirebaseAppId()}"
|
2022-08-02 18:14:08 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-12 18:58:27 +03:00
|
|
|
sourceSets {
|
|
|
|
nightly {
|
|
|
|
java.srcDirs += "src/release/java"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-07 16:13:56 +03:00
|
|
|
flavorDimensions = ["store"]
|
2022-08-02 18:14:08 +03:00
|
|
|
|
|
|
|
productFlavors {
|
|
|
|
gplay {
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|
|
|
|
afterEvaluate {
|
|
|
|
tasks.matching { it.name.contains("GoogleServices") && !it.name.contains("Gplay") }*.enabled = false
|
|
|
|
}
|
|
|
|
|
|
|
|
dimension "store"
|
2024-11-29 13:53:05 +03:00
|
|
|
versionName "1.6.24.sc82"
|
2022-08-02 18:14:08 +03:00
|
|
|
buildConfigField "String", "SHORT_FLAVOR_DESCRIPTION", "\"G\""
|
|
|
|
buildConfigField "String", "FLAVOR_DESCRIPTION", "\"GooglePlay\""
|
|
|
|
}
|
|
|
|
|
|
|
|
fdroid {
|
|
|
|
dimension "store"
|
2024-11-29 13:53:05 +03:00
|
|
|
versionName "1.6.24.sc82"
|
2022-08-02 18:14:08 +03:00
|
|
|
buildConfigField "String", "SHORT_FLAVOR_DESCRIPTION", "\"F\""
|
|
|
|
buildConfigField "String", "FLAVOR_DESCRIPTION", "\"FDroid\""
|
2022-10-08 12:25:40 +03:00
|
|
|
isDefault = true
|
2022-08-02 18:14:08 +03:00
|
|
|
}
|
2022-10-07 15:34:36 +03:00
|
|
|
|
2022-08-02 18:14:08 +03:00
|
|
|
}
|
|
|
|
|
2022-12-02 14:40:48 +03:00
|
|
|
variantFilter { variant ->
|
|
|
|
def names = variant.flavors*.name
|
|
|
|
def buildType = variant.buildType.name
|
|
|
|
// There is no nightly for fdroid
|
|
|
|
if (names.contains("fdroid") && buildType == "nightly") {
|
|
|
|
// Gradle ignores any variants that satisfy the conditions above.
|
|
|
|
setIgnore(true)
|
|
|
|
}
|
2022-08-02 18:14:08 +03:00
|
|
|
}
|
|
|
|
|
2024-07-15 19:12:08 +03:00
|
|
|
lint {
|
2022-08-03 18:41:06 +03:00
|
|
|
lintConfig file("../tools/lint/lint.xml")
|
2022-08-02 18:14:08 +03:00
|
|
|
|
|
|
|
checkDependencies true
|
|
|
|
abortOnError true
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility versions.sourceCompat
|
|
|
|
targetCompatibility versions.targetCompat
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
2024-07-15 19:12:08 +03:00
|
|
|
jvmTarget = versions.jvmTarget
|
2022-08-02 18:14:08 +03:00
|
|
|
freeCompilerArgs += [
|
|
|
|
"-opt-in=kotlin.RequiresOptIn",
|
|
|
|
// Fixes false positive "This is an internal Mavericks API. It is not intended for external use."
|
|
|
|
// of MvRx `by viewModel()` calls. Maybe due to the inlining of code... This is a temporary fix...
|
|
|
|
"-opt-in=com.airbnb.mvrx.InternalMavericksApi",
|
|
|
|
// Opt in for kotlinx.coroutines.FlowPreview too
|
|
|
|
"-opt-in=kotlinx.coroutines.FlowPreview",
|
|
|
|
// Opt in for kotlinx.coroutines.ExperimentalCoroutinesApi too
|
|
|
|
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
|
|
|
]
|
|
|
|
}
|
2022-08-09 16:33:02 +03:00
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
viewBinding true
|
2024-07-15 19:12:08 +03:00
|
|
|
buildConfig true
|
2022-08-09 16:33:02 +03:00
|
|
|
}
|
2024-07-16 12:06:44 +03:00
|
|
|
|
|
|
|
packaging {
|
|
|
|
pickFirsts.add("META-INF/LICENSE.md")
|
|
|
|
pickFirsts.add("META-INF/LICENSE-notice.md")
|
|
|
|
pickFirsts.add("MANIFEST.MF")
|
2022-08-09 16:33:02 +03:00
|
|
|
}
|
2022-08-02 18:14:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation project(':vector')
|
|
|
|
implementation project(':vector-config')
|
2023-01-31 18:44:07 +03:00
|
|
|
implementation project(':library:core-utils')
|
2024-07-15 19:12:08 +03:00
|
|
|
implementation project(':library:ui-strings')
|
2023-06-23 19:15:22 +03:00
|
|
|
debugImplementation project(':library:external:span')
|
2022-08-09 16:55:53 +03:00
|
|
|
debugImplementation project(':library:ui-styles')
|
2022-08-02 18:14:08 +03:00
|
|
|
implementation libs.dagger.hilt
|
|
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
2022-10-06 02:14:09 +03:00
|
|
|
implementation "androidx.sharetarget:sharetarget:1.2.0"
|
2022-08-03 16:56:46 +03:00
|
|
|
|
2022-08-09 16:45:40 +03:00
|
|
|
// Flipper, debug builds only
|
|
|
|
debugImplementation(libs.flipper.flipper) {
|
|
|
|
exclude group: 'com.facebook.fbjni', module: 'fbjni'
|
|
|
|
}
|
|
|
|
debugImplementation(libs.flipper.flipperNetworkPlugin) {
|
|
|
|
exclude group: 'com.facebook.fbjni', module: 'fbjni'
|
|
|
|
}
|
2022-12-02 02:02:57 +03:00
|
|
|
debugImplementation 'com.facebook.soloader:soloader:0.10.5'
|
2024-07-19 13:35:47 +03:00
|
|
|
debugImplementation "com.kgurgul.flipper:flipper-realm-android:2.3.0"
|
2022-08-09 16:45:40 +03:00
|
|
|
|
2024-07-15 19:12:08 +03:00
|
|
|
gplayImplementation "com.google.android.gms:play-services-location:21.3.0"
|
2022-08-09 17:00:46 +03:00
|
|
|
// UnifiedPush gplay flavor only
|
2023-01-04 17:54:23 +03:00
|
|
|
gplayImplementation platform(libs.google.firebaseBom)
|
|
|
|
gplayImplementation(libs.google.messaging) {
|
2022-08-09 17:00:46 +03:00
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-core'
|
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-analytics'
|
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-measurement-connector'
|
|
|
|
}
|
|
|
|
|
|
|
|
// Nightly
|
|
|
|
// API-only library
|
2022-09-23 16:34:00 +03:00
|
|
|
//gplayImplementation libs.google.appdistributionApi
|
2022-08-09 17:00:46 +03:00
|
|
|
// Full SDK implementation
|
2022-12-15 12:49:34 +03:00
|
|
|
//nightlyImplementation libs.google.appdistribution
|
2022-08-09 17:00:46 +03:00
|
|
|
|
|
|
|
// OSS License, gplay flavor only
|
2024-07-15 19:12:08 +03:00
|
|
|
gplayImplementation 'com.google.android.gms:play-services-oss-licenses:17.1.0'
|
2022-08-02 18:14:08 +03:00
|
|
|
kapt libs.dagger.hiltCompiler
|
2022-10-03 17:30:44 +03:00
|
|
|
ksp libs.airbnb.epoxyProcessor
|
2022-08-10 19:40:04 +03:00
|
|
|
|
|
|
|
androidTestImplementation libs.androidx.testCore
|
|
|
|
androidTestImplementation libs.androidx.testRunner
|
|
|
|
androidTestImplementation libs.androidx.testRules
|
|
|
|
androidTestImplementation libs.androidx.junit
|
|
|
|
androidTestImplementation libs.androidx.espressoCore
|
|
|
|
androidTestImplementation libs.androidx.espressoContrib
|
|
|
|
androidTestImplementation libs.androidx.espressoIntents
|
|
|
|
androidTestImplementation libs.tests.kluent
|
|
|
|
androidTestImplementation libs.androidx.coreTesting
|
|
|
|
androidTestImplementation(libs.jetbrains.coroutinesTest) {
|
|
|
|
exclude group: "org.jetbrains.kotlinx", module: "kotlinx-coroutines-debug"
|
|
|
|
}
|
|
|
|
// Plant Timber tree for test
|
|
|
|
androidTestImplementation libs.tests.timberJunitRule
|
|
|
|
// "The one who serves a great Espresso"
|
2022-11-16 02:03:53 +03:00
|
|
|
androidTestImplementation('com.adevinta.android:barista:4.3.0') {
|
2022-08-10 19:40:04 +03:00
|
|
|
exclude group: 'org.jetbrains.kotlin'
|
|
|
|
}
|
|
|
|
androidTestImplementation libs.mockk.mockkAndroid
|
|
|
|
androidTestUtil libs.androidx.orchestrator
|
|
|
|
androidTestImplementation libs.androidx.fragmentTesting
|
2023-05-05 12:09:58 +03:00
|
|
|
androidTestImplementation "org.jetbrains.kotlin:kotlin-reflect:1.8.21"
|
2023-01-11 14:03:41 +03:00
|
|
|
debugImplementation libs.androidx.fragmentTestingManifest
|
2022-12-05 12:20:02 +03:00
|
|
|
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.10'
|
2022-08-02 18:14:08 +03:00
|
|
|
}
|