Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7D343200D1E for ; Wed, 4 Oct 2017 01:35:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7BD6C160BD7; Tue, 3 Oct 2017 23:35:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CACCA1609DE for ; Wed, 4 Oct 2017 01:35:04 +0200 (CEST) Received: (qmail 11892 invoked by uid 500); 3 Oct 2017 23:35:02 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 11822 invoked by uid 99); 3 Oct 2017 23:35:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Oct 2017 23:35:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id EFECE1A2BFC for ; Tue, 3 Oct 2017 23:35:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Uf_GdqjvTPeS for ; Tue, 3 Oct 2017 23:35:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E04335F29A for ; Tue, 3 Oct 2017 23:35:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 71E4CE0B20 for ; Tue, 3 Oct 2017 23:35:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 26CB9242CF for ; Tue, 3 Oct 2017 23:35:00 +0000 (UTC) Date: Tue, 3 Oct 2017 23:35:00 +0000 (UTC) From: "Jan Piotrowski (Sujan) (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-13386) How to add native module to Cordova Android project? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 03 Oct 2017 23:35:05 -0000 [ https://issues.apache.org/jira/browse/CB-13386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16190543#comment-16190543 ] Jan Piotrowski (Sujan) commented on CB-13386: --------------------------------------------- (Disclosure: Also posted same question on Stack Overflow: https://stackoverflow.com/questions/46554949/how-to-add-native-module-to-cordova-android-project) > How to add native module to Cordova Android project? > ---------------------------------------------------- > > Key: CB-13386 > URL: https://issues.apache.org/jira/browse/CB-13386 > Project: Apache Cordova > Issue Type: Wish > Components: cordova-android > Reporter: Jan Piotrowski (Sujan) > Assignee: Joe Bowser > Priority: Minor > > I want to add a native (integration test) module to a Cordova Android project. > For native projects, you just add a new module, commit and be done with it. But for Cordova I of course don't really want to mess with the generated Android project as some of these changes might be lost on recompile etc. > I got it working manually by having the module folder outside of the Cordova Android folder and adding this to `settings.gradle`: > {quote} > include ':module-androidTest' > project(':module-androidTest').projectDir = new File("../module-tests") > {quote} > But of course line 1 of that file says "// GENERATED FILE - DO NOT EDIT" :( > Is there any other way to add additional modules to a Cordova Android project? > Can I somehow do this with `build-extras.gradle`? (I don't think so as settings.gradle is several steps before build-extras and build.gradle, right?) > StackOverflow suggest manually editing a `GradleBuilder.js` file: https://stackoverflow.com/a/35504783/252627 But of course this would get lost each time I completely generate a new Cordova project. Not a good idea, correct? > Can I maybe work around this somehow via a Cordova plugin? I know these can load frameworks etc - maybe also a module somehow? > Something else? -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org