diff --git a/include-build/roborazzi-gradle-plugin/src/main/java/io/github/takahirom/roborazzi/GenerateComposePreviewRobolectricTestsExtension.kt b/include-build/roborazzi-gradle-plugin/src/main/java/io/github/takahirom/roborazzi/GenerateComposePreviewRobolectricTestsExtension.kt index c9644ccc..9f9e5082 100644 --- a/include-build/roborazzi-gradle-plugin/src/main/java/io/github/takahirom/roborazzi/GenerateComposePreviewRobolectricTestsExtension.kt +++ b/include-build/roborazzi-gradle-plugin/src/main/java/io/github/takahirom/roborazzi/GenerateComposePreviewRobolectricTestsExtension.kt @@ -93,8 +93,6 @@ private fun setupGenerateComposePreviewRobolectricTestsTask( robolectricConfig: MapProperty, testTaskProvider: TaskCollection ) { - configureComposePreviewRobolectricTestPackagesIfNeeded(project, extension) - val generateTestsTask = project.tasks.register( "generate${variant.name.capitalize(Locale.ROOT)}ComposePreviewRobolectricTests", GenerateComposePreviewRobolectricTestsTask::class.java @@ -126,26 +124,6 @@ private fun setupGenerateComposePreviewRobolectricTestsTask( } } -private fun configureComposePreviewRobolectricTestPackagesIfNeeded( - project: Project, - extension: GenerateComposePreviewRobolectricTestsExtension, -) { - project.afterEvaluate { - extension.packages.getOrElse(listOf()) - if(extension.enable.get() && extension.packages.get().orEmpty().isNotEmpty()) { - val android = project.extensions.findByType(CommonExtension::class.java) - android?.namespace?.let{ - - project.logger.warn( - "You may have forgotten to set roborazzi.generateComposePreviewRobolectricTests.packages. " + - "Roborazzi automatically set `android.namespace` (\"$it\") as the default value." - ) - extension.packages.set(listOf(it)) - } - } - } -} - abstract class GenerateComposePreviewRobolectricTestsTask : DefaultTask() { @get:OutputDirectory abstract val outputDir: DirectoryProperty