wewewe718 / QrAndBarcodeScanner

An Android app for scanning QR codes and barcodes
The Unlicense
684 stars 136 forks source link

Pkpass exporter #156

Open jejb opened 1 year ago

jejb commented 1 year ago

Three commits: one to make the barcode scanner more robust (I've discovered some bugs scanning non-US airline passes). One to allow exporting the scanned barcode as a pkpass (or sharing if you have the app installed). To view, you need an app, like PassAndroid which can edit the pass because there is information missing which isn't in the barcode (like departure time and boarding group). The final commit adds the regulation TSAPre image if the barcode says it should be present. This is because the screeners at some TSA lines in the US seem to be very insistent on having this exact image on mobile boarding passes. The TSA publishes the image for free use, so there shouldn't be a copyright issue (even if they didn't, the TSA, being a US government entity, is required to release all copyrightable materials into the public domain anyway).

The pkpass exporter can also add the airline specific header images and icons which are on real mobile boarding passes. I haven't included any of these in this pull request because of doubts about copyright, but they can be added later if people think its a good idea (so far I've collected the ones for AA, DL, TK, AS and BA).