- A user needs to supply their device UDID (http://whatsmyudid.com/)
- Log into iOS developer centre (https://developer.apple.com/devcenter/ios/index.action)
- Click on Certificates, Identifiers & Profiles
- Click on Devices
- Click add
- Add the device UUID
- Click on Distribution under Provisioning Profiles
- Click on Beta testing (assuming that's what you called it)
- Click Edit
- Tick all the devices that you want to be allowed for Over The Air
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
<system.webServer> | |
<httpErrors errorMode="Custom" existingResponse="Replace" xdt:Transform="Insert"> | |
<remove statusCode="404" /> | |
<error statusCode="404" path="/error/404" responseMode="ExecuteURL" /> | |
<remove statusCode="500" /> | |
<error statusCode="500" path="/error/500" responseMode="ExecuteURL" /> | |
<remove statusCode="403" /> | |
<error statusCode="403" path="/error/403" responseMode="ExecuteURL" /> | |
</httpErrors> | |
</system.webServer> |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Task.WaitAll(new[] {DoStuff()}); | |
} | |
private static async Task DoStuff() | |
{ | |
var client = new DocumentClient(new Uri("https://<documentdbtenant>.documents.azure.com:443/"), |
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
# Originally from http://poshcode.org/3819 | |
function Add-ToHostsFile { | |
<# | |
.DESCRIPTION | |
This function checks to see if an entry exists in the hosts file. | |
If it does not, it attempts to add it and verifies the entry. | |
.EXAMPLE | |
Add-ToHostsFile -IPAddress 192.168.0.1 -HostName MyMachine |
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
# Run this in an elevated PowerShell prompt | |
<# This script worked on a fresh Windows Server 2012 VM in Azure and the following were the latest versions of each package at the time: | |
* Chocolatey 0.9.8.27 | |
* java.jdk 7.0.60.1 | |
* apache.ant 1.8.4 | |
* android-sdk 22.6.2 | |
* cordova 3.5.0-0.2.6 | |
* nodejs.install 0.10.29 | |
#> | |
# Note: there is one bit that requires user input (accepting the Android SDK license terms) |
The following files were included in a NuGet package that we used OctopusDeploy to deploy an iOS over-the-air .ipa
file and also build a Cordova/PhoneGap app using the PhoneGapBuild API:
Deploy.ps1
- as per belowapp.zip
- zip of theconfig.xml
andwww
directories of the Cordova/PhoneGap projectnode
directorynode.exe
pgb.js
- as per https://gist.github.com/robdmoore/c09cb5f8aa7682f195c1pgb-wrapper.js
- as per https://gist.github.com/robdmoore/c09cb5f8aa7682f195c1node_modules
- all the dependencies as per https://gist.github.com/robdmoore/c09cb5f8aa7682f195c1
Microsoft.Data.Services.Client.dll
- From NuGet
The _'s in the file names are representative of a folder path.
The following is the console output of how these files were generated:
C:\Windows\system32>cordova -v
3.5.0-0.2.6
C:\Windows\system32>phonegap -v
3.5.0-0.20.7
pgb-wrapper.js
is a generic wrapper module around the phonegap-build-api NodeJS package to add promise support and some helpful functions to make it easier to create a build script.
pgb.example.js
is one example of such a build script, but you might decide to do it differently.
You can execute pgb.example.js
by:
node pgb.example.js --appId {PGB_APP_ID} --apiKey {PGB_API_KEY} --zipFile {path/to/deployment_file.zip} --iosOverTheAirKey {NAME_OF_IOS_OVER_THE_AIR_KEY_IN_PGB} --iosOverTheAirKeyPassword {PASSWORD_OF_IOS_OVER_THE_AIR_KEY_IN_PGB} --iosKey {NAME_OF_IOS_PRODUCTION_KEY_IN_PGB} --iosKeyPassword {PASSWORD_OF_IOS_PRODUCTION_KEY_IN_PGB} --androidKey {NAME_OF_ANDROID_PRODUCTION_KEY_IN_PGB} --androidKeyPassword {PASSWORD_OF_ANDROID_PRODUCTION_KEY_IN_PGB}
The following node packages need to be installed for it all to work:
- phonegap-build-api
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
$scriptpath = $(Split-Path $MyInvocation.MyCommand.Path) | |
cd $scriptpath | |
if (-not (ls *.publishsettings | Test-Any)) { | |
Write-Warning "Please save a .publishsettings file to this folder" | |
start . | |
Get-AzurePublishSettingsFile | |
exit 1 | |
} |
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
public abstract class Specification | |
{ | |
[Test] | |
public virtual void Run() | |
{ | |
this.BDDfy(); | |
} | |
[Fact] | |
public void RunX() |