duwen

Results 117 comments of duwen

> Why do you deprecate locks? Could you provide example of token refreshment? In that case you need lock only for one part of the interceptor. (In the case where...

dio.fetch 要使用新的dio实例

We have some specifications for third-party libraries: - All plugins and libraries should support Dio 4.x - Having detailed documentation and examples

@alicksnake22 dsbridge3.0以后就不支持uiwebview了,如果仍需要使用uiwebview,请使用dsbridge2.0

@yikuo123 please refer to #28

你这个方法可以,遍历父类方法确实大多数时候没必要,不过我想到另一种方式,即,定义一个协议,包含一个接口如findJSApiFromSuper,api类可以实现此协议, 用户如果返回true,再去遍历父类,如果返回fase或者没有实现此协议则不再遍历父类,至于缓存,有的话也是好的,你觉得呢? :octocat: [From gitme Android](http://flutterchina.club/app/gm.html)

直接禁止遍历父类方法符合百分之99的场景,这样直接传controller this也不会有额外开销, js Api多时,组合应该优先于继承。下个版本将取消遍历父类方法。 :octocat: [From gitme Android](http://flutterchina.club/app/gm.html)

js Api不应该放在全局的Contolle基类中,只应该放在有webview的controller中。 :octocat: [From gitme Android](http://flutterchina.club/app/gm.html)

异步调用是无法保证完成顺序的,但可以提供完成回调,你可以在保存一个全局状态,在调用前设为false, 然后再异步回调中再设为`true`,只有状态为`true`时才可以在此点击。

if you're using dsBridge >=v3.0, you can write code as follows: ```swift @objc func testSyn( _ arg:String) -> String { return String(format:"%@[sync call:%@]", arg, "test") } @objc func testAsyn( _...