Skip to content

Instantly share code, notes, and snippets.

@sudhanshuraheja
Created May 16, 2011 10:51
Show Gist options
  • Save sudhanshuraheja/974231 to your computer and use it in GitHub Desktop.
Save sudhanshuraheja/974231 to your computer and use it in GitHub Desktop.
private function createManifest( $ipa_url, $bundle_id, $bundle_version, $title ) {
$xml = '<?xml version="1.0" encoding="UTF-8"' . urldecode( urlencode('?') . urlencode('>') ) . '
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>' . $ipa_url . '</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>' . $bundle_id . '</string>
<key>bundle-version</key>
<string>' . $bundle_version . '</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>' . $title . '</string>
</dict>
</dict>
</array>
</dict>
</plist>';
return $xml;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment