snowplow-dotnet-tracker icon indicating copy to clipboard operation
snowplow-dotnet-tracker copied to clipboard

Suggestion - Binding native libraries

Open nacompllo opened this issue 9 months ago • 0 comments

I want to make a suggestion / discussion on whether it makes sense for you guys to raise the possibility of making a native binding of Snowplow native libraries for Xamarin / .NET Maui:

Android: https://github.com/snowplow/snowplow-android-tracker

iOS: https://github.com/snowplow/snowplow-ios-tracker

If we assume that the native versions have an active maintenance support and the .NET version has a slower maintenance and the SDK has fewer features than their native counterparts, it may be interesting to consider the option of bind the native libraries which would cause that the 3 platforms (ios, android, xamarin) would always be leveled at the API level since it would only be necessary to update the native binaries in the .NET SDK and adapt the abstraction layer to the changes. Does it sound interesting for you to consider this option?

Interesting resources:

Android:

  • Bind Android Kotlin libraries https://learn.microsoft.com/en-us/xamarin/android/platform/binding-kotlin-library/
  • Walkthrough: Bind an Android Kotlin library https://learn.microsoft.com/en-us/xamarin/android/platform/binding-kotlin-library/walkthrough
  • Binding to Java Library: https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/
  • Binding to .JAR: https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/binding-a-jar
  • Binding an .AAR: https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/binding-an-aar

iOS:

  • Bind iOS Swift libraries https://learn.microsoft.com/en-us/xamarin/ios/platform/binding-swift/
  • Walkthrough: Bind an iOS Swift library https://learn.microsoft.com/en-us/xamarin/ios/platform/binding-swift/walkthrough
  • Binding iOS Libraries: https://docs.microsoft.com/en-us/xamarin/ios/platform/binding-objective-c/
  • Walkthrough: Binding an iOS Objective-C Library: https://docs.microsoft.com/en-us/xamarin/ios/platform/binding-objective-c/walkthrough?tabs=macos
  • Xamarin for Objective-C Developers: https://docs.microsoft.com/en-us/xamarin/ios/get-started/objective-c-developers/

nacompllo avatar Oct 07 '23 16:10 nacompllo