mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-08 11:05:52 +01:00
aapt2: flag for aapt2 and sparse resources to meta-info/apkOptions
This commit is contained in:
parent
0827b2b7a2
commit
f5caccbc2e
@ -27,9 +27,16 @@ public class ApkOptions {
|
|||||||
public boolean updateFiles = false;
|
public boolean updateFiles = false;
|
||||||
public boolean isFramework = false;
|
public boolean isFramework = false;
|
||||||
public boolean resourcesAreCompressed = false;
|
public boolean resourcesAreCompressed = false;
|
||||||
|
public boolean useAapt2 = false;
|
||||||
public Collection<String> doNotCompress;
|
public Collection<String> doNotCompress;
|
||||||
|
|
||||||
public String frameworkFolderLocation = null;
|
public String frameworkFolderLocation = null;
|
||||||
public String frameworkTag = null;
|
public String frameworkTag = null;
|
||||||
public String aaptPath = "";
|
public String aaptPath = "";
|
||||||
|
|
||||||
|
public int aaptVersion = 1; // default to v1
|
||||||
|
|
||||||
|
public boolean isAapt2() {
|
||||||
|
return this.useAapt2 || this.aaptVersion == 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,7 @@ public class MetaInfo {
|
|||||||
public VersionInfo versionInfo;
|
public VersionInfo versionInfo;
|
||||||
public boolean compressionType;
|
public boolean compressionType;
|
||||||
public boolean sharedLibrary;
|
public boolean sharedLibrary;
|
||||||
|
public boolean sparseResources;
|
||||||
public Map<String, String> unknownFiles;
|
public Map<String, String> unknownFiles;
|
||||||
public Collection<String> doNotCompress;
|
public Collection<String> doNotCompress;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user