pedrovgs / Shot

Screenshot testing library for Android
Apache License 2.0
1.19k stars 116 forks source link

Can't take a dependency on `ScreenshotTest` from the "main" sourceSet #290

Closed vinaygaba closed 2 years ago

vinaygaba commented 2 years ago

I'm thinking of adding an example artifact that integrates with Shot in one of my libraries (https://github.com/airbnb/Showkase). In order to create this library artifact, I need to import ScreenshotTest in the main sourceSet. However, it seems like the plugin only allows me to do that in the androidTest sourceSet. Wondering if there is a way around this limitation?

MyDogTom commented 2 years ago

@vinaygaba Have you tried to add dependency explicitly via implementation("com.karumi:shot:XYZ")?

vinaygaba commented 2 years ago

I actually did and that doesn't work and now I know why 😅 The correct dependency was com.karumi:shot-android instead