Kvitto 1.0.4 | Cocoanetics


Kvitto is an open supply part that permits you to parse Apple gross sales receipt information, for instance to find out if the consumer has an energetic auto-renewing subscription on system.

This new launch fixes an pressing problem that appeared the primary time on September twenty fourth, in iOS 14, the place about half the gross sales receipts couldn’t be parsed. I additionally added help for Swift Bundle Supervisor 2 weeks in the past and had forgotten to announce the discharge, so there you go.

Modifications

  • NEW: Assist Swift Bundle Supervisor
  • FIXED: dates with fractional seconds wouldn’t be parsed
  • FIXED: Loosen up test for sequence in root of PKCS7 container, as Apple may typically provide solely 3 parts as an alternative of 5

After seeing and collaborating with a couple of motivated builders on including SPM help to DTFoundation and DTCoreText I felt empowered to deal with this for Kvitto myself.

Concerning the mounted bug… I obtained first phrase about new points with Kvitto from Canada on September twenty fifth:

We’ve been getting some emails previously couple days from customers saying their subscription isn’t validating.

At first I shrugged this off, as a result of I hadn’t modified something, and why would Apple change one thing right here? However then within the night of September twenty seventh, I obtained an in depth problem report from Germany, pinpointing the problem as being associated to Apple now typically together with fractional seconds on date fields. So as an alternative of 2020-09-27T12:07:19Z we might now – typically, not at all times – get 2020-09-27T12:07:19.686Z – which NSDateFormatter just isn’t good sufficient to disregard.

My repair is principally to test the size of the string after which use the right date format for that.

The discharge has been tagged on GitHub, thus is offered through Swift Bundle Supervisor on the grasp department, and it has additionally been launched through CocoaPods trunk.



Additionally revealed on Medium.


Tagged as:

Classes: Updates

Recent Articles

Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here

Stay on op - Ge the daily news in your inbox