Slackbot
05/10/2022, 3:16 PMwolfs
05/10/2022, 3:31 PM@OutputFiles.Javi
05/10/2022, 4:16 PM@OutputFiles only works with List<File> and not with that typewolfs
05/10/2022, 4:17 PMJavi
05/10/2022, 4:47 PMJavi
05/10/2022, 4:47 PMMap<String, List<File>>, not Map<String, File>Javi
05/10/2022, 4:47 PMExpected file collection to contain exactly one file, however, it contains more than one filewolfs
05/10/2022, 4:48 PMJavi
05/10/2022, 4:49 PMJavi
05/10/2022, 5:20 PM@Internal
val commonMainDrawablesGroupedBySuffix: Map<String, List<File>> =
commonMainDrawablesGroupedBySuffix(commonMainResourcesDirs.toList(), suffixes.get())
@OutputFiles
val commonMainDrawables: List<File> = commonMainDrawablesGroupedBySuffix.values.flatten()Javi
05/10/2022, 5:21 PMcommonMainDrawables is marked by the IDE as not used, which is technically trueJavi
05/11/2022, 7:35 AMwolfs
05/11/2022, 9:15 AM@Nested for outputs, though you’d need to define your own type. Something like should work:
class MyOutput {
@OutputFiles
List<File> outputs
}
@Nested
val drawables: Map<String, MyOutput>wolfs
05/11/2022, 9:16 AMJavi
05/11/2022, 12:06 PM