You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "Adam Feng (JIRA)" <ji...@apache.org> on 2017/10/11 13:07:00 UTC
[jira] [Assigned] (WEEX-33) Config Ability in weex
[ https://issues.apache.org/jira/browse/WEEX-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Feng reassigned WEEX-33:
-----------------------------
Assignee: xingZhang
> Config Ability in weex
> ----------------------
>
> Key: WEEX-33
> URL: https://issues.apache.org/jira/browse/WEEX-33
> Project: Weex
> Issue Type: New Feature
> Reporter: xingjiu
> Assignee: xingZhang
> Original Estimate: 504h
> Remaining Estimate: 504h
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)