This message was deleted.
# community-support
s
This message was deleted.
v
What's the problem with having that base convention plugin that you then apply in your more specific plugins?
i
Right now, I would say, getting Android plugin DSL dependency(ies) injected correctly I'm trying to use
id("com.android.base")
in hope that maybe it will create proper
android
extension in base convention plugin and will provide things I need Bit of a struggle against Android plugin, because I would like to configure extension that is not yet there, and since none of android plugins is applied in base convention plugin I'm looking for a way to delay it a bit, beside properly injecting missing classes
v
I'm not really familiar with Android dev. But afair the android base plugin does not register an extension, but the different android plugins register different extensions under the same name. So it might not be possible like you try. Maybe you should just have some helper methods that you call from your more specific plugins that contain the common logic.
i
yeah, working on few ideas ot once, this is why I like
apply-from
it might not have typesafe accessors, but it allowed me to do those things without any headache, but still trying convention plugins
v
Everything you can do with a script plugin (apply from) you can do with a normal binary plugin or a precompiled script plugin too. Not sure why you think a script plugin gives you any advantage.
i
I'm not saying I can't, I just simply didn't needed
... some helper methods that you call from your more specific plugins that contain the common logic.
I'm not sure if advantage is the word I would use, but for sure it was easier to accomplish, more straightforward - I could probably create simple public project to show differences, I worked with script plugin now I'm working with convention plugin, I just see the difference and the fact that it's 2nd day I'm trying to figure out how to sew it all together in order to achieve expected result, but like I said, not giving up on convention plugin
v
Maybe it's more strange AGP things vs. normal Gradle usage. 😄
i
🤔 actually ... yes 😄 AGP, tough love