Androlib::getVersion() : read version from apktool.properties ."

This commit is contained in:
Ryszard Wiśniewski 2011-05-15 16:52:29 +02:00
parent 84a0972526
commit e0a0769704

View File

@ -375,7 +375,7 @@ public class Androlib {
} }
public static String getVersion() { public static String getVersion() {
return VERSION; return ApktoolProperties.get("aversion");
} }
private File[] parseUsesFramework(Map<String, Object> usesFramework) private File[] parseUsesFramework(Map<String, Object> usesFramework)
@ -436,5 +436,4 @@ public class Androlib {
new String[]{"resources.arsc", "AndroidManifest.xml"}; new String[]{"resources.arsc", "AndroidManifest.xml"};
private final static String[] APP_RESOURCES_FILENAMES = private final static String[] APP_RESOURCES_FILENAMES =
new String[]{"AndroidManifest.xml", "res"}; new String[]{"AndroidManifest.xml", "res"};
private final static String VERSION = "1.3.2";
} }