Skip to content

beeradmoore/Xam.Plugin.Mixpanel.Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xam.Plugin.Mixpanel.Android

Xamarin.Android bindings for Mixpanel Android v7.3.2.

Installation

Xam.Plugin.Mixpanel.Android is available via NuGet. https://www.nuget.org/packages/Xam.Plugin.Mixpanel.Android/

NuGet

Usage

Include Mixpanel

using Xam.Plugin.Mixpanel.Android;

And then follow the docs provided at the Mixpanel Developer Documentation (https://developer.mixpanel.com/docs/android)

Breaking Changes

v5.6.5

The Xam.Plugin.Mixpanel.Android.Mpmetrcis namespace has been renamed to Xam.Plugin.Mixpanel.Android.MPMetrics.

Missing Builds

5.9.2 + 5.9.3

These builds are not present in this repo or on nuget as they would crash on launch. This was resolved in 5.9.4.

Build

Visutal Studio for Mac

  1. Run FetchJars.sh
    $ ./FetchJars.sh
  2. Open Xam.Plugin.Mixpanel.Android.sln
  3. Build and fetch your .dlls from the bin/ directory.

Building a .nupkg

  1. Run BuildNugetPackage.sh
    $ ./BuildNugetPackage.sh
  2. Fetch your Xam.Plugin.Mixpanel.Android.x.y.z.nupkg and Xam.Plugin.Mixpanel.Android.x.y.z.snupkg from the Binding directory.

Adding JavaDocs

FetchJars.sh will download the .aar file and .javadoc.jar files from Maven and place/extract them in the suitable folders.

Updating Mixpanel SDK

To update the Mixpanel SDK change the MIXPANEL_VERSION variable within FetchJars.sh to your desired SDK version and run build steps again.

Requirements

TODO

  • Try figure out how to reduce the number of warnings.
  • Figure out why the class MixpanelFCMMessagingService is missing.
  • Figure out how to get JavaDocs to work correctly. Should we include the relevant jars (already downloading with FetchJars.sh) with JavaDocJar and JavaSourceJar in the csproj. Should we continue using the JavaDocs folder like we currently do.

Pull requests welcome!