Created
June 15, 2020 17:13
-
-
Save wongk/1b49733f12e9d507264b92345467d937 to your computer and use it in GitHub Desktop.
Blog - Wire mock with HTTPS - test dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
androidTestImplementation 'androidx.test:core:1.2.0' | |
androidTestImplementation 'androidx.test.ext:junit:1.1.1' | |
androidTestImplementation 'androidx.test:runner:1.2.0' | |
androidTestImplementation 'androidx.multidex:multidex:2.0.1' | |
// https://handstandsam.com/2016/01/30/running-wiremock-on-android/ | |
androidTestImplementation('com.github.tomakehurst:wiremock:2.26.3') { | |
// Allows us to use the Android version of Apache httpclient instead | |
exclude group: 'org.apache.httpcomponents', module: 'httpclient' | |
// Resolves the Duplicate Class Exception | |
// duplicate entry: org/objectweb/asm/AnnotationVisitor.class | |
exclude group: 'asm', module: 'asm' | |
// Fixes Warning conflict with Android's version of org.json | |
// org.json:json:20090211 is ignored for debugAndroidTest as it may be | |
// conflicting with the internal version provided by Android. | |
exclude group: 'org.json', module: 'json' | |
} | |
androidTestImplementation 'org.apache.httpcomponents:httpclient-android:4.3.5' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment