}
private NSDictionary createIOSPlistNSDictionary(String cfBundleIdentifier, String cfBundleVersion, String cfBundleName, String ipaUrl, String iconUrl) {
NSDictionary mainDict = new NSDictionary();
NSArray items = new NSArray(1);
NSArray assets;
if (StringUtils.hasText(iconUrl)) {
assets = new NSArray(2);
} else {
assets = new NSArray(1);
}
NSDictionary itemsDict = new NSDictionary();
NSDictionary assetsDict = new NSDictionary();
assetsDict.put("kind", "software-package");
assetsDict.put("url", ipaUrl);
assets.setValue(0, assetsDict);
if (StringUtils.hasText(iconUrl)) {
NSDictionary iconsDict = new NSDictionary();
iconsDict.put("kind", "display-image");
iconsDict.put("needs-shine", true);
iconsDict.put("url", "https://d1g1p4u8ho16cr.cloudfront.net/static/cb2639330650/resources/img/default_icon.png");
assets.setValue(1, iconsDict);
}
NSDictionary mettadataDict = new NSDictionary();
mettadataDict.put("bundle-identifier", cfBundleIdentifier);
mettadataDict.put("bundle-version", cfBundleVersion);