public static Map<String,MappedClass> mappingsFromProguard(File file,Map<String,ClassNode> nodes){
  Map<String,MappedClass> base=mappingsFromNodes(nodes);
  MappingLoader loader=new ProguardLoader(nodes);
  try {
    Map<String,MappedClass> newMappings=loader.read(new FileReader(file));
    for (    MappedClass mappedClass : newMappings.values()) {
      newMappings=linkMappings(mappedClass,newMappings);
    }
    base=fixFromMappingsText(base,newMappings);
  }
 catch (  FileNotFoundException e) {
    e.printStackTrace();
  }
  return base;
}

public static Map < String , MappedClass > mappingsFromProguard ( File file , Map < String , ClassNode > nodes ) { Map < String , MappedClass > base = mappingsFromNodes ( nodes ) ; MappingLoader loader = new ProguardLoader ( nodes ) ; try { Map < String , MappedClass > newMappings = loader . read ( new FileReader ( file ) ) ; for ( MappedClass mappedClass : newMappings . values ( ) ) { newMappings = linkMappings ( mappedClass , newMappings ) ; } base = fixFromMappingsText ( base , newMappings ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } return base ; }
returns a map of class names to mapped classes given a proguard mapping file .
