Search in sources :

Example 1 with CustomURIAdapter

use of com.alibaba.weex.commons.adapter.CustomURIAdapter in project weex-example by KalicyZhou.

the class WXApplication method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    //    initDebugEnvironment(true, false, "DEBUG_SERVER_HOST");
    //    WXSDKEngine.addCustomOptions("appName", "WXSample");
    //    WXSDKEngine.addCustomOptions("appGroup", "WXApp");
    WXSDKEngine.initialize(this, new InitConfig.Builder().setImgAdapter(new ImageAdapter()).setURIAdapter(new CustomURIAdapter()).build());
    try {
        WXSDKEngine.registerModule("event", WXEventModule.class);
        WXSDKEngine.registerModule("service", WXServiceModule.class);
    } catch (WXException e) {
        e.printStackTrace();
    }
    Fresco.initialize(this);
    AppConfig.init(this);
    PluginManager.init(this);
}
Also used : CustomURIAdapter(com.alibaba.weex.commons.adapter.CustomURIAdapter) ImageAdapter(com.alibaba.weex.commons.adapter.ImageAdapter) WXException(com.taobao.weex.common.WXException)

Aggregations

CustomURIAdapter (com.alibaba.weex.commons.adapter.CustomURIAdapter)1 ImageAdapter (com.alibaba.weex.commons.adapter.ImageAdapter)1 WXException (com.taobao.weex.common.WXException)1