Fixed gradle scripts

This commit is contained in:
max-klaus 2020-09-30 12:56:11 +03:00
parent 47f2b9a380
commit 9a5e3c438a
2 changed files with 19 additions and 1 deletions

View file

@ -542,6 +542,5 @@ dependencies {
}
implementation 'com.jaredrummler:colorpicker:1.1.0'
//freehuaweiImplementation 'com.huawei.agconnect:agconnect-core:1.4.1.300'
freehuaweiImplementation 'com.huawei.hms:iap:5.0.2.300'
}

View file

@ -4,6 +4,14 @@ buildscript {
google()
mavenCentral()
jcenter()
maven {
url 'https://developer.huawei.com/repo/'
content {
includeGroup 'com.huawei.agconnect'
includeGroup 'com.huawei.hms'
includeGroup 'com.huawei.hmf'
}
}
}
dependencies {
//classpath 'com.android.tools.build:gradle:2.+'
@ -11,6 +19,9 @@ 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")) {
classpath 'com.huawei.agconnect:agcp:1.4.1.300'
}
}
}
@ -32,5 +43,13 @@ allprojects {
maven {
url "https://jitpack.io"
}
maven {
url 'https://developer.huawei.com/repo/'
content {
includeGroup 'com.huawei.agconnect'
includeGroup 'com.huawei.hms'
includeGroup 'com.huawei.hmf'
}
}
}
}