Skip to content

Commit

Permalink
Try out Robolectric hardware rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbanes committed Apr 3, 2024
1 parent 7a7c105 commit 58a0b55
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 26 deletions.
4 changes: 2 additions & 2 deletions haze/screenshots/android/HazeScreenshotTest.creditCard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import com.github.takahirom.roborazzi.RobolectricDeviceQualifiers
import com.github.takahirom.roborazzi.RoborazziRule
import com.github.takahirom.roborazzi.captureRoboImage
import com.github.takahirom.roborazzi.roboOutputName
import org.junit.Before
import org.junit.Rule
import org.junit.runner.RunWith
import org.robolectric.annotation.Config
Expand All @@ -37,6 +38,12 @@ actual abstract class ScreenshotTest {
roborazziOptions = HazeRoborazziDefaults.roborazziOptions,
),
)

@Before
fun setup() {
System.setProperty("robolectric.logging.enabled", "true")
System.setProperty("robolectric.screenshot.hwrdr.native", "true")
}
}

actual val HazeRoborazziDefaults.outputDirectoryName: String get() = "android"
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencyResolutionManagement {
google()
maven("https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental")
mavenLocal()
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
}

Expand Down

0 comments on commit 58a0b55

Please sign in to comment.