mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
CB-3445: Read project.properties to configure gradle libraries
This commit is contained in:
@@ -1 +1,18 @@
|
||||
include ':CordovaLib', ':'
|
||||
import java.util.regex.Pattern
|
||||
|
||||
def getProjectList() {
|
||||
def manifestFile = file("project.properties")
|
||||
def pattern = Pattern.compile("android.library.reference.(\\d+)\\s*=\\s*(.*)")
|
||||
def matcher = pattern.matcher(manifestFile.getText())
|
||||
def projects = []
|
||||
while (matcher.find()) {
|
||||
projects.add(":" + matcher.group(2).replace("/",":"))
|
||||
}
|
||||
return projects
|
||||
}
|
||||
|
||||
for (subproject in getProjectList()) {
|
||||
include subproject
|
||||
}
|
||||
|
||||
include ':'
|
||||
|
||||
Reference in New Issue
Block a user