[gradle 整理]
This commit is contained in:
yangyakun
2023-04-19 15:39:21 +08:00
parent 8db14739ae
commit 668f8ec84f
16 changed files with 149 additions and 107 deletions

View File

@@ -30,6 +30,24 @@ boolean isPassenger() {
return false
}
boolean isJL() {
for (String s : gradle.startParameter.taskNames) {
if (s.contains("OchJL") | s.contains("ochJL")) {
return true
}
}
return false
}
boolean isM2() {
for (String s : gradle.startParameter.taskNames) {
if (s.contains("OchM2") | s.contains("ochM2")) {
return true
}
}
return false
}
boolean isCurrentFlavors(String flavors){
for (String s : gradle.startParameter.taskNames) {
@@ -47,5 +65,6 @@ ext {
isCurrentFlavors = this.&isCurrentFlavors
isCurrentDriver = this.&isCurrentDriver
isCurrentPassenger = this.&isCurrentPassenger
isJL = this.&isJL
isM2 = this.&isM2
}