cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject docs commit: CB-9387 Document Android Plugin Compatibility
Date Thu, 27 Aug 2015 14:22:45 GMT
Repository: cordova-docs
Updated Branches:
  refs/heads/master b02f085af -> a847efea6

CB-9387 Document Android Plugin Compatibility


Branch: refs/heads/master
Commit: a847efea691b461d813ba80d7f86df0e57beb327
Parents: b02f085
Author: sgrebnov <>
Authored: Thu Aug 27 17:01:36 2015 +0300
Committer: sgrebnov <>
Committed: Thu Aug 27 17:22:15 2015 +0300

 docs/en/edge/guide/platforms/android/ | 24 +++++++++++++++++++++
 1 file changed, 24 insertions(+)
diff --git a/docs/en/edge/guide/platforms/android/ b/docs/en/edge/guide/platforms/android/
index fb83ab8..3f7ee6d 100644
--- a/docs/en/edge/guide/platforms/android/
+++ b/docs/en/edge/guide/platforms/android/
@@ -150,6 +150,30 @@ thread, but do not want to block the `WebCore` thread either:
             return false;
+## Adding Dependency Libraries
+If a plugin requires additional libraries to work, you can use
+one of the following approaches to add them via `config.xml`.
+Option A. Via _Gradle_ reference, for example:
+        <framework src="" />
+This is a recommended approach as it allows multiple plugins
+to refer to the same dependency library such as _gson_,
+_android-support-v4_, _google-play-services_, etc and
+_Gradle_ will resolve duplicate dependencies using its
+[Dependency Management logic](
+Option B. As _JAR_ files placed to some plugin's folder and
+linked using `lib-file`, for example:
+        <lib-file src="src/android/libs/gcm.jar"/>
+We recommend using this approach only if you are sure that
+dependency jar is plugin specific and won't be used by
+other plugins. Otherwise, there will be platform build issue.
 ## Echo Android Plugin Example
 To match the JavaScript interface's _echo_ feature described in

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message