cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgreb...@apache.org
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


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/a847efea
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/a847efea
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/a847efea

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

----------------------------------------------------------------------
 docs/en/edge/guide/platforms/android/plugin.md | 24 +++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/a847efea/docs/en/edge/guide/platforms/android/plugin.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/platforms/android/plugin.md b/docs/en/edge/guide/platforms/android/plugin.md
index fb83ab8..3f7ee6d 100644
--- a/docs/en/edge/guide/platforms/android/plugin.md
+++ b/docs/en/edge/guide/platforms/android/plugin.md
@@ -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="com.android.support:support-v4:+" />
+
+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](https://docs.gradle.org/current/userguide/dependency_management.html).
+
+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: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message