mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
36 lines
926 B
Groovy
36 lines
926 B
Groovy
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
rootProject.buildDir = '../build'
|
|
subprojects {
|
|
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
|
}
|
|
|
|
subprojects { subproject ->
|
|
// Only works on com.android.application(the main app module)
|
|
if (subproject.plugins.hasPlugin('com.android.application')) {
|
|
subproject.afterEvaluate {
|
|
android.buildTypes.matching { it.name == 'profile' }.all { buildType ->
|
|
buildType.applicationIdSuffix = ".profile"
|
|
buildTypes.profile.resValue 'string', 'app_name', 'SrvBxP'
|
|
}
|
|
android.buildTypes.matching { it.name == 'debug' }.all { buildType ->
|
|
buildType.applicationIdSuffix = ".debug"
|
|
buildTypes.debug.resValue 'string', 'app_name', 'SrvBxD'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
project.evaluationDependsOn(':app')
|
|
}
|
|
|
|
tasks.register("clean", Delete) {
|
|
delete rootProject.buildDir
|
|
}
|