Results 1 to 2 of 2

Thread: Sencha Cmd v3.1.2 and Sench Touch v2.1.1 : empty app.json

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Paris
    Posts
    116

    Default Sencha Cmd v3.1.2 and Sench Touch v2.1.1 : empty app.json

    Hello all,

    I used to work with sdk and touch v2.0.
    I've updated all by building a new app with sencha cmd and copiying stuff.
    The webapp mode works great.

    But when building my app, the app.js is always empty (containing only the "id" or some comments from the original.

    Does someone knows where it could come from ?


    RESULT : app.js
    Code:
    /*    This file is generated and updated by Sencha Cmd. You can edit this file as
        needed for your application, but these edits will have to be merged by
        Sencha Cmd when it performs code generation tasks such as generating new
        models, controllers or views and when running "sencha app upgrade".
    
    
        Ideally changes to this file would be limited and most work would be done
        in other places (such as Controllers). If Sencha Cmd cannot merge your
        changes and its generated code, it will produce a "merge conflict" that you
        will need to resolve manually.
    */
    
    
    // DO NOT DELETE - this directive is required for Sencha Cmd packages to work.
    //@require @packageOverrides
    
    
    // //<debug>
    // Ext.Loader.setPath({
    //     'Ext': '../src'
    // });
    // //</debug>
    SOURCE : app.json
    Code:
    {
        /**
         * The application's namespace, used by Sencha Command to generate classes
         */
        "name": "QTouch",
    
    
        /**
         * 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": "xxxx",
    
    
    
    
        /**
         * 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
         *          "x-bootstrap": true         // (Optional)
         *                                      // Indicates a development mode only dependency.  
         *                                      // These files will not be copied into the build directory or referenced
         *                                      // in the generate app.json manifest for the micro loader.
         *
         *      }
         */
        "js": [
            {
                "path": "../sencha-touch.js"
            },{
                "path": "app.js",
                "bundle": true,  /* Indicates that all class dependencies are concatenated into this file when build */
                "update": "full"
            }
        ],
    
    
        /**
         * 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": "full"
            }
        ],
    
    
        /**
         * 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",
    
    
        /**
         * List of package names to require for the cmd build process
         */
        "requires": [],
    
    
        /**
         * Uniquely generated id for this application, used as prefix for localStorage keys.
         * Normally you should never change this value.
         */
        "id": "xxx"
    }
    SOURCE : packager.json
    Code:
    {
    	/**
    	 * @cfg  applicationName
    	 * @required
    	 * 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":"QTouch.",
    
    
    	/**
    	 * @cfg  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.xxx.touch",
    
    
    	/**
    	 * @cfg  bundleSeedId
    	 * A ten character string which stands before aplication ID in Apple Provisioning Portal
    	 */
    	"bundleSeedId":"KPXFEPZ6EF",
    
    
    	/**
    	 * @cfg  versionString
    	 * @required
    	 * This is the version of your application.
    	 */
    	"versionString":"1.0",
    
    
    	/**
    	 * @cfg  versionCode
    	 * @required
    	 * 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  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
    	 * iOS uses 57, 72, 114 and 144; Android uses 36, 48 and 72; if you package for Android you can ignore iOS icons and vice verca
    	 */
    	"icon": {
    		"36":"resources/icons/Icon_Android36.png",
    		"48":"resources/icons/Icon_Android48.png",
    		"57":"resources/icons/Icon.png",
    		"72":"resources/icons/Icon~ipad.png",
    		"114":"resources/icons/[email protected]",
    		"144":"resources/icons/[email protected]"
    	},
    
    
    	/**
    	 * @cfg  inputPath
    	 * @required
    	 * This is location of your Sencha Touch 2 application, relative to this configuration file.
    	 */
    	"inputPath":"./",
    
    
    	/**
    	 * @cfg  outputPath
    	 * @required
    	 * 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  configuration
    	 * @required
    	 * 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  platform
    	 * @required
    	 * This is the platform where you will be running your application. Available options are:
    	 *  - iOSSimulator
    	 *  - iOS
    	 *  - Android
    	 *  - AndroidEmulator
    	 */
    	"platform":"iOSSimulator",
    
    
    	/**
    	 * @cfg  deviceType
    	 * @required
    	 * 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  certificatePath
    	 * This is the location of your certificate.
    	 * This is required when you are developing for Android or you are developing on Windows.
    	 */
    	"certificatePath":"/path/to/certificate.file",
    
    
    	/**
    	 * @cfg  certificateAlias
    	 * This is the name of your certificate.
    	 *
    	 * IF you do not specify this on OSX, we will try and automatically find the certificate for you using the applicationId.
    	 *
    	 * This can be just a simple matcher. For example, if your certificate name is "iPhone Developer: Robert Dougan (ABCDEFGHIJ)", you
    	 * can just put "iPhone Developer".
    	 *
    	 * When using a certificatePath on Windows, you do not need to specify this.
    	 */
    	"certificateAlias":"",
    	/**
    	 * @cfg  certificatePassword
    	 * The password which was specified during certificate export
    	 */
    	"certificatePassword":"",
    	/**
    	 * @cfg  provisionProfile
    	 * The path to the provision profile (APP_NAME.mobileprovision) which you can create and then download from Apple's provisioning portal
    	 */
    	"provisionProfile":"",
    	/**
    	 * @cfg  notificationConfiguration
    	 * Notification configuration for push notifications, can be "debug", "release" or empty if you don't use push notifications in your project.
    	 */
    	"notificationConfiguration":"",
    	/**
    	 * @cfg  sdkPath
    	 * This is the path to the Android SDK, if you are developing an Android application.
    	 */
    	"sdkPath":"/path/to/android-sdk",
    
    
    	/**
    	 * @cfg  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":"12",
    
    
            /**
    	 * @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
    	 * @required
    	 * This is orientations that this application can run.
    	 */
    	"orientations": [
    		"portrait"
    		// "landscapeLeft",
    		// "landscapeRight",
    		// "portraitUpsideDown"
    	]
    }

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    What all did you copy over?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •