matomo-org / matomo-sdk-ios

Matomo iOS, tvOS and macOS SDK: a Matomo tracker written in Swift
MIT License
390 stars 164 forks source link

Support OSX #12

Closed mattiaslevin closed 10 years ago

mattiaslevin commented 11 years ago

The frameworks should support OSX and iOS.

Need to remove some dependencies to UIWebView (used to figure out the user-agent). Should not easy after shifting to AF networking.

/Mattias

ilTofa commented 11 years ago

I ported previous version to OS X (it's working on a couple apps) by removing the dependencies to UIWebView (and a couple other minor things), if you are interested (and you are not willing to do it yourself) I can try to port the changes to the new version and send you the changes. Just make me know.

mattiaslevin commented 11 years ago

Hi there,

I did start but have not really have time to port it to OSX yet.

It should be less work now that it is using AFNetworking (that supports both iOS and OSX).

One of the bigger challenges is probably more how to organise the Xcode workspace and cocoa pods. I am thinking about removing the Xcode project for the Piwik code and have two demo projects (or test projects), one for each platform, that include the piwik code (a bit like how AFNetworking is organised).

I am currently working on an OSX app on my spare time and like to add some analytics. The bigger analytics services (e.g Google Analytics) only provide iOS SDK and I am considering using Piwik (but I really do not want to host anything myself or pay for hosting).

Another option I am considering is to generalise the existing code so the tracker can support different services, e.g. both Piwik and Google Analytics, just implementing slightly different protocols.

Please feel free to port it is OSX and make a pull request. If you need any help or like to discuss, please let me know.

mvh /Mattias

On Sep 2, 2013, at 5:57 PM, ilTofa notifications@github.com wrote:

I ported previous version to OS X (it's working on a couple apps) by removing the dependencies to UIWebView (and a couple other minor things), if you are interested (and you are not willing to do it yourself) I can try to port the changes to the new version and send you the changes. Just make me know.

— Reply to this email directly or view it on GitHub.

ilTofa commented 11 years ago

Just sent a pull request for OS X compatibility, it's #14

halfdan commented 10 years ago

Any update on this?

ilTofa commented 10 years ago

I sent a pull request, Mattias didn't have time to merge, probably. You can merge it yourself or you can get the modified file directly from my fork at https://github.com/ilTofa/PiwikTracker/blob/master/PiwikTracker/PiwikTracker.m Read the notes on #14 in any case.

mattiaslevin commented 10 years ago

My work is doing its best to kill me with tons of overtime.

Pull request merged, solid stuff. Thanks a lot.