Skip to content

Added convenience methods for ObjC interop #142

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

Merged
merged 5 commits into from
May 6, 2022
Merged

Added convenience methods for ObjC interop #142

merged 5 commits into from
May 6, 2022

Conversation

bsneed
Copy link
Contributor

@bsneed bsneed commented May 6, 2022

  • Added convenience methods for ObjC interop.
  • Reduced cellular info example down to just iOS to fix CI issue.

@bsneed bsneed merged commit ca8668c into main May 6, 2022
@bsneed bsneed deleted the bsneed/edgefn branch May 6, 2022 18:21
@@ -18,7 +18,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
Analytics.main.add(plugin: IDFACollection())
Analytics.main.add(plugin: UIKitScreenTracking())
Analytics.main.add(plugin: NotificationTracking())

#if os(iOS) && !targetEnvironment(macCatalyst)
Analytics.main.add(plugin: CellularCarrier())
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -13,12 +13,20 @@ import Foundation

@objc(SEGAnalytics)
public class ObjCAnalytics: NSObject {
internal let analytics: Analytics
/// The underlying Analytics object we're working with
public let analytics: Analytics
Copy link
Contributor

Choose a reason for hiding this comment

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

We had to expose this for tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes cross-config way easier if you can init in objc and then access it later in swift if needed and vice versa.

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.

2 participants