WalletPasses.Apple.Builder (wallet_passes v0.6.0)

Copy Markdown View Source

Builds Apple Wallet .pkpass bundles.

Constructs pass.json, generates SHA1 manifests, signs with PKCS#7, and zips everything into a .pkpass file.

Summary

Functions

Builds the pass.json map from pass data, visual config, and auth token.

Builds a complete .pkpass ZIP bundle.

Generates a SHA1 manifest map from a map of %{filename => binary_content}.

Functions

build_pass_json(pass_data, visual, auth_token)

Builds the pass.json map from pass data, visual config, and auth token.

build_pkpass(pass_data, visual, auth_token)

Builds a complete .pkpass ZIP bundle.

Returns {:ok, pkpass_binary} or {:error, reason}.

Emits [:wallet_passes, :apple, :build_pass, :start|:stop|:exception] telemetry events with %{serial_number: pass_data.serial_number} metadata.

generate_manifest(files)

Generates a SHA1 manifest map from a map of %{filename => binary_content}.