cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8390) <framework custom="false"/> broken for gradle projects
Date Tue, 03 Feb 2015 04:27:34 GMT

    [ https://issues.apache.org/jira/browse/CB-8390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14302753#comment-14302753
] 

ASF subversion and git services commented on CB-8390:
-----------------------------------------------------

Commit ce351f5c38a4fc11bddb7b5ab976ee8fdda6dfeb in cordova-android's branch refs/heads/master
from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=ce351f5 ]

CB-8390 Add Gradle support for Play Services and Support libraries


> <framework custom="false"/> broken for gradle projects
> ------------------------------------------------------
>
>                 Key: CB-8390
>                 URL: https://issues.apache.org/jira/browse/CB-8390
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaLib
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>            Priority: Minor
>
> {code}
> <framework custom=false>
> {code}
> allows referencing of android support libraries and play services, which live within
the user's SDK directory.
> https://developer.android.com/tools/support-library/features.html
> There is currently ANT-specific logic within plugman to handle them, and they don't work
at all for gradle projects.
> https://github.com/apache/cordova-lib/blob/e05c656ef3d77d6c5e9232ed4e6ddbd3e29654eb/cordova-lib/src/plugman/platforms/android.js#L118
> (note the use of local.properties)
> Some example tags:
> {code}
> <framework src="extras/android/support/v4" />
> <framework src="extras/android/support/v13" />
> <framework src="google/google_play_services/libproject/google-play-services_lib" />
> {code}
> Currently (for ANT), these libraries were added as sub-projects using the path to them
within the SDK directory. For gradle, we should be added them via:
> {code}
> dependencies {
>   compile 'com.android.support:support-v4:21.0.+'
>   compile 'com.android.support:support-v13:18.0.+'
>   compile 'com.google.android.gms:play-services:6.5.87'
> }
> {code}
> Proposed change:
> Look for `src` in the form of `extras/android/support/v4` and map that to `com.android.support:support-v4`.
Just use a hardcoded lookup table, as this is just for backwards compat.
> Add support for `src` in the form of `com.android.support:support-v4`, and add these
to the project.properties file, in the same way that we do for subprojects and gradleReference
frameworks.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message