pyrx_synapse_platform_interface 0.2.0
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
HostApimethods:inAppShow,inAppGetActive,inAppDismiss,inAppMarkInteracted,inAppRefresh. - 2 new
EventChannelApievent 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.ktround-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 viaPyrxSynapsePlatform.instance = MyImpl()in theirregisterWith().MethodChannelPyrxSynapse— default implementation. Routes every call through the Pigeon-generatedPyrxSynapseHostApiover 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 callsPyrxEventEnvelope(sealed DTO) + per-kind EventChannel APIs for the 5-event observer surface
- Generated outputs committed to
lib/src/generated/,ios/Classes/generated/, andandroid/.../generated/. Re-generate viamelos run pigeon-generateafter 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).