Add support for shorthand SDK for bounding check

- fixes #1630
This commit is contained in:
Connor Tumbleson
2017-09-28 08:23:02 -04:00
parent 212330e0c9
commit 3ec4f360ab
3 changed files with 40 additions and 17 deletions

View File

@ -75,4 +75,16 @@ public class InvalidSdkBoundingTest {
androlibResources.setSdkInfo(sdkInfo);
assertEquals("25", androlibResources.checkTargetSdkVersionBounds());
}
@Test
public void checkForShortHandSdkTag() throws BrutException, IOException {
AndrolibResources androlibResources = new AndrolibResources();
Map<String, String> sdkInfo = new LinkedHashMap<>();
sdkInfo.put("targetSdkVersion", "O");
androlibResources.setSdkInfo(sdkInfo);
assertEquals("26", androlibResources.checkTargetSdkVersionBounds());
}
}