Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Background:
      As we know, weex now has NO config module. Every mobile of weex are using the same config (the config in source code).
      More and more module or component requires the ability to sperate one from each other.
      Such as Prefetch, Prerender module. There should be a way to config the how the module works, like how many items it cound do the prefetch. This config will be different in different apps.

      Solution:
      Add a module named of WXConfigModule in weex_sdk, a simple key-value storage is enough.
      API is
      void setConfig(String name, Object value)
      Object getConfig(String name)
      void sync(String name) // get the lastest config from server
      void syncAll()
      void invalid(String name) // option. invalid a config for once, using in debug of bugfix scenario

      The default implement is calling the config interface.
      App like TAOBAO will using orange to sync configs from server.

      Attachments

        Activity

          People

            acton393 Xing Zhang
            wispy316 xingjiu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 504h
                504h
                Remaining:
                Remaining Estimate - 504h
                504h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment