A bridge implementation of the Apache Cordova mobile framework(a.k.a. PhoneGap) in Dart. It enables developers to access native facilities of multiple mobile platforms using the HTML, CSS, and Dart.
Dart Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example/hellocordova
lib
test
tool
.gitattributes
.gitignore
CHANGES.md
LICENSE
README.md
pubspec.yaml

README.md

#Rikulo Gap

Rikulo Gap is a bridge implementation of the Apache Cordova mobile framework (a.k.a. PhoneGap) in Dart. It enables developers to access native facilities of multiple mobile platforms using the HTML, CSS, and Dart.

Rikulo Gap is distributed under the Apache 2.0 License.

##Install from Dart Pub Repository

Add this to your pubspec.yaml (or create it):

dependencies:
  rikulo_gap: ">=0.6.0 <0.7.0"

##Usage

Everything start from enabling your device accessiblity:

import 'package:rikulo_gap/device.dart';
import 'package:rikulo_gap/accelerometer.dart';

//At a regular interval, get the acceleration along the x, y, and z axis.
void accessAccelerometer() {
  accelerometer.watchAcceleration(
    (Acceleration acc) {
      print("t:${acc.timestamp}, x:${acc.x}, y:${acc.y}, z:${acc.z}");
    },
    () => print("Fail to get acceleration."),
    new AccelerometerOptions(frequency: 1000)
  );
}

void main() {
  Device.init()
  .then((Device device) {
     accessAccelerometer();
  })
  .catchError((ex, st) {
     print("Failed: $ex, $st");
  });
}

For more information, please refer to Building Native Mobile Application.

##Install from Github for Bleeding Edge Stuff

To install stuff that is still in development, add this to your pubspec.yam:

dependencies:
  rikulo_gap:
    git: git://github.com/rikulo/gap.git

For more information, please refer to Pub: Dependencies.

###Fork Rikulo Gap

If you'd like to contribute back to the core, you can fork this repository and send us a pull request, when it is ready.

Please be aware that one of Rikulo's design goals is to keep the sphere of API as neat and consistency as possible. Strong enhancement always demands greater consensus.

If you are new to Git or GitHub, please read this guide first.

##Who Uses

  • Quire - a simple, collaborative, multi-level task management tool.