-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathbuild.gradle
43 lines (41 loc) · 1.43 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.9.20'
ext.camerax_version = '1.3.4'
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
maven {
url "https://mvnrepository.com"
}
//华为推送
maven {url 'https://developer.huawei.com/repo/'}
}
dependencies {
classpath 'com.android.tools.build:gradle:8.8.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
//华为推送
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// classpath 'com.google.gms.google-services:4.4.1'
classpath 'com.google.gms:google-services:4.4.2' // 使用最新版本
}
}
allprojects {
configurations.configureEach {
resolutionStrategy.force "androidx.camera:camera-core:$camerax_version"
resolutionStrategy.force "androidx.camera:camera-camera2:$camerax_version"
resolutionStrategy.force "androidx.camera:camera-lifecycle:$camerax_version"
resolutionStrategy.force "androidx.camera:camera-view:$camerax_version"
}
}
project.ext {
minSdkVersion = 21
targetSdkVersion = 34
compileSdkVersion = 34
buildToolsVersion = "34.0.0"
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
}