Skip to content

Commit

Permalink
Add some additional logging (#80)
Browse files Browse the repository at this point in the history
* Add some additional logging

* More logging
  • Loading branch information
rbro112 authored Oct 9, 2023
1 parent 7af2ecd commit 4bd8add
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ class EmergePlugin : Plugin<Project> {
"Checking subproject ${subProject.path} from rootProject ${rootProject.path}, resolving perfProjectPath: ${perfProjectPath.orNull}"
)
appProject.logger.debug(
"Checking absoluteProjectPath ${rootProject.absoluteProjectPath(subProject.path)} from rootProject ${rootProject.path}, resolving perfProjectPath: ${perfProjectPath.orNull}"
"Checking absoluteProjectPath ${
rootProject.absoluteProjectPath(
subProject.path
)
} from rootProject ${rootProject.path}, resolving perfProjectPath: ${perfProjectPath.orNull}"
)
rootProject.absoluteProjectPath(subProject.path) == perfProjectPath.orNull
}
Expand Down Expand Up @@ -118,14 +122,26 @@ class EmergePlugin : Plugin<Project> {
) {
performanceProject.pluginManager.apply(ANDROID_TEST_PLUGIN_ID)

appProject.logger.debug(
"Configuring performance project ${performanceProject.path} from appProject ${appProject.path}"
)
configurePerformanceProject(performanceProject, appProject)
appProject.logger.debug(
"Configuring performance project ${performanceProject.path} from appProject ${appProject.path} complete"
)

performanceProject.pluginManager.withPlugin(ANDROID_TEST_PLUGIN_ID) { _ ->
appProject.logger.debug(
"Registering performance project tasks for ${performanceProject.path} from appProject ${appProject.path} with android test plugin"
)
val androidTestComponents = performanceProject.extensions.getByType(
TestAndroidComponentsExtension::class.java
)

androidTestComponents.onVariants { perfVariant ->
appProject.logger.debug(
"Registering performance project tasks for ${performanceProject.path} from appProject ${appProject.path} with android test plugin for variant ${perfVariant.name}"
)
registerPerformanceTasks(
appProject,
performanceProject,
Expand Down

0 comments on commit 4bd8add

Please sign in to comment.