Porting to Android
I am trying to port this to android (already have it running it successfully on iOS) and am having trouble with all the data being managed by the main thread, giving me this exception:
Fatal signal 11 (SIGSEGV), code 2, fault addr 0xc48500bc in tid 24726 (mqt_js)
[ 01-29 13:37:53.769 377: 377 W/ ]
debuggerd: handling request: pid=24686 uid=10178 gid=10178 tid=24726
[1:41]
com.compare I/Choreographer: Skipped 117 frames! **The application may be doing too much work on its main thread.**
[ 01-29 13:37:55.735 25005:25005 E/ ]
debuggerd: failed to kill process 24686: No such process
I don't have Android and I am not sure about its technical limitation, but it seems like "too much work on its main thread" is coming from the path animation, which is done in JavaScript instead of native code. To fix the error, it seems necessary to implement the animation in native code. Or do you have any suggestion for solving this problem?
My partner, @sujeethjinesh and I constructed the android folder within your project got it working pretty smoothly on both physical devices and an emulator! (provided dev settings were turned off) We'll send over a pull request for you to take a look!