Skip to content

adam-singer/dartgap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DartGap: A Dart wrapper for Cordova

DartGap allows you to use Dart to implement mobile applications using Apache Cordova (formerly PhoneGap).

Currently DartGap does not implement the full Cordova 1.8 API however the idea is to implement all of it. So if you find something missing then grab the keyboard and send us a pull request.

Getting started

Create a Dart project and add a pubspec.yaml file to it

dependencies:
  dartgap:
    git: git://github.com/Qalqo/dartgap.git

and run pub install to install dartgap (including its dependencies). Now add import

#import("package:dartgap/lib.dart") 

to your Dart code and then start interacting with Cordova via

dartgap.onDeviceReady((Device device) {
  device.notification.alert("hello from Dart");
});

Finally to get the code running on your device check these platform specific guides

Cordova API status

  • Accelerometer: Partly implemented
  • Camera
  • Capture
  • Compass
  • Connection
  • Contacts
  • Device: Fully implemented
  • Events
  • File
  • Geolocation
  • Media
  • Notification: Fully implemented
  • Screen: Fully implemented
  • Storage:
    • WebSQL: Fully implemented
    • LocalStorage: Work started

TODO

About

A Dart wrapper for Cordova

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 70.6%
  • JavaScript 27.2%
  • Shell 2.2%