https://kotlinlang.org logo
#android
Title
# android
l

louiscad

01/03/2018, 9:03 AM
Hi, does anyone know of a way to dynamically generate AndroidManifest elements at compile time? I'm thinking of a way to make a kapt library automatically register some generated components in the manifest
m

menegatti

01/03/2018, 9:11 AM
couldn’t your plugin also generate a manifest file that will be merged with the main manifest at build time?
m

mzgreen

01/03/2018, 9:36 AM
It can be done but not with annotation processing. You can create gradle plugin for that.
n

nounours

01/03/2018, 9:51 AM
gradle plugin seems the most accurate way to do it.
l

louiscad

01/03/2018, 10:45 AM
Is there any gradle plugin example that does this? (in Kotlin if there's one)
6 Views