This repository has been archived by the owner on May 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
56 lines (50 loc) · 1.54 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Created by Evgeniya Zemlyanaya (@zzemlyanaya)
* Copyright (c) 2021 . All rights reserved.
* Last modified 09.08.2021, 19:50
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven { url 'https://developer.huawei.com/repo/' }
jcenter()
mavenCentral()
google()
}
apply from: 'dependencies.gradle'
ext {
versions.kotlin = '1.5.21'
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$versions.detekt"
classpath 'com.google.gms:google-services:4.3.10'
classpath "com.huawei.agconnect:agcp:$versions.huaweiServices"
}
}
apply from: 'dependencies.gradle'
apply from: 'detekt.gradle'
allprojects {
repositories {
maven { url 'https://developer.huawei.com/repo/' }
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
google()
}
}
subprojects { subproject ->
afterEvaluate{
if((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
android {
compileSdkVersion versions.compileSdk
buildToolsVersion versions.buildTools
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext.BaseAndroidLibraryModule = "$rootDir/base-android-library.gradle"