-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.gradle
40 lines (36 loc) · 1.29 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
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url = uri("https://maven.tesseract.one/Tesseract.android")
}
}
}
def projectDir = rootProject.projectDir
def localPropsFile = new File(projectDir, 'local.properties')
Properties properties = new Properties()
properties.load(localPropsFile.newDataInputStream())
def devModeString = properties.getProperty('tesseract.devmode')
def devMode = devModeString == null ? false : devModeString == "true"
if(devMode) {
includeBuild('../Tesseract.android') {
dependencySubstitution {
substitute module('one.tesseract:crabdroid') using project(':java:crabdroid')
substitute module('one.tesseract:detached-activity') using project(':java:detached-activity')
substitute module('one.tesseract:base') using project(':java:base')
substitute module('one.tesseract:client-transport-ipc') using project(':java:client-transport-ipc')
}
}
}
rootProject.name = "Polkadot SmartContract Demo Chat"
include ':android'
project(":android").name = "polkachat"