Binding OCaml to cordova-plugin-x-socialsharing using gen_js_api.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
opam
.gitignore
.merlin
.travis-ci.sh
.travis.yml
LICENSE
META
Makefile
Makefile.conf
README.md
cordova_social_sharing.mli

README.md

ocaml-cordova-plugin-social-sharing

LGPL-v3 licensed Build Status

Binding to cordova-plugin-x-socialsharing

What does cordova-plugin-social-sharing do ?

This plugin allows you to use the native sharing window of your mobile device.

Source: cordova-plugin-x-socialsharing

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-social-sharing
  • Else, you can use opam by pinning the repository with
opam pin add cordova-plugin-social-sharing https://github.com/dannywillems/ocaml-cordova-plugin-social-sharing.git

To compile your project, use

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

Don't forget to install the cordova-plugin-x-social-sharing with

cordova plugin add https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin

How to use ?