You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/05/28 16:15:02 UTC
[jira] [Commented] (CB-6698) Plugman support for referencing
Android libraries
[ https://issues.apache.org/jira/browse/CB-6698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14011126#comment-14011126 ]
ASF GitHub Bot commented on CB-6698:
------------------------------------
GitHub user mbektchiev opened a pull request:
https://github.com/apache/cordova-lib/pull/21
CB-6698: Support library references for Android via the framework tag
The framework tag can be contain the following attributes:
* **src** - (**required**) relative path to the directory containing the referenced library project.
* **custom** - (optional) specifies how to treat **src**. If **true** it is a relative path from the application project's directory, otherwise -- the Android SDK directory.
* **parent** - (optional) relative path to the directory containing the project to which to add the reference. The default is the application project.
Example: A plugin that installs a library (**FeedbackLib**) which refers another library from the Android SDK (**appcompat**)
```xml
<source-file src="src/android/FeedbackLib" target-dir="./" />
<framework src="FeedbackLib" custom="true" />
<framework src="extras/android/support/v7/appcompat" parent="FeedbackLib" />
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Icenium/cordova-lib bektchiev/framework-tag-for-android
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-lib/pull/21.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21
----
commit 0227d7bb7831ad1dfe0c6531e319bf8106256a03
Author: Martin Bektchiev <ma...@telerik.com>
Date: 2014-05-27T11:53:19Z
CB-6698: Support library references for Android via the framework tag
----
> Plugman support for referencing Android libraries
> -------------------------------------------------
>
> Key: CB-6698
> URL: https://issues.apache.org/jira/browse/CB-6698
> Project: Apache Cordova
> Issue Type: New Feature
> Components: Plugman
> Reporter: Martin Bektchiev
> Assignee: Martin Bektchiev
>
> Make plugman capable of referencing an Android library project from within a plugin.
> Currently there's no viable way to do it and it is becoming common to try to circumvent this limitation by abusing *plugin.xml* to (try to) merge a library's resources, code and configuration. (see https://github.com/wildabeast/BarcodeScanner)
--
This message was sent by Atlassian JIRA
(v6.2#6252)