-
Notifications
You must be signed in to change notification settings - Fork 316
Expand file tree
/
Copy pathbuild.gradle
More file actions
70 lines (57 loc) · 1.86 KB
/
Copy pathbuild.gradle
File metadata and controls
70 lines (57 loc) · 1.86 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
58
59
60
61
62
63
64
65
66
67
68
69
70
plugins {
id('com.android.library')
id('org.jetbrains.kotlin.android')
}
android {
namespace 'com.pengxh.kt.lite'
compileSdk 36
lint {
disable 'NewerVersionAvailable'
disable 'GradleDependency'
}
defaultConfig {
minSdk 26
consumerProguardFiles('consumer-rules.pro')
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
buildFeatures {
buildConfig true
viewBinding true
}
}
dependencies {
// 基础 AndroidX(版本保持兼容 Java 11)
implementation 'androidx.core:core-ktx:1.15.0'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.recyclerview:recyclerview:1.3.2'
// 网络相关(统一版本,避免冲突)
implementation 'com.squareup.retrofit2:retrofit:2.11.0'
implementation 'com.squareup.retrofit2:converter-gson:2.11.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.11.0'
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
//图片加载
implementation 'com.github.bumptech.glide:glide:4.16.0'
//官方Json解析库
implementation 'com.google.code.gson:gson:2.11.0'
// Kotlin 协程/MVVM
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.7'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7'
//Socket
implementation 'io.netty:netty-all:4.1.23.Final'
}