Closed Steven0351 closed 1 year ago
This PR is much in the same spirit of https://github.com/ionic-team/ionic-portals-ios/pull/71, without the changes in how subscriptions are managed.
@carlpoole and I also discussed adding companion object
shims back to PortalsPlugin
that use PortalsPubSub.shared
under the hood to avoid too much breaking. Those could then be marked as deprecated.
Added @IT-MikeS to review as I'm not comfortable commenting on the TS singleton comment
Did I miss something? There's no TS being worked on here it would seem @giralte-ionic
Added @IT-MikeS to review as I'm not comfortable commenting on the TS singleton comment
The comment was regarding Kotlin and Java patterns
ok sorry I'm dumb
Breaks out a separate PortalsPubSub class from PortalsPlugin to separate the event bus logic from the implementation of the Plugin
Makes PortalsPlugin useable as an instance plugin to scope events to a specific instance of PortalsPubSub
Adds the ability to scope the pubSub instance in
linkMessageReceivers
on PortalFragment.