alle.iacob
04/05/2019, 8:46 AMgumil
04/05/2019, 9:00 AMalle.iacob
04/05/2019, 9:04 AMalle.iacob
04/05/2019, 9:05 AMKris Wong
04/05/2019, 12:49 PMjw
04/05/2019, 1:42 PMKris Wong
04/05/2019, 1:52 PMalle.iacob
04/05/2019, 2:29 PMalle.iacob
04/05/2019, 2:29 PMalle.iacob
04/05/2019, 2:30 PMadams2
04/05/2019, 4:32 PMjw
04/05/2019, 4:32 PMoleksandr
04/05/2019, 6:04 PMthe issue with duktape is that it doesn’t support object data transferNot sure what that means, but in our project we have following setup: duktape-android (thanks Square for a nice wrapper) on Android and JSCore on iOS. Original JS code is written in ES6 for Web, we transpile it to ES5 (duktape and JSCore before iOS 10 do not support ES6) and run it in native apps. We have built a bit more functionality on top of duktape-android, things like JsonObjectWrapper which reflectively converts between Kotlin classes and JSON, transparent JS<->Kotlin Promise support with coroutines and Deferred, a bit stricter memory deallocation, and convenient debugger attachment process. We plan to open source this small addon at some point. On iOS Safari connects to JSCore for debugging automatically. It works pretty good so far, so I can recommend this approach. Alternatively, either WebView or JSCore on both platforms.