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
#!/bin/sh | |
function ios-sim-inspector() { | |
appName="$1" | |
osascript <<EOF | |
# Name of the device as visible in Safari->Develop menu | |
set deviceName to "Simulator" | |
# Number of seconds to wait for the simulator window to show up | |
set maxWait to 20 |
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
const SFAuthenticationSession = require('SafariServices/SFAuthenticationSession'); | |
const NSURL = require('Foundation/NSURL'); | |
const session = SFAuthenticationSession.alloc().initWithURLCallbackURLSchemeCompletionHandler( | |
NSURL.alloc().initWithString('https://github.com/login/oauth/authorize?scope=repo&client_id=XXXXX'), | |
'appcgithub://', | |
function(url, error) { | |
if (error != null) { | |
Ti.API.error('Error performing OAuth: ' + error.localizedDescription); | |
cb({ success: false, error: 'Error performing OAuth: ' + error.localizedDescription }); |
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
module.exports = { | |
hyperloop: { | |
ios: { | |
xcodebuild: { | |
frameworks: [ | |
'iAd' | |
] | |
} | |
} | |
} |
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
var CLBeaconRegion = require("CoreLocation/CLBeaconRegion"), | |
NSUUID = require("Foundation/NSUUID"), | |
CLLocationManager = require("CoreLocation/CLLocationManager"), | |
CLProximityFar = require("CoreLocation").CLProximityFar, | |
CLProximityNear = require("CoreLocation").CLProximityNear, | |
CLProximityImmediate = require("CoreLocation").CLProximityImmediate, | |
CLProximityUnknown = require("CoreLocation").CLProximityUnknown, | |
UILocalNotification = require("UIKit/UILocalNotification"), | |
UIApplication = require("UIKit/UIApplication"), | |
locationManager; |
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
var AVAudioEngine = require('AVFoundation/AVAudioEngine'); | |
var AVAudioPlayerNode = require('AVFoundation/AVAudioPlayerNode'); | |
var AVAudioFile = require('AVFoundation/AVAudioFile'); | |
var NSBundle = require('Foundation/NSBundle'); | |
var win = Ti.UI.createWindow({ | |
backgroundColor: '#fff' | |
}); | |
var btn = Ti.UI.createButton({ |
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 strict'; | |
/** | |
* Android sample showing speech recognition using Hyperloop. | |
* | |
* @version Titanium 6.1.2.GA | |
* @version Alloy 1.9.13 | |
* @version Hyperloop 2.1.3 | |
*/ |
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
var Hyperloop = require('hyperloop'); | |
var UIView = require('UIView'); | |
var CGRect = require('CGRect'); | |
var CGPoint = require('CGPoint'); | |
var UIColor = require('UIColor'); | |
var UIBezierPath = require('UIBezierPath'); | |
function DEGREES_TO_RADIANS(angle) { return (Number(angle) / 180.0 * Math.PI) }; | |
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
var FBSDKShareLinkContent = require("FBSDKShareKit/FBSDKShareLinkContent"), | |
FBSDKShareDialog = require("FBSDKShareKit/FBSDKShareDialog"), | |
NSURL = require("Foundation/NSURL"); | |
var win = Ti.UI.createWindow({ | |
backgroundColor: "#fff" | |
}); | |
var btn = Ti.UI.createButton({ | |
title: "Trigger Share Dialog" |
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
/** | |
* Ti.TouchID | |
* | |
* Summary: Support native Touch ID with Hyperloop in Titanium Mobile. | |
* Author: Hans Knoechel | Appcelerator, Inc | |
* Date: 03/22/2016 | |
* Version: 0.1.0 | |
* Example | |
* | |
* var touchID = require("ti.touchid"); |