Search in sources :

Example 1 with TransitiveResourceInfo

use of com.google.idea.blaze.android.sync.importer.aggregators.TransitiveResourceMap.TransitiveResourceInfo in project intellij by bazelbuild.

the class TransitiveResourceMap method createForTarget.

@Override
protected TransitiveResourceInfo createForTarget(TargetIdeInfo target) {
    TransitiveResourceInfo result = new TransitiveResourceInfo();
    AndroidIdeInfo androidIdeInfo = target.androidIdeInfo;
    if (androidIdeInfo == null) {
        return result;
    }
    if (androidIdeInfo.legacyResources != null) {
        return result;
    }
    result.transitiveResources.addAll(androidIdeInfo.resources);
    result.transitiveResourceTargets.add(target.key);
    return result;
}
Also used : AndroidIdeInfo(com.google.idea.blaze.base.ideinfo.AndroidIdeInfo) TransitiveResourceInfo(com.google.idea.blaze.android.sync.importer.aggregators.TransitiveResourceMap.TransitiveResourceInfo)

Aggregations

TransitiveResourceInfo (com.google.idea.blaze.android.sync.importer.aggregators.TransitiveResourceMap.TransitiveResourceInfo)1 AndroidIdeInfo (com.google.idea.blaze.base.ideinfo.AndroidIdeInfo)1