- Some notes about this approach:
- An OSX Installer USB drive for
Install OS X El Capitanis created - Clover is then installed on the USB drive
- Clover Configurator is then run on the USB drive
- The USB drive contents are copied to the VM host
- VNC is used to connect to the guest UI
- An OSX Installer USB drive for
- The qxl virtual video device is used (part of the standard kvm qemu install)
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
| 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
| 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
| 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
| /* | |
| * Simple page indicator for scrollableViews for Appcelerator Titanium (Android). | |
| * To be added after the views have been set. | |
| * | |
| * var p = require('page.indicator'); | |
| * var options = { color: 'red' }; | |
| * var indicator = p.pageIndicator(myScrollableView, options); | |
| */ | |
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.DynamicLib | |
| * @abstract Support embedded binaries (aka dynamic libraries) in Titanium modules and Hyperloop. | |
| * @version 1.1.0 | |
| * | |
| * Install: | |
| * 1) Search and replace '../../src/<YourFramework>.framework' with your framework location. | |
| The path is relative to the `build/iphone` directory. | |
| * 2a) For classic modules: | |
| * - Add 'LD_RUNPATH_SEARCH_PATHS=$(inherited) "@executable_path/Frameworks" $(FRAMEWORK_SEARCH_PATHS)' |
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 | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |
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 win1 = Titanium.UI.createWindow({ | |
| title:'Tab 1', | |
| backgroundColor:'#fff', | |
| layout: 'vertical' | |
| }); | |
| var bt1 = Ti.UI.createButton({title: 'send message (method 1)', top: 200}); | |
| bt1.addEventListener('click', function(e) |