⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
settings: { | |
releaseNotes: grunt.option('notes') || 'CI build', | |
appName: 'Flashlight', | |
ppUuid: '0253600x-ac6d-35b6-b66d-dd25c4fd956f', | |
installrAppToken: '6xC0I8SdJA76kW3pqq7GFZLIyq6fBP4Z' | |
}, |
# Version: 0.0.022 | |
# Please note: This has only been tested on Sublime Text 3 Build 3065 | |
# Installation: | |
# 1. Click "Download Gist" | |
# 2. Put alloy.py in: ~/Library/Application Support/Sublime Text 3/Packages/User/ | |
# 3. Set your layout to Grid 4 - Go to view > layout > Grid: 4 | |
# 4. Add to the bliss of working with Alloy... |
titanium build -p mobileweb && ((sleep 5 && open -a "/Applications/Google Chrome.app" "http://127.0.0.1:8090/index.html") &) && (cd ./build/mobileweb && python -m SimpleHTTPServer 8090) |
<?xml version="1.0" ?><manifest android:versionCode="1" android:versionName="1" package="com.appcelerator.holotheme" xmlns:android="http://schemas.android.com/apk/res/android"> | |
<uses-sdk android:minSdkVersion="8"/> | |
<uses-sdk android:targetSdkVersion="14"/> | |
<!-- TI_MANIFEST --> | |
<application android:debuggable="false" android:icon="@drawable/appicon" android:label="HoloTheme" android:name="HolothemeApplication" android:theme="@android:style/Theme.Holo.Light"> | |
<!-- TI_APPLICATION --> |
/** | |
* Courtesy of Jeff Bonnes | |
* http://www.titaniumdevelopment.com.au/blog/2011/09/12/debugging-ipad-performance-and-memory-usage/ | |
*/ | |
/** | |
* Modified to a commonJS format by Stephen Feather | |
* Usage: | |
* var Tracer = require('/lib/tracer'); |
#Overview - setting up our git workflow
This set-up works for our team as we don't mind pushing directly to a development
branch, but this wouldn't work for other companies as the development branch could potentially get broken fairly quickly and with multiple developers working on this singular branch would be awkward to locate issues and fix - but for a small team this seems to work fine.
##Initial User Set-Up The first developer to work on the new project will go through this process:
-
<github>
Create repository on GitHub company account -
``
Titanium Android Modules | |
-------------------------------------- | |
- https://github.com/dbankier/TiKeyguard-Android | |
Appcelerator/Titanium module to unlock and power on an Android device. | |
- https://github.com/dbankier/TiSIPClient-Android | |
SIP/VoIP for Appcelerator's Titanium (Android) | |
- https://github.com/3ign0n/TiOpenStreetMap |
(The command examples assume OS X).
Just about everything that happens when you enter scons
is for Android. So anything you can do to speed up the Android part of our build will be useful.
-
Android NDK r7 can use ccache. We get huge improvements in build time with it. So install it (if you have HomeBrew,
brew install ccache
) then set a shell variableNDK_CCACHE
to point to it. I.e., for me, having installed it withbrew
, it would beexport NDK_CCACHE=/usr/local/bin/ccache
. -
NDK can also parallelize while compiling. Set a shell variable
NUM_CPUS
to (according to Opie) 2x the number of cores in your machine. A quick way to get the # cores on your machine in OS X issystem_profiler | grep "Number Of Cores"
in terminal. I have 2 cores, so my shell var setting isexport NUM_CPUS=4
.