Giter Site home page Giter Site logo

Cordova integration about kvision HOT 7 CLOSED

rjaros avatar rjaros commented on July 28, 2024
Cordova integration

from kvision.

Comments (7)

rjaros avatar rjaros commented on July 28, 2024 1

I've made some first experiments with Cordova and managed to run simple KVision app on the android emulator and on my own xperia phone over usb. It's not even very difficult if you have all the required tools installed (cordova, android studio and gradle). The development process is not as nice as I'm used to (no HMR, not even hot-reload at the moment), but it works.

It will be a much bigger challenge to create kvision-cordova module with complete API bindings. I'll probably prepare a skeleton of this module and create some very basic core components. And next it will be possible to implement bindings for core cordova plugins step by step.

Unfortunately I do not have any Mac machine, so someone else will have to try testing iOS integration.

from kvision.

rjaros avatar rjaros commented on July 28, 2024 1

I've finished implementing api for all core cordova plugins (device, battery, screen orientation, vibration, camera, file, geolocation, dialogs, inappbrowser, statusbar, splashscreen, network information, media and media capture). I have wrapped most of the orignal, callback-based api into simple suspending functions, so it seems very easy to use, although I've tried to closely follow Cordova's usage patterns (which are not very consistent in my opinion), so the standard Cordova documentation should give enough knowledge to work with KVision.

I've only tested the Android platform, but I've finally managed to get quite nice development experience with the Android emulator. Webpack HMR is working, hot-reload is just as fast as with the browser and Chrome DevTools allow to fully debug the application.

The module will be available in the coming release. Next I'll publish template-cordova example (with some basic api usage) and start writing new chapter for the guide.

from kvision.

rjaros avatar rjaros commented on July 28, 2024 1

There are thousands of Cordova external plugins, and surely it's impossible to create bindings for all of them. But we can choose at least a few - the most used and useful - and create new KVision modules for them, too.

from kvision.

rjaros avatar rjaros commented on July 28, 2024 1

I've published template-cordova project in kvision-examples repository. I'll try to update the guide soon. In the meantime, if somebody have any questions about cordova module, please ask here.

from kvision.

rjaros avatar rjaros commented on July 28, 2024 1

I've updated the guide with the new chapter about Cordova. It probably could be better, more precise and comprehensive, but along with the template-cordova example and the official cordova docs it should give enough info to get started.

from kvision.

robert-cronin avatar robert-cronin commented on July 28, 2024

Sounds good, once we have a basic skeleton for Android, I can do some testing on my local Mac machine.

from kvision.

robert-cronin avatar robert-cronin commented on July 28, 2024

I wonder if we can get the same sort of development experience with AppCode for iOS, I will have the opportunity to test it for our mobile app soon. Yes, there are many, I guess something like a wrapper for a database plugin would be useful, something like SQLite or KStitch where the latter would actually need a plugin developed.

I've also heard there are some problems with the keyboard on cordova so something like Ionic Keyboard would be fundamental too.

from kvision.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.