Skip to content

Commit 74bc3bc

Browse files
committed
完善视频播放器内核库
1 parent c2a7152 commit 74bc3bc

File tree

11 files changed

+23
-707
lines changed

11 files changed

+23
-707
lines changed

AudioPlayer/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'com.android.library'
22
apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle"
3+
apply plugin: 'com.github.dcendents.android-maven'
34

45

56
android {

Demo/build.gradle

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ dependencies {
6767
implementation 'com.github.ctiao:DanmakuFlameMaster:0.9.25'
6868
implementation 'com.github.ctiao:ndkbitmap-armv7a:0.9.21'
6969

70+
implementation 'com.github.yangchong211.YCVideoPlayer:VideoCache:v1.0.0'
71+
implementation 'com.github.yangchong211.YCVideoPlayer:VideoPlayer:v1.0.0'
72+
implementation 'com.github.yangchong211.YCVideoPlayer:VideoKernel:v1.0.0'
73+
implementation 'com.github.yangchong211.YCVideoPlayer:VideoView:v1.0.0'
74+
implementation 'com.github.yangchong211.YCVideoPlayer:MusicPlayer:v1.0.0'
75+
implementation 'com.github.yangchong211.YCVideoPlayer:VideoM3u8:v1.0.0'
76+
implementation 'com.github.yangchong211.YCVideoPlayer:VideoSqlLite:v1.0.0'
77+
7078
implementation project(path: ':VideoCache')
7179
implementation project(path: ':VideoPlayer')
7280
implementation project(path: ':VideoKernel')
@@ -77,19 +85,9 @@ dependencies {
7785
implementation project(path: ':AudioPlayer')
7886
implementation project(path: ':VideoTool')
7987

80-
// implementation 'cn.yc:MusicPlayer:1.0.2'
81-
// implementation 'cn.yc:VideoPlayer:3.1.0'
82-
// implementation 'cn.yc:VideoCache:3.0.5'
83-
// implementation 'cn.yc:VideoKernel:3.0.6'
84-
// implementation 'cn.yc:VideoView:3.0.5'
85-
// implementation 'cn.yc:VideoM3u8:1.0.0'
86-
// implementation 'cn.yc:VideoSqlLite:1.0.2'
87-
88-
8988
//自己封装的库,都有对应的案例项目【欢迎star】:https://github.com/yangchong211
9089
implementation 'cn.yc:YCStatusBarLib:1.5.0'
9190
implementation 'com.yc:PagerLib:1.0.4'
9291
implementation 'cn.yc:YCStateLib:1.2.2'
9392

94-
9593
}

MusicPlayer/build.gradle

Lines changed: 1 addition & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apply plugin: 'com.android.library'
22
apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle"
3-
3+
apply plugin: 'com.github.dcendents.android-maven'
44

55
android {
66
compileSdkVersion project.ext.androidCompileSdkVersion
@@ -28,119 +28,5 @@ dependencies {
2828
implementation project(path: ':VideoTool')
2929
}
3030

31-
/** 以下开始是将Android Library上传到jcenter的相关配置**/
32-
apply plugin: 'com.github.dcendents.android-maven'
33-
apply plugin: 'com.jfrog.bintray'
34-
35-
//项目主页
36-
def siteUrl = 'https://github.com/yangchong211/YCVideoPlayer' // project homepage
37-
//项目的版本控制地址
38-
def gitUrl = 'https://github.com/yangchong211/YCVideoPlayer.git' // project git
39-
40-
//发布到组织名称名字,必须填写
41-
group = "cn.yc"
42-
//发布到JCenter上的项目名字,必须填写
43-
def libName = "MusicPlayer"
44-
// 版本号,下次更新是只需要更改版本号即可
45-
version = "1.0.2"
46-
47-
//生成源文件
48-
task sourcesJar(type: Jar) {
49-
from android.sourceSets.main.java.srcDirs
50-
classifier = 'sources'
51-
}
52-
//生成文档
53-
task javadoc(type: Javadoc) {
54-
source = android.sourceSets.main.java.srcDirs
55-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
56-
options.encoding "UTF-8"
57-
options.charSet 'UTF-8'
58-
options.author true
59-
options.version true
60-
options.links "https://github.com/linglongxin24/FastDev/tree/master/mylibrary/docs/javadoc"
61-
failOnError false
62-
}
63-
64-
//文档打包成jar
65-
task javadocJar(type: Jar, dependsOn: javadoc) {
66-
classifier = 'javadoc'
67-
from javadoc.destinationDir
68-
}
69-
//拷贝javadoc文件
70-
task copyDoc(type: Copy) {
71-
from "${buildDir}/docs/"
72-
into "docs"
73-
}
74-
75-
//上传到jcenter所需要的源码文件
76-
artifacts {
77-
archives javadocJar
78-
archives sourcesJar
79-
}
80-
81-
// 配置maven库,生成POM.xml文件
82-
install {
83-
repositories.mavenInstaller {
84-
// This generates POM.xml with proper parameters
85-
pom {
86-
project {
87-
packaging 'aar'
88-
//项目描述,自由填写
89-
name 'This is music player lib'
90-
url siteUrl
91-
licenses {
92-
license {
93-
//开源协议
94-
name 'The Apache Software License, Version 2.0'
95-
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
96-
}
97-
}
98-
developers {
99-
developer {
100-
//开发者的个人信息,根据个人信息填写
101-
id 'yangchong'
102-
name 'yc'
103-
email 'yangchong211@163.com'
104-
}
105-
}
106-
scm {
107-
connection gitUrl
108-
developerConnection gitUrl
109-
url siteUrl
110-
}
111-
}
112-
}
113-
}
114-
}
115-
116-
//上传到jcenter
117-
Properties properties = new Properties()
118-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
119-
bintray {
120-
user = properties.getProperty("bintray.user") //读取 local.properties 文件里面的 bintray.user
121-
key = properties.getProperty("bintray.apikey") //读取 local.properties 文件里面的 bintray.apikey
122-
configurations = ['archives']
123-
pkg {
124-
repo = "maven"
125-
name = libName //发布到JCenter上的项目名字,必须填写
126-
desc = 'android music player' //项目描述
127-
websiteUrl = siteUrl
128-
vcsUrl = gitUrl
129-
licenses = ["Apache-2.0"]
130-
publish = true
131-
}
132-
}
133-
134-
javadoc {
135-
options {
136-
//如果你的项目里面有中文注释的话,必须将格式设置为UTF-8,不然会出现乱码
137-
encoding "UTF-8"
138-
charSet 'UTF-8'
139-
author true
140-
version true
141-
links "http://docs.oracle.com/javase/7/docs/api"
142-
}
143-
}
144-
14531

14632

VideoCache/build.gradle

Lines changed: 2 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
apply plugin: 'com.android.library'
22
apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle"
3+
apply plugin: 'com.github.dcendents.android-maven'
4+
35

46
android {
57
compileSdkVersion project.ext.androidCompileSdkVersion
@@ -23,118 +25,3 @@ dependencies {
2325
implementation fileTree(dir: "libs", include: ["*.jar"])
2426
}
2527

26-
27-
/** 以下开始是将Android Library上传到jcenter的相关配置**/
28-
apply plugin: 'com.github.dcendents.android-maven'
29-
apply plugin: 'com.jfrog.bintray'
30-
31-
//项目主页
32-
def siteUrl = 'https://github.com/yangchong211/YCVideoPlayer' // project homepage
33-
//项目的版本控制地址
34-
def gitUrl = 'https://github.com/yangchong211/YCVideoPlayer.git' // project git
35-
36-
//发布到组织名称名字,必须填写
37-
group = "cn.yc"
38-
//发布到JCenter上的项目名字,必须填写
39-
def libName = "YCVideoCacheLib"
40-
// 版本号,下次更新是只需要更改版本号即可
41-
version = "3.0.5"
42-
/** 上面配置后上传至jcenter后的编译路径是这样的: compile 'cn.yc:YCVideoCacheLib:1.0.0' **/
43-
44-
//生成源文件
45-
task sourcesJar(type: Jar) {
46-
from android.sourceSets.main.java.srcDirs
47-
classifier = 'sources'
48-
}
49-
//生成文档
50-
task javadoc(type: Javadoc) {
51-
source = android.sourceSets.main.java.srcDirs
52-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
53-
options.encoding "UTF-8"
54-
options.charSet 'UTF-8'
55-
options.author true
56-
options.version true
57-
options.links "https://github.com/linglongxin24/FastDev/tree/master/mylibrary/docs/javadoc"
58-
failOnError false
59-
}
60-
61-
//文档打包成jar
62-
task javadocJar(type: Jar, dependsOn: javadoc) {
63-
classifier = 'javadoc'
64-
from javadoc.destinationDir
65-
}
66-
//拷贝javadoc文件
67-
task copyDoc(type: Copy) {
68-
from "${buildDir}/docs/"
69-
into "docs"
70-
}
71-
72-
//上传到jcenter所需要的源码文件
73-
artifacts {
74-
archives javadocJar
75-
archives sourcesJar
76-
}
77-
78-
// 配置maven库,生成POM.xml文件
79-
install {
80-
repositories.mavenInstaller {
81-
// This generates POM.xml with proper parameters
82-
pom {
83-
project {
84-
packaging 'aar'
85-
//项目描述,自由填写
86-
name 'This is video cache lib'
87-
url siteUrl
88-
licenses {
89-
license {
90-
//开源协议
91-
name 'The Apache Software License, Version 2.0'
92-
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
93-
}
94-
}
95-
developers {
96-
developer {
97-
//开发者的个人信息,根据个人信息填写
98-
id 'yangchong'
99-
name 'yc'
100-
email 'yangchong211@163.com'
101-
}
102-
}
103-
scm {
104-
connection gitUrl
105-
developerConnection gitUrl
106-
url siteUrl
107-
}
108-
}
109-
}
110-
}
111-
}
112-
113-
//上传到jcenter
114-
Properties properties = new Properties()
115-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
116-
bintray {
117-
user = properties.getProperty("bintray.user") //读取 local.properties 文件里面的 bintray.user
118-
key = properties.getProperty("bintray.apikey") //读取 local.properties 文件里面的 bintray.apikey
119-
configurations = ['archives']
120-
pkg {
121-
repo = "maven"
122-
name = libName //发布到JCenter上的项目名字,必须填写
123-
desc = 'android video cache' //项目描述
124-
websiteUrl = siteUrl
125-
vcsUrl = gitUrl
126-
licenses = ["Apache-2.0"]
127-
publish = true
128-
}
129-
}
130-
131-
javadoc {
132-
options {
133-
//如果你的项目里面有中文注释的话,必须将格式设置为UTF-8,不然会出现乱码
134-
encoding "UTF-8"
135-
charSet 'UTF-8'
136-
author true
137-
version true
138-
links "http://docs.oracle.com/javase/7/docs/api"
139-
}
140-
}

0 commit comments

Comments
 (0)