Results 1 to 2 of 2

Thread: App Profiles

  1. #1

    Join Date
    Sep 2010
    Nashville, TN

    Default App Profiles

    I'm migrating an Ext4.x app to 6. I also have a Sencha Touch 2.4.1 application that will be combined to make one big happy (hopefully) universal application. What I seem to be missing from the documentation is how the app profiles should really be working. It seems to me the ideal way to handle this would be to have profiles, and then sub profiles. e.g.

    - classic = essentially the replacement for the app.js of the Ext4 app, this matches the build profile
    --active = majority of users, trimmed for reasonable browser support
    --prehistoric = for old IE support (read the banks)

    -modern = the replacement of the app.js Sencha Touch app, matches build profile
    --tablet = for larger screens
    --phone = for smaller screens

    Since this is not supported (to my knowledge), my questions are:
    1. Do I need to define 4 separate build profiles, one for each app profile? If not, how / where would I do that separation?
    2. I'm guessing the answer I'm going to get for above is yes, which then leads to: the profile calculation for the above is still done in the Ext.beforeLoad? If that is the case, which wins, the Ext.beforeLoad or isActive on the profile?
    I'm hopeful this is just confusion with the numerous different usages of "profile" in Ext6, but would still prefer to hear the "proper" way to go after this before I go too far down the path. Thanks.

  2. #2

    Join Date
    Sep 2010
    Nashville, TN


    Digging through the Kitchen Sink example (link below, but you'll want to look at your sdk source code to get any background), some things have cleared up.

    1. You will want to have 1 build profile per app profile
    2. Those app profiles should be in the framework/src directory (e.g. modern/src) as appropriate
    3. Evidently it is possible to have multiple Application.js for a single 'universal' application (in each of the framework/src directories). This is where you want to define your app profiles, not in what seemed to be the logical app/Application.js.

    Still digesting this, but first impression / gut feel is that this is going to lead to 2 duct taped applications rather than a more 'universal' / shared application I was envisioning, but only time will tell.

    KS -

Similar Threads

  1. Profiles and xtypes
    By evwill in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 27 Mar 2014, 11:58 AM
  2. How to add profiles?
    By gigasweb in forum Sencha Architect 3.x: Q&A
    Replies: 5
    Last Post: 27 Nov 2013, 5:43 PM
  3. Profiles
    By tiulkin in forum Sencha Architect 3.x: Q&A
    Replies: 6
    Last Post: 7 Aug 2013, 12:58 PM
  4. profiles question
    By gkatz in forum Sencha Touch 2.x: Discussion
    Replies: 1
    Last Post: 28 Feb 2012, 12:37 PM
  5. What happened to profiles?
    By twford in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 27 Nov 2011, 6:52 AM

Posting Permissions

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