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
{ | |
"aps": { | |
"alert": { | |
"body": "Sending Game", | |
"title": "Optional title" | |
}, | |
"category": "myCategory" | |
}, | |
"WatchKit Simulator Actions": [ |
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
// | |
// TableRowController.swift | |
// Hackaball WatchKit Extension | |
// | |
// Created by Julian James on 01/05/2015. | |
// Copyright (c) 2015 Made by Many. All rights reserved. | |
// | |
import WatchKit | |
import Foundation |
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
// | |
// GlanceController.swift | |
// Hackaball WatchKit Extension | |
// | |
// Created by Julian James on 29/04/2015. | |
// Copyright (c) 2015 Made by Many. All rights reserved. | |
// | |
import WatchKit | |
import Foundation |
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
// | |
// NotificationController.swift | |
// Hackaball WatchKit Extension | |
// | |
// Created by Julian James on 29/04/2015. | |
// Copyright (c) 2015 Made by Many. All rights reserved. | |
// | |
import WatchKit | |
import Foundation |
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
// | |
// InterfaceController.swift | |
// Hackaball WatchKit Extension | |
// | |
// Created by Julian James on 29/04/2015. | |
// Copyright (c) 2015 Made by Many. All rights reserved. | |
// | |
import WatchKit | |
import Foundation |
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
- (void)application:(UIApplication *)application handleWatchKitExtensionRequest: | |
(NSDictionary *)userInfo reply:(void(^)(NSDictionary *replyInfo))reply { | |
__block UIBackgroundTaskIdentifier bgTask; | |
bgTask = [application beginBackgroundTaskWithName:@"MyTask" expirationHandler:^{ | |
[application endBackgroundTask:bgTask]; | |
bgTask = UIBackgroundTaskInvalid; | |
}]; | |
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
// Playground - noun: a place where people can play | |
import UIKit | |
for i in 1...5 { | |
for var value = 0.0; value < M_PI * 2; value += 0.1 { | |
var y = sin(value) | |
} |
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
instruments -w device_UDID -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate" "Tasky iOS" -e UIASCRIPT "${PROJECT_DIR}/simpletest.js" -e UIARESULTSPATH /tmp | grep "Error" > /tmp/ui_errors.txt | |
filesize=$(stat -f "%z" /tmp/ui_errors.txt) | |
rm -rf /tmp/Run* | |
if [ $filesize = "0" ]; then | |
echo | |
echo "UIAutomation passed" |
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
curl \ | |
-F "status=2" \ | |
-F "notify=1" \ | |
-F "notes=${commitsString}" \ | |
-F "notes_type=0" \ | |
-F "ipa=@/tmp/Tasky.ipa" \ | |
-H "X-HockeyAppToken: company_id_token" \ | |
https://rink.hockeyapp.net/api/2/apps/app_id/app_versions/upload |
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
rm /tmp/Tasky.ipa | |
/usr/bin/xcrun -sdk iphoneos PackageApplication "${APP}" -o /tmp/Tasky.ipa |
NewerOlder