/** * Gets the version code for the manifest file processed by this parser. */ @Override public int getVersionCode() { String versionCode = attributeValues.get(AndroidManifest.getVersionCodeXPath()); return (int) parseIntValueOrDefault(versionCode, -1, -1); }
/** * Gets the target sdk version for the manifest file processed by this parser. */ @Override @NonNull public Object getTargetSdkVersion() { String targetSdkVersion = attributeValues.get(AndroidManifest.getTargetSdkVersionXPath()); return parseIntValueOrDefault(targetSdkVersion, targetSdkVersion, -1); }
/** * Gets the minimum sdk version for the manifest file processed by this parser. */ @Override @NonNull public Object getMinSdkVersion() { String minSdkVersion = attributeValues.get(AndroidManifest.getMinSdkVersionXPath()); return parseIntValueOrDefault(minSdkVersion, minSdkVersion, 1); }