This provides the ability to hook up direct dependencies to known libraries, and then resolve them to a transitive list. This means that downstream users can say
nativeUtils.useRequiredLibrary(it, 'ntcore_shared'), and it will automatically pull in wpiutil_shared and wpinet_shared. This make it easer to update things when new libraries are added, or if libraries are broken up into smaller chunks and brought together with a meta-library, as suggested here.
I'm not a gradle whiz, so I'm throwing this up as a draft to start a discussion
This provides the ability to hook up direct dependencies to known libraries, and then resolve them to a transitive list. This means that downstream users can say
nativeUtils.useRequiredLibrary(it, 'ntcore_shared')
, and it will automatically pull inwpiutil_shared
andwpinet_shared
. This make it easer to update things when new libraries are added, or if libraries are broken up into smaller chunks and brought together with a meta-library, as suggested here.I'm not a gradle whiz, so I'm throwing this up as a draft to start a discussion