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
function base64url(source) { | |
// Encode in classical base64 | |
encodedSource = CryptoJS.enc.Base64.stringify(source); | |
// Remove padding equal characters | |
encodedSource = encodedSource.replace(/=+$/, ''); | |
// Replace characters according to base64url specifications | |
encodedSource = encodedSource.replace(/\+/g, '-'); | |
encodedSource = encodedSource.replace(/\//g, '_'); |
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
require 'rubygems' | |
require 'rest_client' | |
# Replace with your values | |
APP_ID = "APP_ID" # e.g 7eae8eb55e8b6d5d1cbe603ed40ebfda | |
APP_NAME = "EXECUTABLE_NAME" # e.g. myapp | |
BUNDLE_ID = "BUNDLE_IDENTIFIER" # e.g. com.company.myapp | |
BUNDLE_VERSION = "BUNDLE_VERSION" # e.g. 112 | |
APP_VERSION = "APP_VERSION" # e.g. 1.1 | |
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 script automatically sets the version and short version string of | |
# an Xcode project from parameters of the Git repository containing your project. | |
# | |
# - Uses version from latest git tag for CFBundleShortVersionString | |
# (e.g. 1.2.3 from "v1.2.3") | |
# - Uses combined string <commit number>.<short commit hash> for CFBundleVersion | |
# (e.g. 18.9d75e30) | |
# - Use combined string <commit number> for CFBundleVersion (e.g. 189) for "Release" config | |
# (Apple requires this value to be a monotonically increasing integer) | |
# |
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
#!/bin/bash | |
# This script automatically sets the version and short version string of | |
# an Xcode project from the Git repository containing the project. | |
# | |
# - Uses version from latest git tag for CFBundleShortVersionString | |
# (e.g. 1.2.3 from "v1.2.3") | |
# - Uses combined string <commit number>.<short commit hash> for CFBundleVersion | |
# (e.g. 18.9d75e30) | |
# |