chore(build): add mock shared preference dependency

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
SphericalKat 2021-05-17 14:19:02 +05:30
parent 285bf9d929
commit f377510afb
No known key found for this signature in database
GPG key ID: 02A1D73C0EE5E788
3 changed files with 3 additions and 0 deletions

View file

@ -106,5 +106,6 @@ dependencies {
androidTestImplementation(libs.bundles.testDependencies)
androidTestImplementation(libs.bundles.androidTestDependencies)
testImplementation(libs.testing.robolectric)
testImplementation(libs.testing.sharedPrefsMock)
testImplementation(libs.bundles.testDependencies)
}

View file

@ -45,6 +45,7 @@ internal fun Project.configureForAllProjects() {
content {
includeModule("com.github.haroldadmin", "WhatTheStack")
includeModule("com.github.open-keychain.open-keychain", "sshauthentication-api")
includeModule("com.github.IvanShafran", "shared-preferences-mock")
}
}
}

View file

@ -76,6 +76,7 @@ thirdparty-nonfree-googlePlayAuthApiPhone = "com.google.android.gms:play-service
testing-junit = "junit:junit:4.13.2"
testing-kotlintest-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }
testing-robolectric = "org.robolectric:robolectric:4.6-alpha-1"
testing-sharedPrefsMock = "com.github.IvanShafran:shared-preferences-mock:1.0"
androidx-testing-rules = { module = "androidx.test:rules", version.ref="androidx_test" }
androidx-testing-runner = { module = "androidx.test:runner", version.ref="androidx_test" }
kotlin-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }