resolveTargets static method
Expands platforms and Android types into targets. Android gets one
target per requested type; iOS always builds a single IPA, so --type
does not apply to it.
Implementation
static List<BuildTarget> resolveTargets(
List<String> platforms, List<String> androidTypes) {
final targets = <BuildTarget>[];
for (final platform in _unique(platforms)) {
if (platform == 'ios') {
targets.add(const BuildTarget('ios', 'ipa'));
} else {
final types = _unique(androidTypes);
for (final type in types.isEmpty ? ['aab'] : types) {
targets.add(BuildTarget('android', type));
}
}
}
return targets;
}