Skip to content

Instantly share code, notes, and snippets.

@dailymartin
Created January 9, 2017 04:25
Show Gist options
  • Save dailymartin/7508fa54d6c458350802c70286b13d66 to your computer and use it in GitHub Desktop.
Save dailymartin/7508fa54d6c458350802c70286b13d66 to your computer and use it in GitHub Desktop.
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
...
private byte[] createPKPassBinaries(PKPass pass, PKSigningInformation pkSigningInformation, InputStream thumbnail, InputStream thumbnail2x) throws Exception {
return new PKFileBasedSigningUtil(OBJECT_MAPPER).createSignedAndZippedPkPassArchive(pass, createPKPassTemplate(thumbnail, thumbnail2x), pkSigningInformation);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment