cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fujunwei (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-3445) Move Cordova-Android Build Setup to Gradle
Date Mon, 03 Nov 2014 07:29:35 GMT

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

fujunwei commented on CB-3445:
------------------------------

The Crosswalk was built into AAR format in Maven repository (https://download.01.org/crosswalk/releases/crosswalk/android/maven2).
We don't want to make the Crosswalk-cordova-engine to library project, Because it must add
extra project files such as AndroidManifest.xml. So I request a PR (https://github.com/apache/cordova-lib/pull/111
) to cordova-lib, it will reference the Gradle script in plugin to build-extras.gradle which
host in root project. 

We only add a xwalk.gradle file in plugin.
{code}
repositories {
       maven {
              url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
       }
}
dependencies {
         compile 'org.xwalk:xwalk_core_library_beta:9.38.208.4'
}
{code}

And add a type of framework named "graldeReference":
{code}
<framework src="libs/xwalk_core_library/xwalk.gradle" custom="true" type="gradleReference">
{code}

Could you give some comments on this PR?


> Move Cordova-Android Build Setup to Gradle
> ------------------------------------------
>
>                 Key: CB-3445
>                 URL: https://issues.apache.org/jira/browse/CB-3445
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android
>            Reporter: Joe Bowser
>            Assignee: Ian Clelland
>            Priority: Minor
>
> Currently we're using ant for our setup, and our setup can break every time that the
Android SDK updates and change its build.xml.  However, the Android Team has created Gradle
to be more robust such that it doesn't have the same problems as ant-based scripts.
> This also has the advantage of using Android Studio for development instead of Eclipse,
and the ability for us to bundle resources, which is something we haven't been able to do
before.
> Moving to Gradle has numerous advantages, but will break scripts, so this is to be moved
in the post-3.0 timeframe.



--
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