Skip to content

Commit

Permalink
feat: add template format versions (#5)
Browse files Browse the repository at this point in the history
Add folders for storing pass template versions
  • Loading branch information
aahna-ashina committed May 25, 2022
1 parent 1f12d3a commit ab72a49
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 0 deletions.
Binary file added template-versions/apple/1/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added template-versions/apple/1/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added template-versions/apple/1/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added template-versions/apple/1/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions template-versions/apple/1/pass.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"organizationName": "Nation3",
"passTypeIdentifier": "pass.org.passport.nation3",
"description": "Nation3 passports for Nation3 citizens.",
"teamIdentifier": "6GU2F645A4",
"backgroundColor": "rgb(255,255,255)",
"foregroundColor": "rgb(34, 64, 89)",
"labelColor": "rgb(115, 149, 178)",
"formatVersion": 1,
"storeCard": {
"headerFields": [
{ "value": "not yet :)", "label": "Passport ID", "key": "id" }
],
"primaryFields": [],
"secondaryFields": [
{
"fieldUUID": "526c80c0-c579-11ec-b5fd-e93a006cb46d",
"value": "luisc.eth",
"label": "Holder",
"key": "holder"
}
]
},
"barcodes": [
{
"message": "123456789",
"format": "PKBarcodeFormatQR",
"messageEncoding": "iso-8859-1"
}
]
}
Binary file added template-versions/apple/1/strip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions template-versions/google/1/generic-pass.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"genericType": "GENERIC_TYPE_UNSPECIFIED",
"hexBackgroundColor": "#4285f4",
"logo": {
"sourceUri": {
"uri": "https://storage.googleapis.com/wallet-lab-tools-codelab-artifacts-public/pass_google_logo.jpg"
}
},
"cardTitle": {
"defaultValue": {
"language": "en",
"value": "Google I/O '22 [DEMO ONLY]"
}
},
"subheader": {
"defaultValue": {
"language": "en",
"value": "Attendee"
}
},
"header": {
"defaultValue": {
"language": "en",
"value": "Alex McJacobs"
}
},
"barcode": {
"type": "QR_CODE",
"value": "12345"
},
"heroImage": {
"sourceUri": {
"uri": "https://storage.googleapis.com/wallet-lab-tools-codelab-artifacts-public/google-io-hero-demo-only-2.png"
}
},
"textModulesData": [
{
"header": "POINTS",
"body": "99",
"id": "points"
},
{
"header": "CONTACTS",
"body": "99",
"id": "contacts"
}
]
}

0 comments on commit ab72a49

Please sign in to comment.