Skip to content

About

💡 Android Lab

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Android Lab

This is where I play around with the latest Android stuff

Gradle module execution order

Screenshot 2022-11-16 at 10 45 15

Running

You need to create a local.properties file with the following keys:

You also need to add a google-services.json file with support for Firebase AI.

Screenshot testing

Screenshot tests use Compose Preview Screenshot Testing with AGP test suites.

Generate or update baseline images

Render composables and record golden reference images:

./gradlew updateScreenshotTestDefaultDebugTestSuite

Or for a specific module:

./gradlew :mobile:common:ui:updateScreenshotTestDefaultDebugTestSuite

Reference images are saved under {module}/src/screenshotTestDefaultDebug/reference/.

Run and verify tests

Compare current previews against reference images:

./gradlew testScreenshotTestDefaultDebugTestSuite

Or for a specific module:

./gradlew :mobile:common:ui:testScreenshotTestDefaultDebugTestSuite

Test reports are generated at {module}/build/reports/tests/{taskName}/index.html.

About

💡 Android Lab

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages