getGradleSources static method

List<String> getGradleSources({
  1. Uri? configRoot,
  2. String androidProject = '.',
})

Get source paths for all gradle dependencies.

This function temporarily overwrites the build.gradle file by a stub with function to list all dependency paths for release variant. This function fails if no gradle build is attempted before.

Implementation

static List<String> getGradleSources(
    {Uri? configRoot, String androidProject = '.'}) {
  return _runGradleStub(
    stubName: _gradleGetSourcesTaskName,
    stubCode: _gradleGetSourcesStub,
    androidProject: androidProject,
    configRoot: configRoot,
  );
}