/** * Gets the API level from a hash string, either a platform version or add-on version. * * @see #getAddOnVersion(String) * @see #getPlatformVersion(String) */ @Nullable public static AndroidVersion getVersionFromHash(@NonNull String hashString) { if (isPlatform(hashString)) { return getPlatformVersion(hashString); } else { return getAddOnVersion(hashString); } }
if (!AndroidTargetHash.isPlatform(targetHash)) { RemotePackage addonPackage = null; for (RemotePackage p : repoManager.getPackages().getRemotePackages()