[x] Run ContributesActivePluginPointCodeGeneratorTest tests
[x] verify build breaks with com.squareup.anvil.compiler.api.AnvilCompilationException: Back-end (JVM) Internal error: com.duckduckgo.feature.toggles.codegen.FooActiveTriggeredMyPlugin plugin name is duplicated, previous found in com.duckduckgo.feature.toggles.api.FooActiveTriggeredMyPlugin message
[x] Uncomment TriggerMyPlugin and comment out FooActiveTriggeredMyPlugin
[x] Run ContributesActivePluginPointCodeGeneratorTest tests
[x] verify build breaks with com.squareup.anvil.compiler.api.AnvilCompilationException: Back-end (JVM) Internal error: com.duckduckgo.feature.toggles.codegen.MyPlugin plugin point naming is duplicated, previous found in com.duckduckgo.feature.toggles.api.TriggerMyPlugin message
[x] repeating the same test in develop should pass
Task/Issue URL: https://app.asana.com/0/488551667048375/1207420696744032/f
Description
Detect active plugin point naming clash and break build.
The PR incidentally fixes
WrongPluginPointCollectorDetector
that was obsolete after #4585Steps to test this PR
Test
+package com.duckduckgo.feature.toggles.api
+import com.duckduckgo.anvil.annotations.ContributesActivePlugin +import com.duckduckgo.anvil.annotations.ContributesActivePluginPoint +import com.duckduckgo.common.utils.plugins.ActivePlugin +import com.duckduckgo.di.scopes.AppScope +import com.duckduckgo.feature.toggles.codegen.MyPlugin +import com.duckduckgo.feature.toggles.codegen.TriggeredMyPlugin +import javax.inject.Inject
+@ContributesActivePluginPoint(
+@ContributesActivePlugin(
TriggerMyPlugin
ContributesActivePluginPointCodeGeneratorTest
testscom.squareup.anvil.compiler.api.AnvilCompilationException: Back-end (JVM) Internal error: com.duckduckgo.feature.toggles.codegen.FooActiveTriggeredMyPlugin plugin name is duplicated, previous found in com.duckduckgo.feature.toggles.api.FooActiveTriggeredMyPlugin
messageTriggerMyPlugin
and comment outFooActiveTriggeredMyPlugin
ContributesActivePluginPointCodeGeneratorTest
testscom.squareup.anvil.compiler.api.AnvilCompilationException: Back-end (JVM) Internal error: com.duckduckgo.feature.toggles.codegen.MyPlugin plugin point naming is duplicated, previous found in com.duckduckgo.feature.toggles.api.TriggerMyPlugin
message