lmw
2025-04-24 718f31c92e2029d05260810435a2c70cef6e6ce5
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
 
android {
    compileSdkVersion 30
    buildToolsVersion "29.0.3"
 
    defaultConfig {
        applicationId "com.sinata.xqmuse"
        minSdkVersion 23
        targetSdkVersion 30
        versionCode 12
        versionName "1.83"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
 
    //签名
    signingConfigs {
        release {
            storeFile file("xqmuse.jks")
            storePassword "sinata"
            keyAlias "xqmuse"
            keyPassword "sinata"
        }
    }
 
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
 
    //netty 必须屏蔽这几个文件
    packagingOptions {
        exclude 'META-INF/NOTICE' // will not include NOTICE file
        exclude 'META-INF/LICENSE' // will not include LICENSE file
        //netty files
        exclude 'META-INF/INDEX.LIST' // will not include this file
        exclude 'META-INF/io.netty.versions.properties' // will not include this file
    }
 
    configurations.all {
        resolutionStrategy {
            //force 'androidx.core:core-ktx:1.6.0'
            force 'androidx.core:core:1.3.2'
        }
    }
 
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
 
            applicationVariants.all { variant ->
                // 更新至Android Studio 3.3 gradle 4.10.1
                variant.outputs.all {
                    outputFileName = "xqmuse-${defaultConfig.versionName}-${new Date().format("yyyy-MM-dd" , TimeZone.getTimeZone("GMT+08")) }.apk"
                }
            }
//            ndk {
//                abiFilters "armeabi-v7a","arm64-v8a" // 保留这种架构的CPU
//            }
        }
 
        debug {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
//            ndk {
//                abiFilters "armeabi-v7a" ,"arm64-v8a" // 保留这种架构的CPU
//            }
        }
    }
 
    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
        }
    }
 
}
 
repositories {
    // 支付宝 SDK AAR 包所需的配置
    flatDir {
        dirs 'libs','../umeng_sdk/libs'
    }
}
 
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation "androidx.appcompat:appcompat:$androidx_version"
    implementation 'androidx.core:core-ktx:1.3.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation project(path: ':xldutils-kotlin')
    implementation 'com.google.android.material:material:1.2.1'
//    implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
    implementation 'com.youth.banner:banner:2.1.0'
    implementation project(path: ':umeng_sdk')
//    implementation project(path: ':zxinglibrary')
    implementation 'top.zibin:Luban:1.1.8'//图片压缩
 
//    implementation 'com.haibin:calendarview:3.6.9'//日历
//    implementation 'cn.bingoogolapple:bga-qrcode-zxing:1.3.7'//二维码
    implementation 'com.github.bumptech.glide:glide:4.11.0'//必须集成
    annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0'
//    implementation 'com.aliyun.dpa:oss-android-sdk:2.9.2'
//    implementation 'com.huawei.storage:esdk-obs-android:3.1.3' //obs
 
    implementation 'com.scwang.smart:refresh-layout-kernel:2.0.3'
    implementation 'com.scwang.smart:refresh-header-classics:2.0.3'    //经典刷新头
    implementation 'com.scwang.smart:refresh-header-material:2.0.3' //谷歌刷新头
    implementation 'io.github.lucksiege:pictureselector:v2.7.0-rc02'
    implementation 'com.github.penfeizhou.android.animation:apng:2.26.0' //动画
    implementation 'com.amap.api:location:latest.integration' //定位
 
    //播放器
    implementation 'xyz.doikki.android.dkplayer:dkplayer-java:3.3.7'// # 必选,内部默认使用系统mediaplayer进行解码
    implementation 'xyz.doikki.android.dkplayer:dkplayer-ui:3.3.7' //# 可选,包含StandardVideoController的实现
    implementation 'xyz.doikki.android.dkplayer:videocache:3.3.7' //# 可选,如需要缓存或者抖音预加载功能请引入此库
//    implementation 'xyz.doikki.android.dkplayer:player-ijk:3.3.7'
//    implementation 'xyz.doikki.android.dkplayer:player-exo:3.3.7' //# 可选,使用exoplayer进行解码
    //exo
    api "com.google.android.exoplayer:exoplayer-core:2.19.1"
    api "com.google.android.exoplayer:exoplayer-dash:2.19.1"
    api "com.google.android.exoplayer:exoplayer-hls:2.19.1"
    api "com.google.android.exoplayer:exoplayer-rtsp:2.19.1"
    api "com.google.android.exoplayer:extension-rtmp:2.19.1"
 
    implementation project(path: ':easyfloat')
}