Skip to content

Commit

Permalink
Fix inheritance hierarchy of ComposeExtension (#319)
Browse files Browse the repository at this point in the history
This avoids a false-positive warning regarding RegisterExtension
  • Loading branch information
mannodermaus authored Apr 3, 2024
1 parent c648119 commit e7b6962
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions instrumentation/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Change Log

## Unreleased

- Fix inheritance hierarchy of `ComposeExtension` to avoid false-positive warning regarding `@RegisterExtension` (#318)

## 1.4.0 (2023-11-05)

- Update formatting of instrumentation test names to prevent breaking generation of log files in newer versions of AGP (#263)
Expand Down
2 changes: 1 addition & 1 deletion instrumentation/compose/api/compose.api
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public abstract interface class de/mannodermaus/junit5/compose/ComposeContext :
public abstract fun waitUntil (JLkotlin/jvm/functions/Function0;)V
}

public abstract interface class de/mannodermaus/junit5/compose/ComposeExtension {
public abstract interface class de/mannodermaus/junit5/compose/ComposeExtension : org/junit/jupiter/api/extension/Extension {
public abstract fun runComposeTest (Lkotlin/jvm/functions/Function1;)V
public abstract fun use (Lkotlin/jvm/functions/Function1;)V
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import org.junit.jupiter.api.extension.Extension
* in a field within the test class using any of the [createComposeExtension] or
* [createAndroidComposeExtension] factory methods.
*/
public interface ComposeExtension {
public interface ComposeExtension : Extension {
/**
* Set up and drive the execution of a Compose test within the provided [block].
* Depending on the time this is called, it will either queue up a preparatory action for the test
Expand Down

0 comments on commit e7b6962

Please sign in to comment.