Add logic to automatically pick up jar/aar library dependencies in the res://addons directory
This commit is contained in:
parent
5e0805a813
commit
4587d14796
3 changed files with 14 additions and 0 deletions
|
|
@ -63,6 +63,12 @@ dependencies {
|
|||
implementation files(pluginsBinaries)
|
||||
}
|
||||
|
||||
// Automatically pick up local dependencies in res://addons
|
||||
String addonsDirectory = getAddonsDirectory()
|
||||
if (addonsDirectory != null && !addonsDirectory.isBlank()) {
|
||||
implementation fileTree(dir: "$addonsDirectory", include: ['*.jar', '*.aar'])
|
||||
}
|
||||
|
||||
// .NET dependencies
|
||||
String jar = '../../../../modules/mono/thirdparty/libSystem.Security.Cryptography.Native.Android.jar'
|
||||
if (file(jar).exists()) {
|
||||
|
|
|
|||
|
|
@ -408,3 +408,8 @@ ext.shouldUseLegacyPackaging = { ->
|
|||
// Default behavior for minSdk >= 23
|
||||
return false
|
||||
}
|
||||
|
||||
ext.getAddonsDirectory = { ->
|
||||
String addonsDirectory = project.hasProperty("addons_directory") ? project.property("addons_directory") : ""
|
||||
return addonsDirectory
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue