diff --git a/Library/mparticle.nuspec b/Library/mparticle.nuspec index 2fc6f04..8dd8f23 100644 --- a/Library/mparticle.nuspec +++ b/Library/mparticle.nuspec @@ -2,7 +2,7 @@ mParticle.Xamarin - 2.0.11 + 2.0.12 mParticle Xamarin SDK Wasi Haider, Sam Dozor, Will Passidomo, mParticle Inc. mParticle Inc. diff --git a/README.MD b/README.MD index 527921a..cf8d27e 100644 --- a/README.MD +++ b/README.MD @@ -9,7 +9,7 @@ This SDK is distributed via the public NuGet gallery: https://www.nuget.org/pack If you have both an iOS and an Android project, you should add the NuGet package to each following the Xamarin Add Package dialog. [See here](https://developer.xamarin.com/guides/cross-platform/xamarin-studio/nuget_walkthrough/) for a detailed walkthrough on using NuGet with a Xamarin project. ```bash -Install-Package mParticle.Xamarin -Version 2.0.3 +Install-Package mParticle.Xamarin -Version 2.0.12 ``` ### mParticle Singleton @@ -28,22 +28,23 @@ namespace MyProject { void Example () { - //use the correct workspace API key and secret for iOS and Android - string apiKey = ""; - string apiSecret = ""; - #if __ANDROID__ - apiKey = "REPLACE ME ANDROID KEY", ; - apiSecret = "REPLACE ME ANDROID SECRET" - #elif __IOS__ - apiKey = "REPLACE ME IOS KEY", ; - apiSecret = "REPLACE ME IOS SECRET" - #endif - - new MParticleSDK().Initialize(new MParticleOptions() - { - ApiKey = apiKey, - ApiSecret = apiSecret - }); + //use the correct workspace API key and secret for iOS and Android + string apiKey = ""; + string apiSecret = ""; + #if __ANDROID__ + apiKey = "REPLACE ME ANDROID KEY", ; + apiSecret = "REPLACE ME ANDROID SECRET" + #elif __IOS__ + apiKey = "REPLACE ME IOS KEY", ; + apiSecret = "REPLACE ME IOS SECRET" + #endif + + new MParticleSDK().Initialize(new MParticleOptions() + { + ApiKey = apiKey, + ApiSecret = apiSecret + }); + } } } ```