Skip to content

Commit

Permalink
Use mockImplementation instead of mockCompile
Browse files Browse the repository at this point in the history
  • Loading branch information
chiuki committed Nov 29, 2017
1 parent ecb66fb commit 1bccc68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zxing-mock/app/build.gradle
Expand Up @@ -33,7 +33,7 @@ android {
// Remove mockRelease as it's not needed.
android.variantFilter { variant ->
if (variant.buildType.name == 'release' &&
variant.getFlavors().get(0).name == 'mock') {
variant.getFlavors().get(0).name == 'mock') {
variant.setIgnore(true)
}
}
Expand All @@ -48,7 +48,7 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "com.android.support:appcompat-v7:${rootProject.supportLibraryVersion}"

mockCompile "org.mockito:mockito-android:${rootProject.ext.mockitoVersion}"
mockImplementation "org.mockito:mockito-android:${rootProject.ext.mockitoVersion}"

androidTestImplementation "com.android.support.test.espresso:espresso-core:${rootProject.espressoVersion}"
}
Expand Down

0 comments on commit 1bccc68

Please sign in to comment.