Skip to content

Commit

Permalink
Check robolectric.screenshot.hwrdr.native=true with 4.12-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Feb 29, 2024
1 parent 50236c4 commit 5fbad44
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kotlin = "1.8.22"
mavenPublish = "0.25.3"
composeCompiler = "1.4.8"
composeDesktop = "1.4.3"
robolectric = "4.10.3"
robolectric = "4.12-SNAPSHOT"
robolectric-android-all = "Q-robolectric-5415296"

roborazzi-for-replacing-by-include-build = "1.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ abstract class RoborazziPlugin : Plugin<Project> {
test.systemProperties["roborazzi.test.verify"] =
isVerifyRun.get() || isVerifyAndRecordRun.get()
}
test.systemProperties["robolectric.logging.enabled"] = true
test.systemProperties["roborazzi.output.dir"] =
outputDirRelativePathFromProjectProvider.get()
test.systemProperties["roborazzi.result.dir"] =
Expand Down
2 changes: 2 additions & 0 deletions include-build/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pluginManagement {
gradlePluginPortal()
google()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
}
dependencyResolutionManagement {
Expand All @@ -13,6 +14,7 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,18 @@ import java.io.File
@RunWith(AndroidJUnit4::class)
@GraphicsMode(GraphicsMode.Mode.NATIVE)
@Config(
sdk = [30],
sdk = [33],
qualifiers = RobolectricDeviceQualifiers.NexusOne
)
class ManualTest {
@get:Rule
val composeTestRule = createAndroidComposeRule<MainActivity>()

init {
val USE_HARDWARE_RENDERER_NATIVE_ENV = "robolectric.screenshot.hwrdr.native"
System.setProperty(USE_HARDWARE_RENDERER_NATIVE_ENV, "false")
}

@Test
@Config(qualifiers = "+land")
fun captureScreenLevelImageWithEspresso() {
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ pluginManagement {
gradlePluginPortal()
google()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
}
rootProject.name = "roborazzi"
Expand Down

0 comments on commit 5fbad44

Please sign in to comment.