Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1210

Alloy: Add support for DIST in the Project Configuration File

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Runtime
    • Labels:
    • Environment:

      master

    • Story Points:
      5
    • Sprint:
      2015 Sprint 20 Tooling

      Description

      Recently, in Alloy 1.4.0 DIST_ADHOC and DIST_STORE were added the options for conditional code in controllers.

      I'd like to also have support the same conditions in config.json.

      The use case would be to have different endpoints, keys or other configuration variables for production ad-hoc builds and production store-builds.

      Example:

      {
       "global": {"foo":1},
       "env:development": {"foo":2},
       "env:test":{"foo":3},
       "env:production":{"foo":4},
       "os:ios env:production": {"foo":5},
       "os:ios env:development": {"foo":6},
       "os:ios env:test": {"foo":7},
       "os:android":{"foo":8},
       "os:mobileweb":{"foo":9},
       "os:ios dist:adhoc": {"foo":10},
       "os:ios dist:store": {"foo":10},
       "dependencies": {
        "com.foo.widget":"1.0"
       }
      } 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                fokkezb Fokke Zandbergen
                Reviewer:
                Eric Merriman
              • Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code