mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 09:17:35 +01:00
parent
e407fe839b
commit
c659df9dce
@ -359,7 +359,7 @@ public class ResConfigFlags {
|
||||
ret.append(String.format("-%dx%d", screenHeight, screenWidth));
|
||||
}
|
||||
}
|
||||
if (sdkVersion > getNaturalSdkVersionRequirement()) {
|
||||
if (sdkVersion > 0 && sdkVersion >= getNaturalSdkVersionRequirement()) {
|
||||
ret.append("-v").append(sdkVersion);
|
||||
}
|
||||
if (isInvalid) {
|
||||
|
@ -277,6 +277,11 @@ public class BuildAndDecodeTest {
|
||||
compareResFolder("drawable-xxhdpi");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void drawableQualifierXxhdpiTest() throws BrutException, IOException {
|
||||
compareResFolder("drawable-xxhdpi-v4");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void drawableXxxhdpiTest() throws BrutException, IOException {
|
||||
compareResFolder("drawable-xxxhdpi");
|
||||
@ -308,8 +313,7 @@ public class BuildAndDecodeTest {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private void compareUnknownFiles()
|
||||
throws BrutException, IOException {
|
||||
private void compareUnknownFiles() throws BrutException, IOException {
|
||||
Map<String, Object> control = new Androlib().readMetaFile(sTestOrigDir);
|
||||
Map<String, Object> test = new Androlib().readMetaFile(sTestNewDir);
|
||||
assertTrue(control.containsKey("unknownFiles"));
|
||||
@ -320,13 +324,12 @@ public class BuildAndDecodeTest {
|
||||
assertTrue(control_files.size() == test_files.size());
|
||||
|
||||
// Make sure that the compression methods are still the same
|
||||
for(Map.Entry<String, String> controlEntry : control_files.entrySet()) {
|
||||
for (Map.Entry<String, String> controlEntry : control_files.entrySet()) {
|
||||
assertTrue(controlEntry.getValue().equals(test_files.get(controlEntry.getKey())));
|
||||
}
|
||||
}
|
||||
|
||||
private void compareBinaryFolder(String path, boolean res)
|
||||
throws BrutException, IOException {
|
||||
private void compareBinaryFolder(String path, boolean res) throws BrutException, IOException {
|
||||
Boolean exists = true;
|
||||
|
||||
String tmp = "";
|
||||
@ -374,8 +377,7 @@ public class BuildAndDecodeTest {
|
||||
assertTrue(f.isDirectory());
|
||||
}
|
||||
|
||||
private void compareXmlFiles(String path, ElementQualifier qualifier)
|
||||
throws BrutException {
|
||||
private void compareXmlFiles(String path, ElementQualifier qualifier) throws BrutException {
|
||||
DetailedDiff diff;
|
||||
try {
|
||||
Reader control = new FileReader(new File(sTestOrigDir, path));
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
Loading…
x
Reference in New Issue
Block a user