Skip to content

Commit

Permalink
Prepare to run through Sencha Cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Conran committed Nov 6, 2012
1 parent 68c03e0 commit 32885cc
Show file tree
Hide file tree
Showing 32 changed files with 11,693 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .sencha/workspace/sencha.cfg
@@ -0,0 +1,11 @@
#Mon, 05 Nov 2012 17:08:44 -0800
# This configuration property (if set) is included by default in all compile commands
# executed according to this formulation:
#
# sencha compile -classpath=...,${framework.classpath},${workspace.classpath},${app.classpath}
#
#workspace.classpath=
workspace.build.dir=${workspace.dir}/build/${app.name}

touch.dir=${workspace.dir}/touch
workspace.cmd.version=3.0.0.230
13 changes: 11 additions & 2 deletions NativeContacts.xds
Expand Up @@ -4,7 +4,7 @@
"urlPrefix": "http://localhost/NativeContacts/",
"spacesToIndent": 4,
"exportPath": "",
"sdkPath": "",
"sdkPath": "/Users/aconran/Sites/releases/sencha-touch-2.1.0",
"lineEnding": "LF",
"genTimestamps": false,
"cacheBust": false,
Expand Down Expand Up @@ -105,6 +105,14 @@
"metadata/resource/Library"
],
"className": "Library"
},
"ab0185ab-ce77-45f4-baf3-ac9f5f753ffe": {
"paths": [
"metadata/resource/PackageSettings",
"",
"PackageSettings.json"
],
"className": "PackageSettings"
}
},
"viewOrderMap": {
Expand All @@ -127,7 +135,8 @@
],
"resource": [
"f81dd17b-02a8-4071-9594-4730c3b71ef7",
"83d5f462-ac48-477a-8b82-5867e132986d"
"83d5f462-ac48-477a-8b82-5867e132986d",
"ab0185ab-ce77-45f4-baf3-ac9f5f753ffe"
],
"app": [
"application"
Expand Down
129 changes: 129 additions & 0 deletions PackageSettings.json
@@ -0,0 +1,129 @@
{

/**
* @cfg {String} applicationName
*
* This is the name of your application, which is displayed on the device when the app is installed. On IOS, this should match
* the name of your application in the Apple Provisioning Portal.
*/
"applicationName": "NativeContacts",

/**
* @cfg {String} applicationId
*
* This is the name namespace for your application. On IOS, this should match the name of your application in the Apple Provisioning Portal.
*/
"applicationId": "com.mycompany.myAppID",

/**
* @cfg {String} versionString
*
* This is the version of your application.
*/
"versionString": "1.0",

/**
* @cfg {String} versionCode
*
* This is the integer version code of your application, or you can refer to it as a build number. Used only for Android builds.
*/
"versionCode": 1,

/**
* @cfg {Object} icon
*
* For iOS, please refer to their documentation about icon sizes:
* https://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html
*
* For Android, please refer to the Google Launcher icons guide:
* http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html
*/
"icon": {
"57": "resources/icons/Icon.png",
"72": "resources/icons/Icon~ipad.png",
"114": "resources/icons/Icon@2x.png",
"144": "resources/icons/Icon~ipad@2x.png"
},

/**
* @cfg {String} inputPath
*
* This is location of your Sencha Touch 2 application, relative to this configuration file.
*/
"inputPath": "./",

/**
* @cfg {String} outputPath
*
* This is where the built application file with be saved. Make sure that output path is not in your input path, you may get into endless recursive copying
*/
"outputPath": "../build/",

/**
* @cfg {String} configuration
*
* This is configuration for your application. `Debug` should always be used unless you are submitting your app to an online
* store - in which case `Release` should be specified.
*/
"configuration": "Debug",

/**
* @cfg {String} platform
*
* This is the platform where you will be running your application.
* Available options are:
* - iOSSimulator
* - iOS
* - Android
* - AndroidEmulator
*/
"platform": "iOSSimulator",

/**
* @cfg {String} deviceType
*
* This is device type that your application will be running on.
* If you are developing for Android, this is not necessary.
* Available options are:
* - iPhone
* - iPad
* - Universal
*/
"deviceType": "Universal",

/**
* @cfg {String} androidAPILevel
*
* This is android API level, the version of Android SDK to use, you can read more about it here: http://developer.android.com/guide/appendix/api-levels.html.
* Be sure to install corresponding platform API in android SDK manager (android_sdk/tools/android)
*/
"androidAPILevel": "8",

/**
* @cfg {Array[String]} permissions
*
* Array of permissions that is used by an application (Android only)
* Full list of permissions for Android application can be found here: http://developer.android.com/reference/android/Manifest.permission.html#ACCESS_CHECKIN_PROPERTIES
*/
"permissions": [
"INTERNET",
"ACCESS_NETWORK_STATE",
"CAMERA",
"VIBRATE",
"ACCESS_FINE_LOCATION",
"ACCESS_COARSE_LOCATION",
"CALL_PHONE"
],

/**
* @cfg {Array[String]} orientations
*
* This is orientations that this application can run.
*/
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}
140 changes: 140 additions & 0 deletions app.json
@@ -0,0 +1,140 @@
{
/**
* The application's namespace, used by Sencha Command to generate classes
*/
"name": "NativeContacts",

/**
* The file path to this application's front HTML document, relative to this app.json file
*/
"indexHtmlPath": "index.html",

/**
* The absolute URL to this application in development environment, i.e: the URL to run this application
* on your web browser during development, e.g: "http://localhost/myapp/index.html".
*
* This value is needed when build to resolve your application's dependencies if it requires server-side resources
* that are not accessible via file system protocol.
*/
"url": null,

/**
* List of all JavaScript assets in the right execution order.
* Each item is an object with the following format:
* {
* "path": "path/to/script.js" // Path to file, if local file it must be relative to this app.json file
* "remote": true // (Optional)
* // - Defaults to undefined (falsey) to signal a local file which will be copied
* // - Specify true if this file is a remote file which will not to be copied
* "update": "delta" // (Optional)
* // - If not specified, this file will only be loaded once, and
* // cached inside localStorage until this value is changed.
* // - "delta" to enable over-the-air delta update for this file
* // - "full" means full update will be made when this file changes
*
* }
*/
"js": [
{
"path": "touch/sencha-touch.js"
},
{
"path": "app.js",
"bundle": true, /* Indicates that all class dependencies are concatenated into this file when build */
"update": "delta"
}
],

/**
* List of all CSS assets in the right inclusion order.
* Each item is an object with the following format:
* {
* "path": "path/to/item.css" // Path to file, if local file it must be relative to this app.json file
* "remote": true // (Optional)
* // - Defaults to undefined (falsey) to signal a local file which will be copied
* // - Specify true if this file is a remote file which will not to be copied
* "update": "delta" // (Optional)
* // - If not specified, this file will only be loaded once, and
* // cached inside localStorage until this value is changed to either one below
* // - "delta" to enable over-the-air delta update for this file
* // - "full" means full update will be made when this file changes
*
* }
*/
"css": [
{
"path": "resources/css/app.css",
"update": "delta"
}
],

/**
* Used to automatically generate cache.manifest (HTML 5 application cache manifest) file when you build
*/
"appCache": {
/**
* List of items in the CACHE MANIFEST section
*/
"cache": [
"index.html"
],
/**
* List of items in the NETWORK section
*/
"network": [
"*"
],
/**
* List of items in the FALLBACK section
*/
"fallback": []
},

/**
* Extra resources to be copied along when build
*/
"resources": [
"resources/images",
"resources/icons",
"resources/startup"
],

/**
* File / directory name matchers to ignore when copying to the builds, must be valid regular expressions
*/
"ignore": [
"\.svn$"
],

/**
* Directory path to store all previous production builds. Note that the content generated inside this directory
* must be kept intact for proper generation of deltas between updates
*/
"archivePath": "archive",

/**
* Default paths to build this application to for each environment
*/
"buildPaths": {
"testing": "build/testing",
"production": "build/production",
"package": "build/package",
"native": "build/native"
},

/**
* Build options
*/
"buildOptions": {
"product": "touch",
"minVersion": 3,
"debug": false,
"logger": false
},

/**
* Uniquely generated id for this application, used as prefix for localStorage keys.
* Normally you should never change this value.
*/
"id": "0ea0d2d0-bde5-4553-81f1-459c59645fb9"
}
32 changes: 32 additions & 0 deletions build.xml
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<project name="@@@" default=".help">
<import file="${basedir}/.sencha/app/build-impl.xml"/>

<!--
The following targets can be provided to inject logic before and/or after key steps
of the build process:
The "init-local" target is used to initialize properties that may be personalized
for the local machine.
<target name="-before-init-local"/>
<target name="-after-init-local"/>
The "clean" target is used to clean build output from the build.dir.
<target name="-before-clean"/>
<target name="-after-clean"/>
The general "init" target is used to initialize all other properties, including
those provided by Sencha Cmd.
<target name="-before-init"/>
<target name="-after-init"/>
The "build" target performs the call to Sencha Cmd to build the application.
<target name="-before-build"/>
<target name="-after-build"/>
-->

</project>
5 changes: 3 additions & 2 deletions index.html
Expand Up @@ -6,8 +6,9 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>NativeContacts</title>
<link rel="stylesheet" type="text/css" href="http://localhost/releases/sencha-touch-2.0.0-commercial/resources/css/sencha-touch.css"/>
<script type="text/javascript" src="http://localhost/releases/sencha-touch-2.0.0-commercial/sencha-touch-all-debug.js"></script>
<script src="http://extjs.cachefly.net/touch/sencha-touch-2.1.0/sencha-touch-all-debug.js"></script>
<link rel="stylesheet" href="http://extjs.cachefly.net/touch/sencha-touch-2.1.0/resources/css/sencha-touch.css">
<link rel="stylesheet" href="resources/css/contacts.css">
<script type="text/javascript" src="app.js"></script>
<script type="text/javascript">
if (!Ext.browser.is.WebKit) {
Expand Down

0 comments on commit 32885cc

Please sign in to comment.