/ocaml-cordova-plugin-sim-card

Binding OCaml to cordova-plugin-sim using gen_js_api.

Primary LanguageOCamlGNU Lesser General Public License v3.0LGPL-3.0

ocaml-cordova-plugin-sim-card

LGPL-v3 licensed Build Status

Binding to cordova-plugin-sim

What does cordova-plugin-sim-card do ?

This is a cordova plugin to get data from the SIM card like the carrier name,
mcc, mnc and country code and other system dependent additional info.

Source: cordova-plugin-sim

How to install and compile your project by using this plugin ?

Don't forget to switch to a compiler >= 4.03.0.

opam switch 4.03.0
opam install cordova-plugin-sim-card
  • Else, you can use opam by pinning the repository with
opam pin add cordova-plugin-sim-card https://github.com/dannywillems/ocaml-cordova-plugin-sim-card.git

To compile your project, use

ocamlfind ocamlc -c -o [output_file] -package gen_js_api -package cordova-plugin-sim-card [...] -linkpkg [other arguments]

Don't forget to install cordova-plugin-sim with

cordova plugin add cordova-plugin-sms

How to use ?