Skip to content

Commit

Permalink
Removed the dependency on the order of applying of the plugin
Browse files Browse the repository at this point in the history
Now the search for build variants takes place in the `afterEvaluate` action, which is added when `finalizeDsl` is called - thus the Kover code is guaranteed to be executed after creating variants.

Additional changes:
* added DSL accessors for Kover Default report tasks
* added descriptions for Kover report tasks
* added functions for getting Kover Android report task names

Fixes #362
Fixes #394
Fixes #400
  • Loading branch information
shanshin committed Jun 9, 2023
1 parent 9e0779c commit f5a3ae1
Show file tree
Hide file tree
Showing 124 changed files with 2,295 additions and 1,662 deletions.
3 changes: 3 additions & 0 deletions kover-gradle-plugin/api/kover-gradle-plugin.api
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ public final class kotlinx/kover/gradle/plugin/dsl/KoverNames {
public static final field INSTANCE Lkotlinx/kover/gradle/plugin/dsl/KoverNames;
public static final field PROJECT_EXTENSION_NAME Ljava/lang/String;
public static final field REPORT_EXTENSION_NAME Ljava/lang/String;
public final fun androidHtmlReport (Ljava/lang/String;)Ljava/lang/String;
public final fun androidVerifyReport (Ljava/lang/String;)Ljava/lang/String;
public final fun androidXmlReport (Ljava/lang/String;)Ljava/lang/String;
}

public abstract interface class kotlinx/kover/gradle/plugin/dsl/KoverProjectExtension {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ koverReport {
mergeWith("app1AppDebug")
}

androidReports("release") {
// filters for all report types only of 'release' build type
androidReports("app1AppRelease") {
// filters for all report types only of 'app1AppRelease' build variant
filters {
excludes {
classes(
Expand Down
185 changes: 0 additions & 185 deletions kover-gradle-plugin/examples/android/minimal_groovy/gradlew

This file was deleted.

89 changes: 0 additions & 89 deletions kover-gradle-plugin/examples/android/minimal_groovy/gradlew.bat

This file was deleted.

0 comments on commit f5a3ae1

Please sign in to comment.