Skip to content

Instantly share code, notes, and snippets.

@wtuts
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtuts/cbcf74145c9b814c6a32 to your computer and use it in GitHub Desktop.
Save wtuts/cbcf74145c9b814c6a32 to your computer and use it in GitHub Desktop.
Trial version experience
//This function is for changing the license of app from full version to trial while the app is in debug state.
//Debug state means that app has not been launched in the marketplace and is still under construction
private void Changelicense()
{
#if DEBUG
//Change the variable accordingly
//if you want to implement trial functionality
_isTrial = true;
//else change it to false if you want to test this app in full version
#else
//otherwise when app is in the market
//it will take the original value from the marketplace
_isTrial = _licenseInfo.IsTrial();
#endif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment