summaryrefslogtreecommitdiffhomepage
path: root/android/app
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2022-02-17 09:56:21 +0100
committerAlbin <albin@mullvad.net>2022-02-17 09:56:21 +0100
commit5dbafe4d43ae91db37196277822ee2c3e913e087 (patch)
treeca31be7f13d4169b7d0567edee999c5a94d59330 /android/app
parent96cb2008d9a79a6923eee34537dd264a18c79512 (diff)
parent4a09f51122b7b9531df8e9aae424fa479457de6a (diff)
downloadmullvadvpn-5dbafe4d43ae91db37196277822ee2c3e913e087.tar.xz
mullvadvpn-5dbafe4d43ae91db37196277822ee2c3e913e087.zip
Merge branch 'add-leak-canary-build-type'
Diffstat (limited to 'android/app')
-rw-r--r--android/app/build.gradle.kts11
1 files changed, 9 insertions, 2 deletions
diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts
index c3dd40d520..6fda8a8fad 100644
--- a/android/app/build.gradle.kts
+++ b/android/app/build.gradle.kts
@@ -57,6 +57,10 @@ android {
isMinifyEnabled = false
signingConfig = null
}
+
+ create("leakCanary") {
+ initWith(buildTypes.getByName("debug"))
+ }
}
sourceSets {
@@ -153,14 +157,17 @@ dependencies {
implementation(Dependencies.Kotlin.stdlib)
implementation(Dependencies.KotlinX.coroutinesAndroid)
- /* Test dependencies */
+ // Leak canary
+ leakCanaryImplementation(Dependencies.leakCanary)
+
+ // Test dependencies
testImplementation(Dependencies.Koin.test)
testImplementation(Dependencies.Kotlin.test)
testImplementation(Dependencies.KotlinX.coroutinesTest)
testImplementation(Dependencies.MockK.core)
testImplementation(Dependencies.junit)
- /* UI test dependencies */
+ // UI test dependencies
debugImplementation(Dependencies.AndroidX.fragmentTestning)
androidTestImplementation(Dependencies.AndroidX.espressoContrib)
androidTestImplementation(Dependencies.AndroidX.espressoCore)