How to add to settings.gradle in cordova

This is the same question that I will be new to comment on it, to see if it found an answer.

Cordoba generates a new settings.gradle file when launching corova build android . I tried using a script to modify this file using interceptors after _prepare before_compile. but no matter what I do, this file is recreated. Has anyone solved this problem? is there any other way to add a module to an android project? also using settings.gradle

I know almost nothing about java or Gradle, so anyone on site will be great.

+4
source share
1 answer

You can include or exclude the dependency using a file build-extras.gradle. This file can be added with the file build.gradlein the same place using the before_buildhook action .

Ask you to check the Cordova White Paper for more information on this. Also check out this example , which explains the exclusion of duplicate modules. The same can be expanded to include the module.

: , settings.gradle, build.gradle. , , , settings.gradle, build.gradle, . gradle thread, build.gradle.

.gradle, build.js Android, , .

, .

+1

All Articles