-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle
54 lines (50 loc) · 1.55 KB
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
name "IMG.LY Artifactory"
url "https://artifactory.img.ly/artifactory/maven"
mavenContent {
includeGroup("ly.img")
}
}
}
}
rootProject.name = "CE.SDK Android"
if (file("smoke-tests-app").exists()) {
include ':smoke-tests-app'
}
new File(rootDir, "sources").listFiles().each {
if (it.isDirectory() && it.name.startsWith("editor") || it.name.startsWith("camera")) {
include ":${it.name}"
project(":${it.name}").projectDir = it
}
}
// Internal use only
def ubqRootPath = "../../"
def useLocalEngine = {
def propertiesFile = new File(rootDir, "local.properties")
if (!propertiesFile.exists()) return false
def properties = new Properties()
properties.load(propertiesFile.newDataInputStream())
properties.containsKey("useLocalEngine") && properties.getProperty("useLocalEngine").toBoolean()
}
if (System.getenv("UBQ_USE_LOCAL_ENGINE") == "true" || useLocalEngine()) {
includeBuild("$ubqRootPath/bindings/android") {
name "engine"
dependencySubstitution {
substitute module('ly.img:engine') using project(':engine')
substitute module('ly.img:engine-camera') using project(':engine-camera')
}
}
}
// Internal use only