This message was deleted.
# android
s
This message was deleted.
1
x
if you want the source file, yes that's the one.
y
Well, it was in groovy, when old one android extension was available, I assume it was
BaseAppModuleExtension
But now android extension class is
ApplicationExtension
and the only API i found is for overriding manifest location like this:
Copy code
val android = project.extensions.getByType(ApplicationExtension::class.java)
        val any = android.sourceSets.getByName("main").manifest.srcFile(Any)
x
ahh... yes. you are right that this is not enough. In 7.4 we have just added a new API to query folder-based sourcesets on a per-variant basis (https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/Component#sources()) but this does not include the manifest. I file a bug for us to add it
1
y
Thank you for all the help!
x
np