Skip to content

Conversation

@bsneed
Copy link
Contributor

@bsneed bsneed commented Aug 19, 2021

  • Moved required per-platform plugins to VendorSystem.
  • Refactored startup sequence to fetch from VendorSystem and then apply lifecycle stuff.

if configuration.values.trackApplicationLifecycleEvents {
#if os(iOS) || os(tvOS)
plugins += [iOSLifecycleMonitor(), iOSLifecycleEvents(), DeviceToken()]
plugins.append(iOSLifecycleEvents())
Copy link
Contributor

@prayansh prayansh Aug 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make more sense to provide the lifecycleEvents plugin via the vendor system as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that would add clutter in the long term if/when we have more things that fall into that bucket.

Copy link
Contributor

@prayansh prayansh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a suggestion on providing the lifecycleEvent plugin via vendor system, to potentially remove macro code

Copy link
Contributor

@migs647 migs647 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bsneed bsneed merged commit c60d6f2 into main Aug 19, 2021
@bsneed bsneed deleted the bsneed/startup-plugins branch August 19, 2021 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants