-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41: Manually fix merge/rebase errors
- Loading branch information
1 parent
8aebf90
commit 7a5671c
Showing
12 changed files
with
63 additions
and
53 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
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 |
---|---|---|
|
@@ -63,6 +63,15 @@ open class ComposableScreenshotRule( | |
activity.disposeComposition() | ||
} | ||
|
||
@Deprecated( | ||
message = "Please use configure()", | ||
replaceWith = ReplaceWith("configure { [email protected] = captureMethod }") | ||
) | ||
override fun setCaptureMethod(captureMethod: CaptureMethod?): ComposableScreenshotRule { | ||
this.captureMethod = configuration.captureMethod ?: ::pixelCopyCapture | ||
return this | ||
} | ||
|
||
/** | ||
* Set a screenshot view provider to capture only the @Composable bounds | ||
*/ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,4 +124,10 @@ interface CompatibilityMethods<TRule : ScreenshotRule<TActivity>, TActivity : Ac | |
replaceWith = ReplaceWith("configure { [email protected] = compareMethod }") | ||
) | ||
fun setCompareMethod(compareMethod: CompareMethod?): TRule | ||
|
||
@Deprecated( | ||
message = "Please use configure()", | ||
replaceWith = ReplaceWith("configure { [email protected] = isRecordMode }") | ||
) | ||
fun setRecordModeEnabled(isRecordMode: Boolean): TRule | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,4 +216,15 @@ internal class ScreenshotRuleCompatibilityMethods<TRule : ScreenshotRule<TActivi | |
} | ||
return rule | ||
} | ||
|
||
@Deprecated( | ||
message = "Please use configure()", | ||
replaceWith = ReplaceWith("configure { [email protected] = isRecordMode }") | ||
) | ||
override fun setRecordModeEnabled(isRecordMode: Boolean): TRule { | ||
rule.configure { | ||
this@configure.isRecordMode = isRecordMode | ||
} | ||
return rule | ||
} | ||
} |
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