getGradleClasspaths static method

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

Get release compile classpath used by Gradle for android build.

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.

If current project is not directly buildable by gradle, eg: a plugin, a relative path to other project can be specified using androidProject.

Implementation

static List<String> getGradleClasspaths(
        {Uri? configRoot, String androidProject = '.'}) =>
    _runGradleStub(
      stubName: _gradleGetClasspathTaskName,
      stubCode: _gradleGetClasspathStub,
      androidProject: androidProject,
      configRoot: configRoot,
    );