forked from CarGuo/GSYVideoPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
115 lines (86 loc) · 3.46 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
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
apply plugin: 'com.android.application'
android {
def globalConfiguration = rootProject.extensions.getByName("ext")
compileSdkVersion globalConfiguration.androidCompileSdkVersion
buildToolsVersion globalConfiguration.androidBuildToolsVersion
defaultConfig {
applicationId "com.example.gsyvideoplayer"
multiDexEnabled true
minSdkVersion globalConfiguration.androidMinSdkVersion
targetSdkVersion globalConfiguration.androidTargetSdkVersion
versionCode 6
versionName "5.0.0"
javaCompileOptions {
annotationProcessorOptions.includeCompileClasspath = true
}
ndk {
//设置支持的SO库架构
abiFilters 'armeabi', 'armeabi-v7a', 'x86'
}
}
signingConfigs {
releaseConfig {
storeFile file("../debug.jks")
storePassword "123456"
keyAlias "debug"
keyPassword "123456"
}
}
buildTypes {
release {
minifyEnabled false
signingConfig signingConfigs.releaseConfig
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
compileOptions { targetCompatibility JavaVersion.VERSION_1_8 }
lintOptions {
abortOnError false
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
def viewDependencies = rootProject.ext.viewDependencies
def androidDependencies = rootProject.ext.androidDependencies
def dataDependencies = rootProject.ext.dataDependencies
annotationProcessor viewDependencies.apt_butterKnife
implementation viewDependencies.butterKnife
implementation androidDependencies.recyclerView
implementation viewDependencies.DanmakuFlameMaster
implementation viewDependencies.ndkbitmap_armv7a
implementation viewDependencies.ndkbitmap_armv5
implementation viewDependencies.ndkbitmap_x86
implementation viewDependencies.glide
implementation viewDependencies.glideProcessor
implementation androidDependencies.support_v4
implementation androidDependencies.design
implementation androidDependencies.viewpager2
implementation project(':gsyVideoPlayer')
implementation dataDependencies.okhttpUtil
implementation dataDependencies.okhttp
implementation(dataDependencies.permissionsdispatcher) {
// if you don't use android.app.Fragment you can exclude support for them
exclude module: "support-v13"
}
annotationProcessor dataDependencies.permissionsdispatcherProcessor
//jcenter
//implementation "com.shuyu:GSYVideoPlayer:$gsyVideoVersion"
//implementation "com.shuyu:gsyVideoPlayer-java:$gsyVideoVersion'
//implementation "com.shuyu:gsyVideoPlayer-armv5:$gsyVideoVersion"
//implementation "com.shuyu:gsyVideoPlayer-armv7a:$gsyVideoVersion"
//implementation "com.shuyu:gsyVideoPlayer-arm64:$gsyVideoVersion"
//implementation "com.shuyu:gsyVideoPlayer-x64:$gsyVideoVersion"
//implementation "com.shuyu:gsyVideoPlayer-x86:$gsyVideoVersion"
//implementation "com.shuyu:gsyVideoPlayer-ex_so:$gsyVideoVersion"
debugImplementation dataDependencies.leakcanary
releaseImplementation dataDependencies.leakcanary_no_op
}