Last active
February 5, 2020 17:56
-
-
Save robotsquidward/72efdd9970d25da46d81007ce33a553b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /** | |
| * Use the number of seconds/10 since Jan 2020 as the versionCode. | |
| * This lets us upload a new build at most every 10 seconds for the | |
| * next 680 years. https://stackoverflow.com/a/38643838/1799007 | |
| */ | |
| def generatedVersionCode = (int)(((new Date().getTime()/1000) - 1580319970) / 10) | |
| **/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment