use of com.taobao.android.dx.dex.file.Item in project atlas by alibaba.
the class Main method computeReferencedResources.
private void computeReferencedResources() {
for (Item genericItem : outputDex.getFieldIds().items()) {
FieldIdItem item = (FieldIdItem) genericItem;
CstType fieldClass = item.getDefiningClass();
CstString fieldName = item.getRef().getNat().getName();
if (fieldClass.getClassType().getDescriptor().contains("/R$")) {
// We ignore the name of the containing class for simplicity.
resourceNames.add(fieldName.getString());
}
}
}
Aggregations