Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24556

Allow environment specific settings for tiapp.xml


    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Ti SDK <= 6.0.3.GA

    • Story Points:


      Use cases:

      • defining a different name for the development build of your app
      • Having a custom property in tiapp.xml (like "gcm.senderid" for https://github.com/caffeinalab/ti.goosh) with different values for development vs production
      • Basically any property in tiapp.xml that should have a different value in production versus development or test

      This improvement is directly related to https://jira.appcelerator.org/browse/TIMOB-24162.

      Developers are currently limited to 3 environments which is development, test and production. Each of these environments seem to come with custom restrictions, for instance you cant seem to build a "production" environment on an Android Emulator (http://docs.appcelerator.com/platform/latest/#!/guide/Titanium_Command-Line_Interface_Reference).

      One way to make this work, is a single config/tiapp/ directory which hold files including `production.xml`, `development.xml`, `any_environment_you_need.xml` which extend of the base config file tiapp.xml. When compiling the app, the given --deploy-type should then select the correct file and put it on top of tiapp.xml.


          Issue Links



              • Assignee:
                cbarber Chris Barber
                uzbbert Bert
              • Watchers:
                3 Start watching this issue


                • Created:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration