Skip to content

Commit

Permalink
Move local performance task to be registered on app module, add some …
Browse files Browse the repository at this point in the history
…debug logging (#76)
  • Loading branch information
rbro112 authored Oct 5, 2023
1 parent 941b9ab commit 1cdb9a0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class EmergePlugin : Plugin<Project> {
val rootProject = appProject.rootProject
val perfProjectPath = emergeExtension.perfOptions.projectPath
val performanceProject = rootProject.subprojects.find { subProject ->
appProject.logger.debug(
"Checking subproject ${subProject.path} from rootProject ${rootProject.path}, resolving perfProjectPath: ${perfProjectPath.orNull}"
)
rootProject.absoluteProjectPath(subProject.path) == perfProjectPath.orNull
}
performanceProject?.let { perfProject ->
Expand Down Expand Up @@ -233,7 +236,7 @@ class EmergePlugin : Plugin<Project> {
val perfVariantName = performanceVariant.name.capitalize()

val taskName = "emergeLocal${perfVariantName}Test"
val task = performanceProject.tasks.register(taskName, LocalPerfTest::class.java) {
val task = appProject.tasks.register(taskName, LocalPerfTest::class.java) {
it.group = EMERGE_TASK_GROUP
it.description = "Installs and runs tests for ${performanceVariant.name} on" +
" connected devices. For testing and debugging."
Expand Down

0 comments on commit 1cdb9a0

Please sign in to comment.