Skip to content

Commit

Permalink
Added a note about phonegap build and the cordova plugin registry
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Dec 18, 2014
1 parent 6c5c188 commit 81c25f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ or
```
$ cordova plugin add https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git
```
or using the cordova plugin registry
```
$ cordova plugin add nl.x-services.plugins.socialsharing
```
run this command afterwards (backup your project first!):
```
$ cordova prepare
Expand Down Expand Up @@ -131,14 +135,11 @@ Android: Copy `SocialSharing.java` to `platforms/android/src/nl/xservices/plugin
Window Phone: Copy `SocialSharing.cs` to `platforms/wp8/Plugins/nl.x-services.plugins.socialsharing` (create the folders)

### PhoneGap Build
SocialSharing works with PhoneGap build too! Version 3.0 and up of this plugin are compatible with PhoneGap 3.0.0 and up.
Use an older version of this plugin if you target PhoneGap < 3.0.0.

Just add the following xml to your `config.xml` to always use the latest version of this plugin:
Just add the following xml to your `config.xml` to always use the latest version of this plugin (which is published to plugins.cordova.io these days):
```xml
<gap:plugin name="nl.x-services.plugins.socialsharing" />
<gap:plugin name="nl.x-services.plugins.socialsharing" source="plugins.cordova.io" />
```
or to use an exact version:
or to use an older version, hosted at phonegap build:
```xml
<gap:plugin name="nl.x-services.plugins.socialsharing" version="4.3.0" />
```
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="nl.x-services.plugins.socialsharing"
version="4.3.11">
version="4.3.12">

<name>SocialSharing</name>

Expand Down

0 comments on commit 81c25f5

Please sign in to comment.