Guo_shaoshan
2023-04-04 717bcb657c22156cb99468ae1649c55ac20d15dd
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
71
72
73
74
plugins {
    id 'com.android.library'
}
 
android {
    namespace 'com.android.app_base'
    compileSdk 33
 
    defaultConfig {
        minSdk 24
        targetSdk 33
 
        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_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    buildFeatures{
        dataBinding = true
    }
}
 
dependencies {
 
    api fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'androidx.appcompat:appcompat:1.6.1'
    implementation 'com.google.android.material:material:1.8.0'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
 
    //blankj工具类
    api 'com.blankj:utilcodex:1.31.1'
 
    //Retrofit+Okhttp+Rxjava(Retrofit2内置了okhttp)
    api 'com.squareup.retrofit2:retrofit:2.9.0'
    api 'com.squareup.retrofit2:converter-gson:2.9.0'//gson转换和
    api 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'//对Rxjava适配
    api 'com.squareup.retrofit2:retrofit-converters:2.4.0'//数据解析器
    api 'com.squareup.retrofit2:retrofit-adapters:2.4.0'//相关适配
    api 'com.squareup.okhttp3:okhttp:4.10.0'
    api 'com.squareup.okhttp3:logging-interceptor:4.10.0'
    api "io.reactivex.rxjava2:rxjava:2.2.21"
    api 'io.reactivex.rxjava2:rxandroid:2.1.1'
 
    //Cookie 持久化
    api 'com.github.franmontiel:PersistentCookieJar:v1.0.1'
 
    // 标题栏框架:https://github.com/getActivity/TitleBar
    api 'com.github.getActivity:TitleBar:10.0'
 
    // 屏幕适配
    api 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1'
 
    // 基础依赖包,必须要依赖
    api 'com.geyifeng.immersionbar:immersionbar:3.2.2'
    // kotlin扩展(可选)
//    implementation 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.2'
    //图片相关
    api 'com.github.bumptech.glide:glide:4.11.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
    //内存泄露工具
    debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.9.1'
 
}