build.gradle
2.36 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
apply plugin: 'com.android.library'
apply plugin: 'com.alipay.apollo.baseline.config'
android {
compileSdkVersion 29
buildToolsVersion "30.0.3"
defaultConfig {
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
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
}
resourcePrefix "public_"
sourceSets {
main {
res {
srcDirs 'src\\main\\res', 'src\\main\\res\\layout', 'src\\main\\res\\value'
}
}
} //给 Module 内的资源名增加前缀, 避免资源名冲突
}
dependencies {
implementation platform("com.mpaas.android:$mpaas_artifact:$mpaas_baseline")
api fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
//权限和对话框
implementation 'com.yanzhenjie:permission:2.0.0-rc4'
implementation 'com.tencent:mmkv-static:1.2.7'
//优化PreferenceManager过时问题
api 'androidx.preference:preference:1.1.1'
//GSY视频播放器 更新版本8.1.3-->8.1.6 2022.9.21 再升级到1.6以上会涉及到androidx.core 1.7版本的兼容问题
api ('com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v8.1.6-jitpack')
api ('com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer-exo2:v8.1.6-jitpack')
api ('com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v8.1.6-jitpack')
// api 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-java:v8.4.0-release-jitpack'
// //是否需要ExoPlayer模式
// api 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer-exo2:v8.4.0-release-jitpack'
// //更多ijk的编码支持
// api 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v8.4.0-release-jitpack'
api 'com.blankj:utilcode:1.30.6'
}