This message was deleted.
# community-support
s
This message was deleted.
j
sourceSets[“whatever”].resources
or .res if you want the android one
r
right, but how do I get the path from it?
j
you get a file so it has a path
r
that resources property is from type AndroidSourceSet
Ah sorry AndroidSourceDirectorySet
I still do not know how to get the path from the sourceset
Ah there are two almost equal implementations:
com.android.build.gradle.api.AndroidSourceDirectorySet
and
com.android.build.api.dsl.AndroidSourceDirectorySet
the first one would work while the second one does not expose the file objects 😕
t
One is a documented API you can rely on, the other looks more like an "implementation detail" that might change at any time: https://developer.android.com/studio/releases/gradle-plugin-roadmap#agp_71_second_half_of_2021
r
That is interesting, I was using now to get the idea the SafeArgsPlugin, they still relay on the internal fields
t
I'd assume that they are from the same team, or work with the AGP team to make sure there won't be regressions, and have direct access to knowledge about the migration paths.