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);
}
Aggregations