passkit 0.0.8 copy "passkit: ^0.0.8" to clipboard
passkit: ^0.0.8 copied to clipboard

Pure Dart library which can read Apple's PKPass files. Works on servers too.

example/main.dart

import 'dart:io';

import 'package:passkit/passkit.dart';

void main() async {
  final passKitBytes = await File('pass.pkpass').readAsBytes();
  final pkPass = PkPass.fromBytes(
    passKitBytes,
    skipChecksumVerification: true,
    skipSignatureVerification: true,
  );

  print(pkPass.pass.description);

  if (pkPass.isWebServiceAvailable) {
    final updatedPass = PassKitWebClient().getLatestVersion(pkPass);
    print(updatedPass);
  }
}
10
likes
0
pub points
73%
popularity

Publisher

verified publisheruekoetter.dev

Pure Dart library which can read Apple's PKPass files. Works on servers too.

Repository (GitHub)
View/report issues

Topics

#passkit #pkpass

License

unknown (license)

Dependencies

archive, collection, crypto, csslib, http, http_parser, intl, json_annotation, meta, pkcs7, pointycastle

More

Packages that depend on passkit