cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nikhilkh <>
Subject [GitHub] cordova-docs pull request: CB-10332 Android Guide Improvements
Date Thu, 04 Feb 2016 06:10:08 GMT
Github user nikhilkh commented on a diff in the pull request:
    --- Diff: www/docs/en/dev/guide/platforms/android/ ---
    @@ -155,27 +158,24 @@ thread, but do not want to block the `WebCore` thread either:
     ## 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`.
    +If your Android plugin has extra dependencies, they must be listed in the
    +`plugin.xml` in one of two ways.
    -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
    +The preferred way is to use the `<framework />` tag (see the
    +[Plugin Specification](../../../plugin_ref/spec.html) for more details).
    +Specifying libraries in this manner allows them to be resolved via Gradle's
     [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.
    +This allows commonly used libraries such as _gson_, _android-support-v4_,
    +and _google-play-services_ to be used by multiple plugins without conflict.
    +The second option is to use the `<lib-file />` tag to specify the location of
    --- End diff --
    Does `framework` support a jar reference too? Are these mutually exclusive or `framework`
is always preferred over `lib-file`?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

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

View raw message