-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from sergio-sastre/release/2.6.0
Prepare CrossLibrary features for 2.6.0
- Loading branch information
Showing
30 changed files
with
207 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...oid-testify/src/main/java/sergio/sastre/uitesting/android_testify/AndroidTestifyConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 28 additions & 23 deletions
51
mapper-paparazzi/src/main/java/sergio/sastre/uitesting/mapper/paparazzi/wrapper/Density.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
package sergio.sastre.uitesting.mapper.paparazzi.wrapper | ||
|
||
enum class Density { | ||
XXXHIGH, | ||
DPI_560, | ||
XXHIGH, | ||
DPI_440, | ||
DPI_420, | ||
DPI_400, | ||
DPI_360, | ||
XHIGH, | ||
DPI_260, | ||
DPI_280, | ||
DPI_300, | ||
DPI_340, | ||
HIGH, | ||
DPI_220, | ||
TV, | ||
DPI_200, | ||
DPI_180, | ||
MEDIUM, | ||
DPI_140, | ||
LOW, | ||
ANYDPI, | ||
NODPI, | ||
interface DpiDensity { | ||
val dpi: Int | ||
class Value(override val dpi: Int) : DpiDensity | ||
} | ||
|
||
enum class Density(override val dpi: Int) : DpiDensity { | ||
XXXHIGH(640), | ||
DPI_560(560), | ||
XXHIGH(480), | ||
DPI_440(440), | ||
DPI_420(420), | ||
DPI_400(400), | ||
DPI_360(360), | ||
XHIGH(480), | ||
DPI_260(260), | ||
DPI_280(280), | ||
DPI_300(300), | ||
DPI_340(340), | ||
HIGH(240), | ||
DPI_220(220), | ||
TV(213), | ||
DPI_200(200), | ||
DPI_180(180), | ||
MEDIUM(160), | ||
DPI_140(140), | ||
LOW(120), | ||
ANYDPI(0xFFFE), | ||
NODPI(0xFFFF) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...r-roborazzi/src/main/java/sergio/sastre/uitesting/mapper/roborazzi/wrapper/AiAssertion.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package sergio.sastre.uitesting.mapper.roborazzi.wrapper | ||
|
||
data class AiAssertion( | ||
val assertionPrompt: String, | ||
val requiredFulfillmentPercent: Int, | ||
val failIfNotFulfilled: Boolean = true | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...roborazzi/src/main/java/sergio/sastre/uitesting/mapper/roborazzi/wrapper/ImageIoFormat.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package sergio.sastre.uitesting.mapper.roborazzi.wrapper | ||
|
||
enum class ImageIoFormat { | ||
LosslessWebPImageIoFormat, | ||
ImageIoFormat | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...orazzi/src/main/java/sergio/sastre/uitesting/mapper/roborazzi/wrapper/RoborazziOptions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
package sergio.sastre.uitesting.mapper.roborazzi.wrapper | ||
|
||
/** | ||
* WARNING: | ||
* @param aiAssertions requires you to add the corresponding Roborazzi module, namely one of these: | ||
* 1. roborazzi-ai-gemini -> testImplementation(io.github.takahirom.roborazzi:roborazzi-ai-gemini) | ||
* 2. roborazzi-ai-openai -> testImplementation(io.github.takahirom.roborazzi:roborazzi-ai-openai) | ||
*/ | ||
data class RoborazziOptions( | ||
val captureType: CaptureType = CaptureType.Screenshot, | ||
val compareOptions: CompareOptions = CompareOptions(), | ||
val recordOptions: RecordOptions = RecordOptions(), | ||
val contextData: Map<String, Any> = emptyMap(), | ||
val aiAssertions: List<AiAssertion> = emptyList() | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 28 additions & 23 deletions
51
...zi/src/main/java/sergio/sastre/uitesting/mapper/roborazzi/wrapper/screen/ScreenDensity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
package sergio.sastre.uitesting.mapper.roborazzi.wrapper.screen | ||
|
||
enum class ScreenDensity(val qualifier: String) { | ||
XXXHDPI("xxxhdpi"), | ||
DPI_560("560dpi"), | ||
XXHDPI("xxhdpi"), | ||
DPI_440("440dpi"), | ||
DPI_420("420dpi"), | ||
DPI_400("400dpi"), | ||
DPI_360("360dpi"), | ||
XHDPI("xhdpi"), | ||
DPI_260("260dpi"), | ||
DPI_280("280dpi"), | ||
DPI_300("300dpi"), | ||
DPI_340("340dpi"), | ||
HDPI("hdpi"), | ||
DPI_220("220dpi"), | ||
TVDPI("tvdpi"), | ||
DPI_200("200dpi"), | ||
DPI_180("180dpi"), | ||
MDPI("mdpi"), | ||
DPI_140("140dpi"), | ||
LDPI("ldpi"), | ||
ANYDPI("anydpi"), | ||
NODPI("nodpi"), | ||
interface DpiDensity { | ||
val dpi: Int | ||
class Value(override val dpi: Int) : DpiDensity | ||
} | ||
|
||
enum class ScreenDensity(val qualifier: String, override val dpi: Int): DpiDensity { | ||
XXXHDPI("xxxhdpi", 640), | ||
DPI_560("560dpi", 560), | ||
XXHDPI("xxhdpi", 480), | ||
DPI_440("440dpi", 440), | ||
DPI_420("420dpi", 420), | ||
DPI_400("400dpi", 400), | ||
DPI_360("360dpi", 360), | ||
XHDPI("xhdpi", 480), | ||
DPI_260("260dpi", 260), | ||
DPI_280("280dpi", 280), | ||
DPI_300("300dpi", 300), | ||
DPI_340("340dpi", 340), | ||
HDPI("hdpi", 240), | ||
DPI_220("220dpi", 220), | ||
TVDPI("tvdpi", 213), | ||
DPI_200("200dpi", 200), | ||
DPI_180("180dpi", 180), | ||
MDPI("mdpi", 160), | ||
DPI_140("140dpi", 140), | ||
LDPI("ldpi", 120), | ||
ANYDPI("anydpi", 0xFFFE), | ||
NODPI("nodpi", 0xFFFF), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.