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

CLI: Support accessing XML values from tiapp.xml's platform-specific sections at runtime.



      Currently the CLi's XML parsing of tiapp.xml only handles known tags. We've used a series of generic properties tags before to get properties into the runtime. For platform-specific ones, we've just used prefix names of "ti.android.". We've started to move to preferring platform-specific properties to be under the root tag for a a platform in the xml:

      <tiapp ...

      However, we have no means of accessing those values at runtime, and we need to handle the tags specially in CLi code for each platform.

      Ideally we'd be able to have some straight XML->JSON serialization for access in the CLI code from each platform so we could do:

      var runOnMainThread = tiapp.ios[run-on-main-thread]

      And we need some way to access this data at runtime. Maybe hack the properties into the properties file/json to generate "properties" with namespaced keys, like "tiapp.ios.run-on-main-thread"?


          Issue Links



              • Assignee:
                cbarber Chris Barber
                cwilliams Christopher Williams
              • Watchers:
                4 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