Skip to content

Commit

Permalink
fix: introduce basic staged alias support
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Mar 13, 2022
1 parent e9a3993 commit df3b9f7
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ private ResPackage readTablePackage() throws IOException, AndrolibException {
case Header.XML_TYPE_SPEC_TYPE:
readTableTypeSpec();
break;
case Header.XML_TYPE_STAGED_ALIAS:
readStagedAliasSpec();
break;
default:
flag = false;
break;
Expand Down Expand Up @@ -161,6 +164,17 @@ private void readLibraryType() throws AndrolibException, IOException {
}
}

private void readStagedAliasSpec() throws IOException {
int count = mIn.readInt();

for (int i = 0; i < count; i++) {
/* stagedResId */mIn.skipInt();
/* finalizedResId */mIn.skipInt();
}

nextChunk();
}

private void readTableTypeSpec() throws AndrolibException, IOException {
mTypeSpec = readSingleTableTypeSpec();
addTypeSpec(mTypeSpec);
Expand Down

0 comments on commit df3b9f7

Please sign in to comment.