-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
70 lines (60 loc) · 2.99 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
61
62
63
64
65
66
67
68
69
70
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.4.0' apply false
id 'com.android.library' version '7.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.21' apply false
id("com.google.dagger.hilt.android") version "2.44" apply false
}
ext {
isDebug = false //调试和正式模式切换
android = [
compileSdk : 33,
minSdk : 24,
targetSdk : 33,
versionCode: 1,
versionName: "1.0"
]
applicationID = [
"app" : "com.fs.jectpack",
"main" : "com.fs.module.home",
"category": "com.fs.module.category"
]
compose_version = '1.4.0-alpha02'
library = [
"appcompat" : 'androidx.appcompat:appcompat:1.6.0',
"material" : 'com.google.android.material:material:1.8.0',
"constraintlayout": 'androidx.constraintlayout:constraintlayout:2.1.4',
// Added Dependencies
"recyclerview" : "androidx.recyclerview:recyclerview:1.2.1",
"lifeExtensions" : "android.arch.lifecycle:extensions:1.1.1",
"lifeViewModel" :'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1',
"lifecycleRuntime" : 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1',
"glide" : 'com.github.bumptech.glide:glide:4.12.0',
"activityKtx" : 'androidx.activity:activity-ktx:1.4.0',
"fragmentKtx" : 'androidx.fragment:fragment-ktx:1.4.0',
"composeUi" : 'androidx.compose.ui:ui:1.4.0-alpha02',
"composeMaterial" : 'androidx.compose.material:material:1.4.0-alpha02',
"activityCompose" : 'androidx.activity:activity-compose:1.3.1',
"composeTool" : 'androidx.compose.ui:ui-tooling-preview:1.4.0-alpha02',
"viewModelCompose" : 'androidx.lifecycle:lifecycle-viewmodel-compose:2.4.1'
]
libARouter = "com.alibaba:arouter-api:1.5.2"
libARouterCompiler = "com.alibaba:arouter-compiler:1.5.2"
//网络框架
// 第一条依赖是下载Retrofit、OkHttp和Okio这几个库,我们就不需要手动引入OkHttp库了;
//第二条依赖是一个Retrofit的转换库,它是借助GSON来解析JSON数据的,所以也会将GSON库一起下载。
retrofit = "com.squareup.retrofit2:retrofit:2.6.0"
retrofitConverterGson = "com.squareup.retrofit2:converter-gson:2.0.0"
okHttp3Log = "com.squareup.okhttp3:logging-interceptor:4.9.0"
mmkv = "com.tencent:mmkv-static:1.2.8"
// 协程Android支持库
androidCoroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1"
// 协程核心库
coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1"
//jectpack -hilt
hilt = "com.google.dagger:hilt-android:2.44"
hiltCompiler = "com.google.dagger:hilt-android-compiler:2.44"
//jectpack - startup
startUp = "androidx.startup:startup-runtime:1.1.1"
//jectpack - compose
}