mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2026-10-26 16:45:23 +00:00
22 lines
718 B
Kotlin
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"))
|
|
}
|
|
}
|
|
}
|