2020-07-01 21:19:55 -07:00
|
|
|
plugins {
|
2024-04-19 17:35:44 -07:00
|
|
|
id 'java'
|
2022-10-15 11:36:41 -07:00
|
|
|
}
|
|
|
|
|
2023-01-30 05:27:13 -08:00
|
|
|
apply from: '../../android/dependencies.gradle'
|
|
|
|
|
2024-04-19 17:35:44 -07:00
|
|
|
java {
|
|
|
|
var boardDir = System.getenv("ABSOLUTE_BOARD_DIR")
|
|
|
|
println("gradle says: ABSOLUTE_BOARD_DIR=" + boardDir)
|
|
|
|
if (boardDir != null) {
|
|
|
|
var customResourcesFolder = boardDir + "/shared_io.resources"
|
|
|
|
if (new File(customResourcesFolder).exists()) {
|
|
|
|
println(customResourcesFolder + " found!")
|
|
|
|
processResources {
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
|
|
|
from(customResourcesFolder)
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
println(customResourcesFolder + " not found.")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-15 11:36:41 -07:00
|
|
|
// TODO: rename folder to core_io
|
2023-01-30 05:27:13 -08:00
|
|
|
// this CORE module cannot depend on model/ini!
|