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
#!/usr/bin/env node | |
// It changes version code before making build. | |
// You can see this link, on how I signed my apk using hooks. (https://gist.github.com/yawarsohail/1b2998d5cd860e01193cec86f6329223) | |
// Added below lines in script part of package.json to make build easy. (I think its prety easy, no need for description). | |
// "release": "TARGET=ii ionic build ios --device --release && TARGET=aa ionic build --release android", | |
// "release-a": "TARGET=a ionic build --release android", | |
// "release-i": "TARGET=i ionic build ios --device --release" | |
// | |
// Save hook under `project-root/scripts` |
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
#!/usr/bin/env node | |
// This hook will do alot of things, you can take what you want and delete un necessary things. | |
// It pushes code to git, with version name as branch. | |
// It adds i and a in branch name to define android and ios. | |
// It renames the final IPA file with version code. | |
// It renames the final signed apk file with version code. | |
// Hook to increment build number before making build. (https://gist.github.com/yawarsohail/b8d7762e4617a20b6f66fcffe6599920) | |
// You can see this link, on how I signed my apk using hooks. (https://gist.github.com/yawarsohail/1b2998d5cd860e01193cec86f6329223) | |
// Added below lines in script part of package.json to make build easy. (I think its prety easy, no need for description). |
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
#!/usr/bin/env node | |
// This hook will copy keystore and its properties file in android | |
// platform directory when ever android platform is added. | |
// | |
// Save hook under `project-root/scripts` | |
// | |
// Don't forget to install xml2js using npm if it is not already installed. | |
// `$ npm install xml2js` |
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
/* | |
* Copyright 2013 Simple Finance Corporation. All rights reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
using System; | |
namespace Epoch | |
{ | |
public class Epoch | |
{ | |
static readonly DateTime epochStart = new DateTime(1970, 1, 1, 0, 0, 0); | |
static readonly DateTimeOffset epochDateTimeOffset = new DateTimeOffset(1970, 1, 1, 0, 0, 0, TimeSpan.Zero); | |