GitHub user fujunwei opened a pull request:

    https://github.com/apache/cordova-lib/pull/119

    Add a type named "gradleReference" in framework

    It's too complex to dependence AAR in plugin, it need build the plugin
    to a android project which include AndroidManifest.xml. This patch
    reference the *.gradle in plugin to build.gradle in root project. Below is
    a demo.
    plugin.xml:
    <framework src="libs/xwalk_core_library/xwalk.gradle" custom="true" 
type="gradleReference"/>
    
    xwalk.gradle:
    repositories {
        maven {
            url 
'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
        }
    }
    dependencies {
        compile 'org.xwalk:xwalk_core_library_beta:9.38.208.4'
    }
    
    The build.gradle will add blow section:
    // PLUGIN GRADLE EXTENSIONS START
    apply from: 'libs/xwalk_core_library/xwalk.gradle'
    // PLUGIN GRADLE EXTENSIONS END

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/fujunwei/cordova-lib gradle-reference-master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-lib/pull/119.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 #119
    
----
commit 02a96d757acc604610eb403cf11f79513ead4ac5
Author: fujunwei <junwei...@intel.com>
Date:   2014-10-24T08:11:59Z

    Add a type named "gradleReference" in framework
    
    It's too complex to dependence AAR in plugin, it need build the plugin
    to a android project which include AndroidManifest.xml. This patch
    reference the *.gradle in plugin to build.gradle in root project. Below is
    a demo.
    plugin.xml:
    <framework src="libs/xwalk_core_library/xwalk.gradle" custom="true" 
type="gradleReference"/>
    
    xwalk.gradle:
    repositories {
        maven {
            url 
'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
        }
    }
    dependencies {
        compile 'org.xwalk:xwalk_core_library_beta:9.38.208.4'
    }
    
    The build.gradle will add blow section:
    // PLUGIN GRADLE EXTENSIONS START
    apply from: 'libs/xwalk_core_library/xwalk.gradle'
    // PLUGIN GRADLE EXTENSIONS END

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to