Merge "Fix droiddoc disting when WITHOUT_CHECK_API is true."

This commit is contained in:
Jingwen Chen
2020-08-10 05:22:24 +00:00
committed by Gerrit Code Review
3 changed files with 19 additions and 4 deletions

View File

@@ -569,6 +569,12 @@ type commonProperties struct {
type TaggedDistFiles map[string]Paths
func MakeDefaultDistFiles(paths ...Path) TaggedDistFiles {
for _, path := range paths {
if path == nil {
panic("The path to a dist file cannot be nil.")
}
}
// The default OutputFile tag is the empty "" string.
return TaggedDistFiles{"": paths}
}