Not strictly Kotlin related question but there are a lot of professionals here so:
What do you think about AndroidManifest.xml modification inside annotation processor? Example usecase:
AnnotationProcessor generates an Android Service, but if none annotation is found then there is nothing to generate so I don’t wan’t to have an empty Service file and redundant entry in the AndroidManifest.xml. There is no way to conditionally put an element to the Manifest. I guess it would be possible to access Manifest file in the annotation processor and add/remove element by hand. Seems hacky, but is it mad?