-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
29 lines (27 loc) · 960 Bytes
/
build.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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
dependencies {
if (Boolean.valueOf(useLocal)) {
classpath files("plugins/plugin.jar")
} else {
classpath libs.routerPluginLib
}
}
}
plugins {
alias libs.plugins.android.application apply false
alias libs.plugins.android.library apply false
alias libs.plugins.kotlin.android apply false
alias libs.plugins.google.ksp apply false
alias libs.plugins.kotlin.jvm apply false
}
subprojects.forEach {
it.afterEvaluate {
def isAndroid = (it.plugins.hasPlugin('com.android.application')
|| it.plugins.hasPlugin('com.android.library'))
def isModule = it.name.startsWith('module') || it.name.startsWith('app') || it.name.startsWith('lib_base')
if (isAndroid && isModule) {
it.plugins.apply('aleyn-router')
}
}
}