Created
September 12, 2023 17:19
-
-
Save cmathew/d998b53436662dab008e64e99fdc70b5 to your computer and use it in GitHub Desktop.
Example of providing binary artifacts to an Android Lint unit test
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
// 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