Skip to content

Instantly share code, notes, and snippets.

@cmathew
Created September 12, 2023 17:19
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 cmathew/d998b53436662dab008e64e99fdc70b5 to your computer and use it in GitHub Desktop.
Save cmathew/d998b53436662dab008e64e99fdc70b5 to your computer and use it in GitHub Desktop.
Example of providing binary artifacts to an Android Lint unit test
// Reference JAR kept in test-resources folder
val jodaTimeArtifact = TestFiles.bytes("libs/joda-time-2.10.14.jar", javaClass.getResourceAsStream("/joda-time-2.10.14.jar").readBytes())
// Use Joda-Time binary
lint().files(jodaTimeArtifact, ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment