This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathbuild.gradle
60 lines (51 loc) · 1.73 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
57
58
59
60
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
maven { url 'https://developer.huawei.com/repo/' }
}
dependencies {
classpath group: 'com.huawei.agconnect', name: 'agcp', version: '1.6.0.300'
}
}
plugins {
id 'com.android.application' version '7.4.2' apply false
id 'com.google.gms.google-services' version '4.3.10' apply false
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' version '2.0.1' apply false
}
subprojects {
afterEvaluate {
if (plugins.hasPlugin('com.android.library') ||
plugins.hasPlugin('com.android.application')) {
android {
compileSdkVersion 33
buildToolsVersion '33.0.2'
ndkVersion '23.2.8568313'
lint {
checkReleaseBuilds false
disable 'MissingTranslation', 'ExtraTranslation', 'BlockedPrivateApi'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
coreLibraryDesugaringEnabled true
}
defaultConfig {
minSdkVersion 21
targetSdkVersion 33
}
buildTypes {
play {
initWith release
}
}
}
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.2'
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}