Closed jrodbx closed 3 years ago
@xiphirx has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@xiphirx merged this pull request in facebook/screenshot-tests-for-android@010f36e6e51c5555cbfcd45067b8a5c79a4cb68d.
@jrodbx @xiphirx If I see correctly, this PR broke master:
There are couple of issues here:
configure
accepts Action<T>
so proper lambda should read it.init(...)
configure
returns void
, so to return whatever register
gives us it'd have to be something like tasks.register(...).apply { configure { it.init(...) } }
createTask
returns T : ScreenshotTask
anyway, so even if lazy API is used to register the task, to return an instance of that task it would have to be immediately realized anywayI fixed this in https://github.com/facebook/screenshot-tests-for-android/pull/282
All great catches, thanks! I had relied on (and am now surprised by) the passing CI build.
Closes #232