This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| ################################################################################ | |
| '''Command line tool to build PassKit .pkpass files''' | |
| import hashlib | |
| import json | |
| import os | |
| import shutil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @implementation NSString(Additions) | |
| + (NSString *)stringWithRandomUUID { | |
| CFUUIDRef uuidObj = CFUUIDCreate(kCFAllocatorDefault);//create a new UUID | |
| //get the string representation of the UUID | |
| NSString *uuidString = (NSString*)CFUUIDCreateString(kCFAllocatorDefault, uuidObj); | |
| CFRelease(uuidObj); | |
| return [uuidString autorelease]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *.xcodeproj/*.mode1v3 | |
| *.xcodeproj/*.pbxuser | |
| *.xcodeproj/*.perspectivev3 | |
| .DS_Store | |
| xcuserdata | |
| build | |
| fail |