Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 38F2511046 for ; Tue, 23 Sep 2014 14:55:30 +0000 (UTC) Received: (qmail 16815 invoked by uid 500); 23 Sep 2014 14:28:54 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 5454 invoked by uid 500); 23 Sep 2014 14:28:45 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 2192 invoked by uid 99); 23 Sep 2014 14:16:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2014 14:16:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of agrieve@google.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-ob0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2014 14:15:42 +0000 Received: by mail-ob0-f172.google.com with SMTP id uz6so2511785obc.17 for ; Tue, 23 Sep 2014 07:15:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=jemFvC+YdhjbszdSZA0vHUSvndDMiRfJpd+qxYkrYaQ=; b=McCKyQtuG6vE3Ru9bWN4a5d3gwUdB/Y2nvNIvMqYDkwgjMI7X/PxhHgelQCfQ+B9wN CxhQFRLk7ytKUiiR9q4HcdEjGlYUYNKMZ/3oOTXmtI8BB4U2nxDiRe1iKODvNELDLupR yoyT5zwgvUutLiL+1hgCSbf8m8JkOYAw8kKora6EPM5BQTtgOWZ/mYm7F43b4+x1BaR1 bpA/zV3i/YfvedoW8E4cUYupUvl5O1miVmGCvJ74eihWFgNPU4igvj/4jgs2T06qLMEd 9QEAcmXEbzIGUorPBReR1S9dcO9VNM3iYWBn1bs2YptCBgQkFkl4hbz+ytxb3uX83ntx pNQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=jemFvC+YdhjbszdSZA0vHUSvndDMiRfJpd+qxYkrYaQ=; b=L9Qs5shL95x9C3upWmaH23Z5NhEthLvT9FcLSO0ikuAhBZEuzL8ZBU8YClR4nEt5YL C1Sm0bgeWNIsajHwYXRkrnjw1vcZGUeXY3t3XCSMu9u5YiGMak7qa6mL7PHamgva0jFe j4+WUe+QcjyL1XBTSHBvGRHbLf1AVCN6ik6bk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=jemFvC+YdhjbszdSZA0vHUSvndDMiRfJpd+qxYkrYaQ=; b=Jh6e+s8xUrwe07XyTZxyqSICoSeFC9LzVmluXgXDA21Cd14SYtLy5e5HksvYdWpv+R B+3KriS3Td0fgI9K844nqflw4LvSStY/8Enqg8D7xLVpulUcY2IKOuIGia5uv2OphQEX Ci2c5xAmquHoL03SM/z2YPi1s7mCM8p/0jCfo5Nr0j0rrM0NkbCs7BduwMJcHcLbtEy2 R5UEJp498cZqnhUCjjQTUvnidJOKnYy6QhNoyx0arYXXUCLs9Q/RqVXDLNYzOBtNWmND laO3yOZGi7h/1n2RE8ZAl5OYd9X/VkSG2k4VxMXv9RHtoKG8+qUEAsbgtkqnWQWZcp0K HAlw== X-Gm-Message-State: ALoCoQmN0937MypS2CiJBafdA77BgASwMIyn83AA3VLvZ7JKh2hZe1AQtf6oJETzdY6rXBXXPgMp X-Received: by 10.60.51.5 with SMTP id g5mr26578903oeo.19.1411481740543; Tue, 23 Sep 2014 07:15:40 -0700 (PDT) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.182.98.165 with HTTP; Tue, 23 Sep 2014 07:15:20 -0700 (PDT) In-Reply-To: References: From: Andrew Grieve Date: Tue, 23 Sep 2014 10:15:20 -0400 X-Google-Sender-Auth: a6wqYwNUrfqYQ8WpFqUMFbSJq78 Message-ID: Subject: Re: plugin with AAR To: dev Cc: "Hu, Ningxin" Content-Type: multipart/alternative; boundary=001a11c30caac0a8990503bc33e5 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c30caac0a8990503bc33e5 Content-Type: text/plain; charset=UTF-8 Gradle support on master is still somewhat a work-in-progress, but I think it's coming along nicely :) What you want to do hasn't been done before that I know of, but it *might* just work if you add a build-extras.gradle to your plugin and adding the extra Dependencies line in there. More eyes on Gradle would be great, as it's still changing quite a bit. On Tue, Sep 23, 2014 at 4:02 AM, Fu, Junwei wrote: > Hi, > > I know that the cordova-android master can build subproject with Gradle, > but I have a question. I want to develop a plugin that dependence AAR from > remote maven repository, the AAR is library project. I need to make the > plugin to android project which include AndroidManifest.xml and > project.properties files, but it isn't what I want. I expect simple > development with follow steps: > > 1. Develop plugin with AAR > > Write a library.gradle file that include how to compiling the AAR, it > looks like: > > Repositories { > > Maven { > > mavenCentral() > > } > } > > Dependencies { > Compile 'com.sqlcipher:sqlcipher:3.0.1' > } > > > 2. Plugman install the plugin > > The plugin library.gradle can apply to build.gradle that host in root > project. > > > > 3. The "build multiple apk" can open after install the plugin. > > Can we develop cordova plugin like that? > > Thanks, > Junwei. > --001a11c30caac0a8990503bc33e5--