Skip to content

Commit 33b21f2

Browse files
committed
Bring back unmockplugin
1 parent f64b31a commit 33b21f2

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import java.io.FileInputStream
33

44
plugins {
55
alias(libs.plugins.android.application)
6+
alias(libs.plugins.unmock)
67
}
78

89
// Place actual signing configuration in "keystore.properties"

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
plugins {
22
alias(libs.plugins.android.application) apply false
3+
alias(libs.plugins.unmock) apply false
34
}

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ junitVersion = "1.3.0"
2020
androidTest = "1.7.0"
2121
espressoCore = "3.7.0"
2222
agp = "8.13.0"
23+
unmock = "0.9.0"
2324

2425
[libraries]
2526
otto = { group = "com.squareup", name = "otto", version.ref = "otto" }
@@ -48,3 +49,4 @@ androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-co
4849

4950
[plugins]
5051
android-application = { id = "com.android.application", version.ref = "agp" }
52+
unmock = {id = "de.mobilej.unmock", version.ref= "unmock"}

settings.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
pluginManagement {
2+
// Workaround for unmockplugin not being on gradle plugin portal
3+
resolutionStrategy {
4+
eachPlugin {
5+
if (requested.id.id == "de.mobilej.unmock") {
6+
useModule("com.github.bjoernq:unmockplugin:${requested.version}")
7+
}
8+
}
9+
}
10+
211
repositories {
312

413
google {

0 commit comments

Comments
 (0)