conditionally use local api client
This commit is contained in:
parent
e3e846b225
commit
692ea5efee
3 changed files with 18 additions and 13 deletions
|
|
@ -1,7 +1,12 @@
|
|||
include ':app'
|
||||
|
||||
// include ':apiclient'
|
||||
// project(':apiclient').projectDir = new File(settingsDir, '../jellyfin-apiclient-java/android')
|
||||
def enableDependencySubstitution = properties.get('enable.dependency.substitution', 'true').equalsIgnoreCase('true')
|
||||
def apiClientLocation = '../jellyfin-apiclient-java'
|
||||
|
||||
// include ':library'
|
||||
// project(':library').projectDir = new File(settingsDir, '../jellyfin-apiclient-java/library')
|
||||
if (new File(apiClientLocation).exists() && enableDependencySubstitution) {
|
||||
includeBuild(apiClientLocation) {
|
||||
dependencySubstitution {
|
||||
substitute module('com.github.jellyfin.jellyfin-apiclient-java:android') with project(':android')
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue