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 6E2BC18F14 for ; Thu, 13 Aug 2015 19:02:04 +0000 (UTC) Received: (qmail 19027 invoked by uid 500); 13 Aug 2015 19:02:04 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 18989 invoked by uid 500); 13 Aug 2015 19:02:04 -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 18976 invoked by uid 99); 13 Aug 2015 19:02:03 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2015 19:02:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 44F5819ADCE for ; Thu, 13 Aug 2015 19:02:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.893 X-Spam-Level: ** X-Spam-Status: No, score=2.893 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-0.006, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=google.com header.b=g/HZS91N; dkim=pass (1024-bit key) header.d=chromium.org header.b=jwMlziVW Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id s0dUBHW8TBxp for ; Thu, 13 Aug 2015 19:02:01 +0000 (UTC) Received: from mail-qg0-f53.google.com (mail-qg0-f53.google.com [209.85.192.53]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 6941134B7A for ; Thu, 13 Aug 2015 18:41:58 +0000 (UTC) Received: by qgj62 with SMTP id 62so37258211qgj.2 for ; Thu, 13 Aug 2015 11:41:50 -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:content-type; bh=pKP7NWSo2ZeczdhBgG7nhwRXUKiLCKSHIukWnWg0Hls=; b=g/HZS91NoEcPzYXIWpI0RM2BncFuS5HoUOmmNj/isRd3rYCrNrYsfDTeJVjUEpCLu7 bT9iR8J6WKKV8BXxnRGMzpCWhrdGk4XkFgL3xEQF/Io8wTE9ajpmbOnuxOGbEKI7x0yI 1JElLgJfkYVjdQgMijeInfbPWnHKtFwhcMD1BxXXUh3CIldQxWeazZKwlGBr6VmD+HE/ azqV8o4Ppj/ewazUHZ2ymrv01ZFyjjwOAGph6/CUympBslCOTxV1p24xSrbtepii5YuE fnUqQV45F8s88iuj6Fs7kGbN+vjf9RfaGCm7jEBNNI+eSu9GMoHfhQmKS33F5qJRWME9 vb8w== 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:content-type; bh=pKP7NWSo2ZeczdhBgG7nhwRXUKiLCKSHIukWnWg0Hls=; b=jwMlziVWbnBrTaGWfxJGfQJT9cFQxWQsxdayk+pA5QZ4Qb8fMVTltSvcAYsStcYeng 6Vcxo8yA/i3N4/g2yTlGqNq1oGXv+0XaxyaUxoiNrUL1aAvRRoudvWcPUhzUjOf7D4of gBl8TSG0JDt554ZBh4Ys1lw4hHEiUjLKg0A8g= 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:content-type; bh=pKP7NWSo2ZeczdhBgG7nhwRXUKiLCKSHIukWnWg0Hls=; b=ELwFB8r2Q67pKam0vKVSfP8k2ZnIbSFFWjulX7P9ApqS3/O0monXUFPaRmagYiK0+2 vGUMbEf52hyHD0dSWiW9+WVfWYbeKCj69YptaI/PdftSEIHqqi+zzwURDJ3+vu4g3nHw ISEmDgnPeYfmkx6YtlTaZj7qfYG9QJS5HrtDN7NDX1s3fTXY4cet4D/e5K2XwLvkHav/ XeGjX90Cc2bTquMzDtWmVGBYPnfmaaxnLwxNi1Wsxtg/3SvNYjYUC2tySMJ+cRFPOJ+E Im0NG2XWGqXXAEr6fPfPbkmcMji0FVP2umSHx4Sw8IznASA++UBq3fA59lDFddhV0AV8 625g== X-Gm-Message-State: ALoCoQleiJr5eYJvaWcxQc7+4O/PplbzyuwhYOvARy/K6nl7pv491Iik7DeMs4JxZySwc29wTjtk X-Received: by 10.140.34.33 with SMTP id k30mr71276707qgk.56.1439491310611; Thu, 13 Aug 2015 11:41:50 -0700 (PDT) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.140.19.242 with HTTP; Thu, 13 Aug 2015 11:41:30 -0700 (PDT) In-Reply-To: References: From: Andrew Grieve Date: Thu, 13 Aug 2015 14:41:30 -0400 X-Google-Sender-Auth: fNqv2lZj6_NynTmEuZP-73XtPAI Message-ID: Subject: Re: Android Project Structures, Libraries and the Embedded Case To: dev Content-Type: multipart/alternative; boundary=001a11c0b2ce3a34bd051d35b0f4 --001a11c0b2ce3a34bd051d35b0f4 Content-Type: text/plain; charset=UTF-8 The structure isn't a big deal to me, because it seems to work fine in Android Studio how it is. Moving plugins to maven as .aar files is actually possible now by using a maven ref in a within you plugin.xml. On Thu, Aug 13, 2015 at 2:05 PM, Joe Bowser wrote: > Hey > > So, as you know, Google switched from supporting Eclipse to supporting > their IntelliJ based Android Studio IDE, and in an effort to keep up, we > followed them, somewhat. One thing we didn't do is update our project > structure so it works similar to an Android Studio one, and there's a > reason we didn't do that. > > The reason is that Android didn't do that. If you autogenerate an Android > project from the command line, even if you use Gradle (which should be the > default, but still isn't for some reason), you still get the old > eclipse-style structure that we're currently using. I've been making tiny > changes so that we can use Cordova as a library, but then there's these > development problems that I really don't have the answers to: > > 1. Where do tests live for plugins? People who contribute want JUnit tests > to make sure the native code works. I want them as well, but our current > plugin system has no support for this and people don't seem super > interested in changing this when I have off-list private conversations, > which is why I'm bringing it up here. > > 2. Should plugins be AAR/Projects instead of just code? Honestly, I think > this would make more sense than trying to guess what the structure of a > Java project is. I want to support users regardless of how they create > their Android project instead of just saying that using the Cordova CLI is > the one and only way, and I think people who use this in Enterprise > environments would agree with me. Although, I haven't explicitly asked > anyone, which is why I'm bringing this up here. > > 3. If we keep the current way of loading Android code as plugins, how do we > support all the IDE structures? Currently cordova-lib only supports the > current Android project structure, and if I was to extend it, Android > Studio would have to be its own platform, which isn't correct, since it's > just a different project directory structure. > > I'm interested in what people think in this, and whether we should bother > with these use cases, or just say that everyone has to use the old > structure until Google changes their minds, or whatever. > > Thoughts? > > Joe > --001a11c0b2ce3a34bd051d35b0f4--