From 9bcb6a6b2bd5bdabd32f4a369333b5018e7f0e5e Mon Sep 17 00:00:00 2001 From: Ryan Brooks Date: Mon, 9 Oct 2023 13:50:58 -0700 Subject: [PATCH] More logging --- .../com/emergetools/android/gradle/EmergePlugin.kt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/gradle-plugin/plugin/src/main/kotlin/com/emergetools/android/gradle/EmergePlugin.kt b/gradle-plugin/plugin/src/main/kotlin/com/emergetools/android/gradle/EmergePlugin.kt index fc4e1c48..f8328b9d 100644 --- a/gradle-plugin/plugin/src/main/kotlin/com/emergetools/android/gradle/EmergePlugin.kt +++ b/gradle-plugin/plugin/src/main/kotlin/com/emergetools/android/gradle/EmergePlugin.kt @@ -122,20 +122,26 @@ class EmergePlugin : Plugin { ) { performanceProject.pluginManager.apply(ANDROID_TEST_PLUGIN_ID) - configurePerformanceProject(performanceProject, appProject) - 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( - "Configuring performance project ${performanceProject.path} from appProject ${appProject.path} with android test plugin" + "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,