From 37cac872977029b720d51608726c8f877f55a2fa Mon Sep 17 00:00:00 2001 From: takahirom Date: Mon, 20 Mar 2023 19:03:22 +0900 Subject: [PATCH 1/5] Add gradle plugin and verify screenshot --- .idea/gradle.xml | 1 + app/build.gradle | 6 ++ app/src/main/res/values/strings.xml | 2 +- roborazzi-gradle-plugin/.gitignore | 1 + roborazzi-gradle-plugin/build.gradle | 20 ++++ .../takahirom/roborazzi/RoborazziPlugin.kt | 100 ++++++++++++++++++ .../takahirom/roborazzi/RoborazziRule.kt | 11 +- roborazzi-painter/build.gradle | 1 + .../roborazzi/DifferBufferedImage.kt | 16 +++ .../github/takahirom/roborazzi/RoboCanvas.kt | 75 ++++++++++++- .../roborazzi/ExampleInstrumentedTest.kt | 24 ----- .../github/takahirom/roborazzi/Roborazzi.kt | 70 +++++++++++- settings.gradle | 1 + 13 files changed, 295 insertions(+), 33 deletions(-) create mode 100644 roborazzi-gradle-plugin/.gitignore create mode 100644 roborazzi-gradle-plugin/build.gradle create mode 100644 roborazzi-gradle-plugin/src/main/java/io/github/takahirom/roborazzi/RoborazziPlugin.kt create mode 100644 roborazzi-painter/src/main/java/com/github/takahirom/roborazzi/DifferBufferedImage.kt delete mode 100644 roborazzi/src/androidTest/java/com/github/takahirom/roborazzi/ExampleInstrumentedTest.kt diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 3f3f6800a..2b965c785 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -14,6 +14,7 @@