Fix huawei build

(cherry picked from commit 1bdc56d52a)
This commit is contained in:
max-klaus 2021-03-17 18:59:52 +03:00 committed by Vitaliy
parent 75316bd12c
commit 4c4196aa2b

View file

@ -14,7 +14,7 @@ buildscript {
classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
if (gradle.startParameter.taskNames.toString().contains("huawei")) {
if (gradle.startParameter.taskNames.toString().toLowerCase().contains("huawei")) {
classpath 'com.huawei.agconnect:agcp:1.4.1.300'
}
}