cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-13386) How to add native module to Cordova Android project?
Date Tue, 03 Oct 2017 23:28:00 GMT

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

Joe Bowser commented on CB-13386:
---------------------------------

https://github.com/apache/cordova-plugin-inappbrowser/pull/242

> 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


Mime
View raw message