pyrx_synapse_platform_interface 0.2.0 copy "pyrx_synapse_platform_interface: ^0.2.0" to clipboard
pyrx_synapse_platform_interface: ^0.2.0 copied to clipboard

Platform-interface contract for the PYRX Synapse Flutter SDK. Defines the abstract Dart surface that platform implementations (`pyrx_synapse_ios`, `pyrx_synapse_android`) extend, plus the Pigeon spec [...]

0.2.0 - 2026-07-01 #

Extends the Pigeon platform-interface contract with the in-app messaging surface from ADR-0009 D5.

Added #

  • 5 new HostApi methods: inAppShow, inAppGetActive, inAppDismiss, inAppMarkInteracted, inAppRefresh.
  • 2 new EventChannelApi event kinds: inAppMessageReceived, inAppMessageDismissed (extends 5-event taxonomy to 7).
  • Pigeon-generated bundle includes the matching codecs across Dart, Swift, and Kotlin (*.g.dart, *.g.swift, *.g.kt round-trip clean).
  • New data classes: InAppMessageDto, InAppCtaDto.

0.1.0 - 2026-06-28 #

First public release. Defines the platform-interface contract every pyrx_synapse_* platform implementation extends, plus the Pigeon spec that codegens the type-safe MethodChannel + EventChannel layer between Dart and the iOS / Android native SDKs.

What's here #

  • PyrxSynapsePlatform — abstract base class. Platform packages override and register an instance via PyrxSynapsePlatform.instance = MyImpl() in their registerWith().
  • MethodChannelPyrxSynapse — default implementation. Routes every call through the Pigeon-generated PyrxSynapseHostApi over the standard Flutter platform channel.
  • Pigeon spec at pigeons/pyrx_synapse_messages.dart — single source of truth for the Dart ↔ native wire shape:
    • PyrxSynapseHostApi (HostApi) — 12 method calls
    • PyrxEventEnvelope (sealed DTO) + per-kind EventChannel APIs for the 5-event observer surface
  • Generated outputs committed to lib/src/generated/, ios/Classes/generated/, and android/.../generated/. Re-generate via melos run pigeon-generate after editing the spec.

Toolchain floor #

  • Flutter >= 3.24.0
  • Dart SDK ^3.6.0

Notes #

Customers integrate the umbrella pyrx_synapse package — this platform-interface package is a transitive dependency. Direct consumption is supported but unusual (e.g., implementing a custom platform package for pyrx_synapse_web or pyrx_synapse_macos).

0
likes
140
points
10
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Platform-interface contract for the PYRX Synapse Flutter SDK. Defines the abstract Dart surface that platform implementations (`pyrx_synapse_ios`, `pyrx_synapse_android`) extend, plus the Pigeon spec that codegens the type-safe MethodChannel + EventChannel layer between Dart and the iOS / Android native SDKs.

Repository (GitHub)
View/report issues

Topics

#pyrx #synapse #platform-interface #push-notifications

License

MIT (license)

Dependencies

flutter, meta, plugin_platform_interface

More

Packages that depend on pyrx_synapse_platform_interface