Add ApplicationPreload mechanism to collectScreenshots
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import Orx_collect_screenshots_gradle.ScreenshotsHelper.collectScreenshots
|
||||
import ScreenshotsHelper.collectScreenshots
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
kotlin("plugin.serialization")
|
||||
id("orx.collect-screenshots")
|
||||
}
|
||||
|
||||
val kotlinxSerializationVersion: String by rootProject.extra
|
||||
|
||||
@@ -23,13 +23,6 @@ fun main() {
|
||||
drawer.lineSegment(0.0, 40.0, 400.0, 40.0)
|
||||
drawer.lineSegment(0.0, 20.0, 400.0, 20.0)
|
||||
}
|
||||
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
|
||||
extend {
|
||||
drawer.stroke = ColorRGBa.WHITE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user