Skip to content

Commit

Permalink
Additional plugin logging (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbro112 authored Oct 20, 2023
1 parent 70da713 commit 8a7cf54
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ class EmergePlugin : Plugin<Project> {
// No perf project, but user has set the perfOptions.projectPath property
// so register the generate task only
if (perfProjectPath.isPresent) {
appProject.logger.debug(
"No performance project found for path ${perfProjectPath.get()}, " +
"registering generate task only"
)
registerGeneratePerfProjectTask(project, perfProjectPath)
}
}
Expand Down Expand Up @@ -441,6 +445,10 @@ class EmergePlugin : Plugin<Project> {
}

appProject.extensions.getByType(KotlinAndroidProjectExtension::class.java).apply {
val androidTestSourceSet = sourceSets.getByName("androidTest")
appProject.logger.info(
"Configuring ${project.name} for Emerge snapshot testing, adding $emergeSrcDir to sourceSet ${androidTestSourceSet.name}"
)
sourceSets.getByName("androidTest").kotlin.srcDir(emergeSrcDir)
}
}
Expand Down

0 comments on commit 8a7cf54

Please sign in to comment.