You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, is it also allowed to add Package.swift files to purely objective-c codebases? I don't have any experience with this, however I'd be more than happy to accept a PR that adds this file!
I tried adding the Package.swift file, but there are some issues. It doesn't like the mixed swift/objc in the Tests, and I can't seem to add the UIKit framework as a dependency in objc.
Hi @joshkopecek , just checking in, did you get posthog-ios working with a Package.swift file in the end... or how are you currently integrating it into your app? We'd love to make setup really easy for all iOS developers. We should probably update the docs to guide swift users better with the current way of installing it...
Currently using Cocoapods to install, although Package.swift would be preferred. I did some rudimentary work on it, and looked like it would be possible, but I ran out of time. It's in my repo as mentioned above.
As I mentioned above I was struggling to get it to see the core iOS UIKit framework. It might be good to remove that anyway.
Activity
mariusandra commentedon May 18, 2020
Hi, is it also allowed to add Package.swift files to purely objective-c codebases? I don't have any experience with this, however I'd be more than happy to accept a PR that adds this file!
joshkopecek commentedon May 19, 2020
I tried adding the Package.swift file, but there are some issues. It doesn't like the mixed swift/objc in the Tests, and I can't seem to add the UIKit framework as a dependency in objc.
I created a fork here: https://github.com/joshkopecek/posthog-ios/tree/features/spm
mariusandra commentedon May 29, 2020
Hi @joshkopecek , just checking in, did you get
posthog-iosworking with a Package.swift file in the end... or how are you currently integrating it into your app? We'd love to make setup really easy for all iOS developers. We should probably update the docs to guide swift users better with the current way of installing it...joshkopecek commentedon Jun 1, 2020
Currently using Cocoapods to install, although Package.swift would be preferred. I did some rudimentary work on it, and looked like it would be possible, but I ran out of time. It's in my repo as mentioned above.
As I mentioned above I was struggling to get it to see the core iOS UIKit framework. It might be good to remove that anyway.
dannyhertz commentedon Jul 22, 2020
Any progress on this? Had a call with the team today and SPM support would really make integration simpler for us. As for the UIKit import and can simply wrap anything that uses UIKit in conditional checks a la https://www.hackingwithswift.com/example-code/language/how-to-check-whether-a-module-is-available-using-canimport
mariusandra commentedon Aug 3, 2020
I'd love it if someone with enough experience with ObjC/Swift dependencies could pick this up!
mariusandra commentedon Feb 22, 2021
PR #10 and version
1.2.2could have fixed this.feat: support for enriched flag analytics (#487)
Merge pull request #1 from jeremiahseun/add-referrer-url-automatically
test: add Swift Testing state isolation, scoped clock helper, and CI …
test: add Swift Testing state isolation, scoped clock helper, and CI …
ci: run the iOS test target on a simulator and fix the rot it surfaced (
fix(replay): address trigger groups review feedback and fix remaining…
fix(replay): address second round of trigger groups review feedback