Files
jellyfin-androidtv/settings.gradle.kts
T

22 lines
718 B
Kotlin

include(":app")
// Load properties from local.properties
val properties = java.util.Properties().apply {
val location = file("local.properties")
if (location.exists())
load(location.inputStream())
}
// Get value for dependency substitution
val enableDependencySubstitution = properties.getProperty("enable.dependency.substitution", "true").equals("true", true)
// Replace apiclient dependency with local version
val apiclientLocation = "../jellyfin-apiclient-java"
if (File(apiclientLocation).exists() && enableDependencySubstitution) {
includeBuild(apiclientLocation) {
dependencySubstitution {
substitute(module("com.github.jellyfin.jellyfin-apiclient-java:android")).with(project(":android"))
}
}
}