Last active
August 29, 2015 14:02
-
-
Save wtuts/cbcf74145c9b814c6a32 to your computer and use it in GitHub Desktop.
Trial version experience
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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