Skip to content

Instantly share code, notes, and snippets.

@wongk
Created June 15, 2020 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wongk/1b49733f12e9d507264b92345467d937 to your computer and use it in GitHub Desktop.
Save wongk/1b49733f12e9d507264b92345467d937 to your computer and use it in GitHub Desktop.
Blog - Wire mock with HTTPS - test dependencies
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