-
-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
63 lines (56 loc) · 2.07 KB
/
settings.gradle.kts
File metadata and controls
63 lines (56 loc) · 2.07 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
rootProject.name = "morphe-patches"
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
google()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/MorpheApp/registry")
credentials {
username = providers.gradleProperty("gpr.user").getOrElse(System.getenv("GITHUB_ACTOR"))
password = providers.gradleProperty("gpr.key").getOrElse(System.getenv("GITHUB_TOKEN"))
}
}
// Obtain baksmali/smali from source builds - https://github.com/iBotPeaches/smali
// Remove when official smali releases come out again.
maven { url = uri("https://jitpack.io") }
}
}
plugins {
id("app.morphe.patches") version "1.3.2"
}
settings {
extensions {
defaultNamespace = "app.morphe.extension"
// Must resolve to an absolute path (not relative),
// otherwise the extensions in subfolders will fail to find the proguard config.
proguardFiles(rootProject.projectDir.resolve("extensions/proguard-rules.pro").toString())
}
}
include(":patches:stub")
// Include morphe-patcher as composite builds if they exist locally
mapOf(
"morphe-patcher" to "app.morphe:morphe-patcher",
).forEach { (libraryPath, libraryName) ->
val libDir = file("../$libraryPath")
if (libDir.exists()) {
includeBuild(libDir) {
dependencySubstitution {
substitute(module(libraryName)).using(project(":"))
}
}
}
}
// Include morphe-patches-library as composite build if it exists locally.
// It is a multi-module project, so each artifact maps to a specific subproject.
file("../morphe-patches-library").let { libDir ->
if (libDir.exists()) {
includeBuild(libDir) {
dependencySubstitution {
substitute(module("app.morphe:morphe-patches-library")).using(project(":patch-library"))
substitute(module("app.morphe:morphe-extensions-library")).using(project(":extension-library"))
}
}
}
}