Fix huawei build

This commit is contained in:
max-klaus 2021-03-17 18:59:52 +03:00
parent 078e037ac2
commit 1bdc56d52a

View file

@ -14,7 +14,7 @@ buildscript {
classpath 'com.google.gms:google-services:3.0.0' classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 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' classpath 'com.huawei.agconnect:agcp:1.4.1.300'
} }
} }