-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.gradle.kts
49 lines (43 loc) · 1.36 KB
/
settings.gradle.kts
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
import java.util.*
rootProject.name = "SVG-to-Compose-parent"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
repositories {
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
gradlePluginPortal()
mavenCentral()
maven("https://s01.oss.sonatype.org/content/repositories/releases/")
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
versionCatalogs {
create("sampleLibs") {
from(files("sample-app/gradle/libs.versions.toml"))
}
}
}
}
include(":svg-to-compose")
val localPropertiesFile = file("local.properties")
if (localPropertiesFile.exists()) {
val properties = Properties().apply {
load(file("local.properties").reader())
}
// Sample app is a development tool to understand if the changes
// are not going to change the way end result of the icon in the
// Jetpack Compose Preview.
if (properties["enable_sample_app"]?.toString()?.toBoolean() == true) {
include(":sample-app")
}
}