How many times have you said "when was this app built" or "which version affects this bug"? Forget those, from now on just strongly shake your device and we'll show you when the app was built. That simple.
With Xamarin.Forms in mind, it also works on classical Xamarin.Android or Xamarin.iOS projects which share a common library.
How to use it
Just four easy steps:
AssemblyVersion Build and Revision numbers. Double check your AssemblyInfo.cs —it's usually placed here— contains the following line:
Add DevsDNA.WhenTheAppWasBuilt NuGet to both your PCL and platform projects;
In your Android's
MainActivityclass, add the following line just after Xamarin.Forms init. —pass whatever
Typelocated at your core project (as the main
Appfor instance), since such provides the actual date:
global::Xamarin.Forms.Forms.Init(this, bundle); // This line! DevsDNA.WhenTheAppWasBuilt.TellMeWhenShaking(typeof(WhenTheAppWasBuiltExample.App));
- The same goes for iOS'
global::Xamarin.Forms.Forms.Init(); // And this other one! DevsDNA.WhenTheAppWasBuilt.TellMeWhenShaking(typeof(WhenTheAppWasBuiltExample.App));
- Strongly shake your devices!
Ahead-of-shake (AOS) support
You don't have to force customers to shake their devices if don't want to, simply call
from wherever you want.
Pst! Have a look to the Examples folder to quickly see it running!