3 ms·
> wrapping every API with Javascript sounds non-trivial. I am not an expert in JS or the Android API, but I wonder if you couldn't do it automatically? If type
by yjftsjthsd-h 6y ago
> wrapping every API with Javascript sounds non-trivial.
I am not an expert in JS or the Android API, but I wonder if you couldn't do it automatically? If types line up closely enough, I would think that you could get a list of Android APIs (pull it from AOSP if you have to) and mechanically translate to a JS API.
- nitrogen 6y agoIf Android's JVM supports reflection, you could do it dynamically at runtime, and there are probably already JS+JVM integrations that would work.
- lupire 6y agoApache Cordova exposes APIs to JS.
- iaml 6y agoActually, ionic team recently released their native api solution as a library [0]. I think it might fit right in. [0] https://github.com/ionic-team/capacitor https://github.com/ionic-team/capacitor
- JosephRedfern 6y agoDrozer does (did?) this, except with Python rather than JS. https://github.com/FSecureLABS/drozer https://github.com/FSecureLABS/drozer