Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEGAnalyticsIntegrationDidStart unaccessible when integrating using SPM #1030

Open
piotrtobolski opened this issue Apr 11, 2022 · 6 comments

Comments

@piotrtobolski
Copy link
Contributor

SEGAnalyticsIntegrationDidStart is in SEGIntegrationsManager.h which is in Internal directory. Because of that, the SPM-integrated framework is not exposing it. Seems like an error considering #520 that explicitly made it public. I need to access this variable to know which integrations are started because I'm using some of them directly (but only if they are started).

Suggested solution: move this declaration to some file from the Classes directory so it is available using SPM just like it is available when CocoaPods is used.

@bart-kneepkens
Copy link

bart-kneepkens commented Apr 19, 2022

Also interested in this. Using the string literal for now: io.segment.analytics.integration.did.start:

NSString *SEGAnalyticsIntegrationDidStart = @"io.segment.analytics.integration.did.start";

@ecerney
Copy link

ecerney commented Dec 5, 2022

+1

1 similar comment
@crtgregoric
Copy link

+1

@asadkazmi-mset
Copy link

I updated my segment analytics to the swift version from Obj-c using SPM.
After updating I cannot find 'SEGAnalyticsIntegrationDidStart' in the scope, can anyone guide me on what can I use instead?

@piotrtobolski
Copy link
Contributor Author

"io.segment.analytics.integration.did.start"

@asadkazmi-mset
Copy link

asadkazmi-mset commented Jan 3, 2024

@piotrtobolski
I have used the notification 'io.segment.analytics.integration.did.start', but the corresponding observer is not being called

notificationCenter.addObserver(self,
                                       selector: #selector(integrationDidStart(_:)),
                                       name: NSNotification.Name(rawValue: "io.segment.analytics.integration.did.start"),
                                       object: nil)

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

No branches or pull requests

5 participants