Skip to content

Commit

Permalink
Use @SdkSuppress instead of @RequiresApi in test
Browse files Browse the repository at this point in the history
  • Loading branch information
arriolac committed Mar 6, 2024
1 parent 1eaf824 commit 2b02404
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import androidx.annotation.RequiresApi
import androidx.compose.ui.graphics.asAndroidBitmap
import androidx.compose.ui.test.SemanticsNodeInteraction
import androidx.compose.ui.test.captureToImage
import androidx.test.filters.SdkSuppress
import androidx.test.platform.app.InstrumentationRegistry
import java.io.FileOutputStream

Expand All @@ -35,7 +36,7 @@ import java.io.FileOutputStream
*
* Screenshots are saved on device in `/data/data/{package}/files`.
*/
@RequiresApi(Build.VERSION_CODES.O)
@SdkSuppress(minSdkVersion = Build.VERSION_CODES.O)
fun assertScreenshotMatchesGolden(
goldenName: String,
node: SemanticsNodeInteraction
Expand Down

0 comments on commit 2b02404

Please sign in to comment.