-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
110 lines (94 loc) · 3.28 KB
/
Copy pathsettings.gradle.kts
File metadata and controls
110 lines (94 loc) · 3.28 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import java.io.FileInputStream
import java.util.Properties
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
maven {
url = uri("https://api.mapbox.com/downloads/v2/releases/maven")
authentication {
create<BasicAuthentication>("basic")
}
credentials {
val prop = loadProperties("local.properties")
val mapBoxSecretToken: String? = prop.getProperty("MAPBOX_SECRET_TOKEN")
gradle.settingsEvaluated {
if (mapBoxSecretToken == null) {
throw GradleException("MAPBOX_SECRET_TOKEN is not defined in local.properties")
}
}
// Do not change the username below.
// This should always be `mapbox` (not your username).
username = "mapbox"
// Use the secret token you stored in local.properties as the password
password = mapBoxSecretToken
}
}
// Declare the Node.js download repository
ivy {
name = "Node.js"
setUrl("https://nodejs.org/dist/")
patternLayout {
artifact("v[revision]/[artifact](-v[revision]-[classifier]).[ext]")
}
metadataSources {
artifact()
}
content {
includeModule("org.nodejs", "node")
}
}
}
}
fun loadProperties(path: String): Properties =
FileInputStream(path).use { inputStream ->
Properties().apply {
load(inputStream)
}
}
rootProject.name = "Animeal"
include(":app")
include(":feature:debugmenu")
include(":feature:signupflow:entercode")
include(":feature:signupflow:enterphone")
include(":feature:signupflow:finishprofile")
include(":feature:signupflow:onboarding")
include(":feature:signupflow:signup")
include(":feature:splash")
include(":feature:tabsflow:analytics")
include(":feature:tabsflow:favourites")
include(":feature:tabsflow:home")
include(":feature:tabsflow:moreflow:about")
include(":feature:tabsflow:moreflow:donate")
include(":feature:tabsflow:moreflow:faq")
include(":feature:tabsflow:moreflow:host")
include(":feature:tabsflow:moreflow:more")
include(":feature:tabsflow:moreflow:profile")
include(":feature:tabsflow:search")
include(":feature:tabsflow:tabs")
include(":library:analytics")
include(":library:api")
include(":library:auth")
include(":library:codegen")
include(":library:common")
include(":library:extensions")
include(":library:foundation")
include(":library:geolocation")
include(":library:navigation")
include(":library:network")
include(":library:resources")
include(":library:token")
include(":shared:feature:camera")
include(":shared:feature:debugmenu")
include(":shared:feature:feeding")
include(":shared:feature:feedings")
include(":shared:feature:networkstorage")
include(":shared:feature:networkuser")
include(":shared:feature:permissions")
include(":shared:feature:profile")
include(":shared:feature:router")
include(":shared:feature:timer")
include(":shared:feature:users")