-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (46 loc) · 1.57 KB
/
build.gradle
File metadata and controls
57 lines (46 loc) · 1.57 KB
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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'org.jetbrains.kotlin.android'
}
android {
compileSdk = 36
defaultConfig {
minSdk = 21
targetSdk = 36
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
coreLibraryDesugaringEnabled true
}
kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_21
}
}
namespace 'net.xzos.upgradeall.core.utils'
}
dependencies {
// Core library desugaring for Java 8+ API support on older Android versions
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
implementation "androidx.core:core-ktx:$android_ktx_version"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'
// kotlin 协程
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutines_version"
// Versioning
implementation 'org.apache.maven:maven-artifact:3.9.12'
// 字符串匹配;日志打印去除转义字符
implementation 'org.apache.commons:commons-text:1.15.0'
}