소스 검색

完善视频播放器内核库

yangchong 3 년 전
부모
커밋
74bc3bc9c3
11개의 변경된 파일23개의 추가작업 그리고 707개의 파일을 삭제
  1. 1 0
      AudioPlayer/build.gradle
  2. 8 10
      Demo/build.gradle
  3. 1 115
      MusicPlayer/build.gradle
  4. 2 115
      VideoCache/build.gradle
  5. 2 115
      VideoM3u8/build.gradle
  6. 2 0
      VideoMonitor/build.gradle
  7. 2 115
      VideoPlayer/build.gradle
  8. 2 115
      VideoSqlLite/build.gradle
  9. 1 1
      VideoTool/build.gradle
  10. 2 116
      VideoView/build.gradle
  11. 0 5
      build.gradle

+ 1 - 0
AudioPlayer/build.gradle

@@ -1,5 +1,6 @@
 apply plugin: 'com.android.library'
 apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle"
+apply plugin: 'com.github.dcendents.android-maven'
 
 
 android {

+ 8 - 10
Demo/build.gradle

@@ -67,6 +67,14 @@ dependencies {
     implementation 'com.github.ctiao:DanmakuFlameMaster:0.9.25'
     implementation 'com.github.ctiao:ndkbitmap-armv7a:0.9.21'
 
+    implementation 'com.github.yangchong211.YCVideoPlayer:VideoCache:v1.0.0'
+    implementation 'com.github.yangchong211.YCVideoPlayer:VideoPlayer:v1.0.0'
+    implementation 'com.github.yangchong211.YCVideoPlayer:VideoKernel:v1.0.0'
+    implementation 'com.github.yangchong211.YCVideoPlayer:VideoView:v1.0.0'
+    implementation 'com.github.yangchong211.YCVideoPlayer:MusicPlayer:v1.0.0'
+    implementation 'com.github.yangchong211.YCVideoPlayer:VideoM3u8:v1.0.0'
+    implementation 'com.github.yangchong211.YCVideoPlayer:VideoSqlLite:v1.0.0'
+
     implementation project(path: ':VideoCache')
     implementation project(path: ':VideoPlayer')
     implementation project(path: ':VideoKernel')
@@ -77,19 +85,9 @@ dependencies {
     implementation project(path: ':AudioPlayer')
     implementation project(path: ':VideoTool')
 
-//    implementation 'cn.yc:MusicPlayer:1.0.2'
-//    implementation 'cn.yc:VideoPlayer:3.1.0'
-//    implementation 'cn.yc:VideoCache:3.0.5'
-//    implementation 'cn.yc:VideoKernel:3.0.6'
-//    implementation 'cn.yc:VideoView:3.0.5'
-//    implementation 'cn.yc:VideoM3u8:1.0.0'
-//    implementation 'cn.yc:VideoSqlLite:1.0.2'
-
-
     //自己封装的库,都有对应的案例项目【欢迎star】:https://github.com/yangchong211
     implementation 'cn.yc:YCStatusBarLib:1.5.0'
     implementation 'com.yc:PagerLib:1.0.4'
     implementation 'cn.yc:YCStateLib:1.2.2'
 
-
 }

+ 1 - 115
MusicPlayer/build.gradle

@@ -1,6 +1,6 @@
 apply plugin: 'com.android.library'
 apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle"
-
+apply plugin: 'com.github.dcendents.android-maven'
 
 android {
     compileSdkVersion project.ext.androidCompileSdkVersion
@@ -28,119 +28,5 @@ dependencies {
     implementation project(path: ':VideoTool')
 }
 
-/** 以下开始是将Android Library上传到jcenter的相关配置**/
-apply plugin: 'com.github.dcendents.android-maven'
-apply plugin: 'com.jfrog.bintray'
-
-//项目主页
-def siteUrl = 'https://github.com/yangchong211/YCVideoPlayer'    // project homepage
-//项目的版本控制地址
-def gitUrl = 'https://github.com/yangchong211/YCVideoPlayer.git' // project git
-
-//发布到组织名称名字,必须填写
-group = "cn.yc"
-//发布到JCenter上的项目名字,必须填写
-def libName = "MusicPlayer"
-// 版本号,下次更新是只需要更改版本号即可
-version = "1.0.2"
-
-//生成源文件
-task sourcesJar(type: Jar) {
-    from android.sourceSets.main.java.srcDirs
-    classifier = 'sources'
-}
-//生成文档
-task javadoc(type: Javadoc) {
-    source = android.sourceSets.main.java.srcDirs
-    classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
-    options.encoding "UTF-8"
-    options.charSet 'UTF-8'
-    options.author true
-    options.version true
-    options.links "https://github.com/linglongxin24/FastDev/tree/master/mylibrary/docs/javadoc"
-    failOnError false
-}
-
-//文档打包成jar
-task javadocJar(type: Jar, dependsOn: javadoc) {
-    classifier = 'javadoc'
-    from javadoc.destinationDir
-}
-//拷贝javadoc文件
-task copyDoc(type: Copy) {
-    from "${buildDir}/docs/"
-    into "docs"
-}
-
-//上传到jcenter所需要的源码文件
-artifacts {
-    archives javadocJar
-    archives sourcesJar
-}
-
-// 配置maven库,生成POM.xml文件
-install {
-    repositories.mavenInstaller {
-        // This generates POM.xml with proper parameters
-        pom {
-            project {
-                packaging 'aar'
-                //项目描述,自由填写
-                name 'This is music player lib'
-                url siteUrl
-                licenses {
-                    license {
-                        //开源协议
-                        name 'The Apache Software License, Version 2.0'
-                        url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
-                    }
-                }
-                developers {
-                    developer {
-                        //开发者的个人信息,根据个人信息填写
-                        id 'yangchong'
-                        name 'yc'
-                        email 'yangchong211@163.com'
-                    }
-                }
-                scm {
-                    connection gitUrl
-                    developerConnection gitUrl
-                    url siteUrl
-                }
-            }
-        }
-    }
-}
-
-//上传到jcenter
-Properties properties = new Properties()
-properties.load(project.rootProject.file('local.properties').newDataInputStream())
-bintray {
-    user = properties.getProperty("bintray.user")    //读取 local.properties 文件里面的 bintray.user
-    key = properties.getProperty("bintray.apikey")  //读取 local.properties 文件里面的 bintray.apikey
-    configurations = ['archives']
-    pkg {
-        repo = "maven"
-        name = libName    //发布到JCenter上的项目名字,必须填写
-        desc = 'android music player'    //项目描述
-        websiteUrl = siteUrl
-        vcsUrl = gitUrl
-        licenses = ["Apache-2.0"]
-        publish = true
-    }
-}
-
-javadoc {
-    options {
-        //如果你的项目里面有中文注释的话,必须将格式设置为UTF-8,不然会出现乱码
-        encoding "UTF-8"
-        charSet 'UTF-8'
-        author true
-        version true
-        links "http://docs.oracle.com/javase/7/docs/api"
-    }
-}
-
 
 

+ 2 - 115
VideoCache/build.gradle

@@ -1,5 +1,7 @@
 apply plugin: 'com.android.library'
 apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle"
+apply plugin: 'com.github.dcendents.android-maven'
+
 
 android {
     compileSdkVersion project.ext.androidCompileSdkVersion
@@ -23,118 +25,3 @@ dependencies {
     implementation fileTree(dir: "libs", include: ["*.jar"])
 }
 
-
-/** 以下开始是将Android Library上传到jcenter的相关配置**/
-apply plugin: 'com.github.dcendents.android-maven'
-apply plugin: 'com.jfrog.bintray'
-
-//项目主页
-def siteUrl = 'https://github.com/yangchong211/YCVideoPlayer'    // project homepage
-//项目的版本控制地址
-def gitUrl = 'https://github.com/yangchong211/YCVideoPlayer.git' // project git
-
-//发布到组织名称名字,必须填写
-group = "cn.yc"
-//发布到JCenter上的项目名字,必须填写
-def libName = "YCVideoCacheLib"
-// 版本号,下次更新是只需要更改版本号即可
-version = "3.0.5"
-/**  上面配置后上传至jcenter后的编译路径是这样的: compile 'cn.yc:YCVideoCacheLib:1.0.0'  **/
-
-//生成源文件
-task sourcesJar(type: Jar) {
-    from android.sourceSets.main.java.srcDirs
-    classifier = 'sources'
-}
-//生成文档
-task javadoc(type: Javadoc) {
-    source = android.sourceSets.main.java.srcDirs
-    classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
-    options.encoding "UTF-8"
-    options.charSet 'UTF-8'
-    options.author true
-    options.version true
-    options.links "https://github.com/linglongxin24/FastDev/tree/master/mylibrary/docs/javadoc"
-    failOnError false
-}
-
-//文档打包成jar
-task javadocJar(type: Jar, dependsOn: javadoc) {
-    classifier = 'javadoc'
-    from javadoc.destinationDir
-}
-//拷贝javadoc文件
-task copyDoc(type: Copy) {
-    from "${buildDir}/docs/"
-    into "docs"
-}
-
-//上传到jcenter所需要的源码文件
-artifacts {
-    archives javadocJar
-    archives sourcesJar
-}
-
-// 配置maven库,生成POM.xml文件
-install {
-    repositories.mavenInstaller {
-        // This generates POM.xml with proper parameters
-        pom {
-            project {
-                packaging 'aar'
-                //项目描述,自由填写
-                name 'This is video cache lib'
-                url siteUrl
-                licenses {
-                    license {
-                        //开源协议
-                        name 'The Apache Software License, Version 2.0'
-                        url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
-                    }
-                }
-                developers {
-                    developer {
-                        //开发者的个人信息,根据个人信息填写
-                        id 'yangchong'
-                        name 'yc'
-                        email 'yangchong211@163.com'
-                    }
-                }
-                scm {
-                    connection gitUrl
-                    developerConnection gitUrl
-                    url siteUrl
-                }
-            }
-        }
-    }
-}
-
-//上传到jcenter
-Properties properties = new Properties()
-properties.load(project.rootProject.file('local.properties').newDataInputStream())
-bintray {
-    user = properties.getProperty("bintray.user")    //读取 local.properties 文件里面的 bintray.user
-    key = properties.getProperty("bintray.apikey")  //读取 local.properties 文件里面的 bintray.apikey
-    configurations = ['archives']
-    pkg {
-        repo = "maven"
-        name = libName    //发布到JCenter上的项目名字,必须填写
-        desc = 'android video cache'    //项目描述
-        websiteUrl = siteUrl
-        vcsUrl = gitUrl
-        licenses = ["Apache-2.0"]
-        publish = true
-    }
-}
-
-javadoc {
-    options {
-        //如果你的项目里面有中文注释的话,必须将格式设置为UTF-8,不然会出现乱码
-        encoding "UTF-8"
-        charSet 'UTF-8'
-        author true
-        version true
-        links "http://docs.oracle.com/javase/7/docs/api"
-    }
-}

+ 2 - 115
VideoM3u8/build.gradle

@@ -1,5 +1,7 @@
 apply plugin: 'com.android.library'
 apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle"
+//迁移到jitpack
+apply plugin: 'com.github.dcendents.android-maven'
 
 android {
     compileSdkVersion project.ext.androidCompileSdkVersion
@@ -25,118 +27,3 @@ dependencies {
     api files('libs/commons-io-2.5.jar')
 }
 
-
-/** 以下开始是将Android Library上传到jcenter的相关配置**/
-apply plugin: 'com.github.dcendents.android-maven'
-apply plugin: 'com.jfrog.bintray'
-
-//项目主页
-def siteUrl = 'https://github.com/yangchong211/YCVideoPlayer'    // project homepage
-//项目的版本控制地址
-def gitUrl = 'https://github.com/yangchong211/YCVideoPlayer.git' // project git
-
-//发布到组织名称名字,必须填写
-group = "cn.yc"
-//发布到JCenter上的项目名字,必须填写
-def libName = "VideoM3u8"
-// 版本号,下次更新是只需要更改版本号即可
-version = "1.0.0"
-
-//生成源文件
-task sourcesJar(type: Jar) {
-    from android.sourceSets.main.java.srcDirs
-    classifier = 'sources'
-}
-//生成文档
-task javadoc(type: Javadoc) {
-    source = android.sourceSets.main.java.srcDirs
-    classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
-    options.encoding "UTF-8"
-    options.charSet 'UTF-8'
-    options.author true
-    options.version true
-    options.links "https://github.com/linglongxin24/FastDev/tree/master/mylibrary/docs/javadoc"
-    failOnError false
-}
-
-//文档打包成jar
-task javadocJar(type: Jar, dependsOn: javadoc) {
-    classifier = 'javadoc'
-    from javadoc.destinationDir
-}
-//拷贝javadoc文件
-task copyDoc(type: Copy) {
-    from "${buildDir}/docs/"
-    into "docs"
-}
-
-//上传到jcenter所需要的源码文件
-artifacts {
-    archives javadocJar
-    archives sourcesJar
-}
-
-// 配置maven库,生成POM.xml文件
-install {
-    repositories.mavenInstaller {
-        // This generates POM.xml with proper parameters
-        pom {
-            project {
-                packaging 'aar'
-                //项目描述,自由填写
-                name 'This is video M3u8 lib'
-                url siteUrl
-                licenses {
-                    license {
-                        //开源协议
-                        name 'The Apache Software License, Version 2.0'
-                        url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
-                    }
-                }
-                developers {
-                    developer {
-                        //开发者的个人信息,根据个人信息填写
-                        id 'yangchong'
-                        name 'yc'
-                        email 'yangchong211@163.com'
-                    }
-                }
-                scm {
-                    connection gitUrl
-                    developerConnection gitUrl
-                    url siteUrl
-                }
-            }
-        }
-    }
-}
-
-//上传到jcenter
-Properties properties = new Properties()
-properties.load(project.rootProject.file('local.properties').newDataInputStream())
-bintray {
-    user = properties.getProperty("bintray.user")    //读取 local.properties 文件里面的 bintray.user
-    key = properties.getProperty("bintray.apikey")  //读取 local.properties 文件里面的 bintray.apikey
-    configurations = ['archives']
-    pkg {
-        repo = "maven"
-        name = libName    //发布到JCenter上的项目名字,必须填写
-        desc = 'android video M3u8'    //项目描述
-        websiteUrl = siteUrl
-        vcsUrl = gitUrl
-        licenses = ["Apache-2.0"]
-        publish = true
-    }
-}
-
-javadoc {
-    options {
-        //如果你的项目里面有中文注释的话,必须将格式设置为UTF-8,不然会出现乱码
-        encoding "UTF-8"
-        charSet 'UTF-8'
-        author true
-        version true
-        links "http://docs.oracle.com/javase/7/docs/api"
-    }
-}
-

+ 2 - 0
VideoMonitor/build.gradle

@@ -1,5 +1,7 @@
 apply plugin: 'com.android.library'
 apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle"
+//迁移到jitpack
+apply plugin: 'com.github.dcendents.android-maven'
 
 android {
     compileSdkVersion project.ext.androidCompileSdkVersion

+ 2 - 115
VideoPlayer/build.gradle

@@ -1,5 +1,7 @@
 apply plugin: 'com.android.library'
 apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle"
+//迁移到jitpack
+apply plugin: 'com.github.dcendents.android-maven'
 
 android {
     compileSdkVersion project.ext.androidCompileSdkVersion
@@ -44,118 +46,3 @@ dependencies {
     implementation "com.google.android.exoplayer:exoplayer-smoothstreaming:2.11.3"
     implementation "com.google.android.exoplayer:extension-rtmp:2.11.3"*/
 }
-
-/** 以下开始是将Android Library上传到jcenter的相关配置**/
-apply plugin: 'com.github.dcendents.android-maven'
-apply plugin: 'com.jfrog.bintray'
-
-//项目主页
-def siteUrl = 'https://github.com/yangchong211/YCVideoPlayer'    // project homepage
-//项目的版本控制地址
-def gitUrl = 'https://github.com/yangchong211/YCVideoPlayer.git' // project git
-
-//发布到组织名称名字,必须填写
-group = "cn.yc"
-//发布到JCenter上的项目名字,必须填写
-def libName = "VideoPlayer"
-// 版本号,下次更新是只需要更改版本号即可
-version = "3.1.0"
-
-//生成源文件
-task sourcesJar(type: Jar) {
-    from android.sourceSets.main.java.srcDirs
-    classifier = 'sources'
-}
-//生成文档
-task javadoc(type: Javadoc) {
-    source = android.sourceSets.main.java.srcDirs
-    classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
-    options.encoding "UTF-8"
-    options.charSet 'UTF-8'
-    options.author true
-    options.version true
-    options.links "https://github.com/linglongxin24/FastDev/tree/master/mylibrary/docs/javadoc"
-    failOnError false
-}
-
-//文档打包成jar
-task javadocJar(type: Jar, dependsOn: javadoc) {
-    classifier = 'javadoc'
-    from javadoc.destinationDir
-}
-//拷贝javadoc文件
-task copyDoc(type: Copy) {
-    from "${buildDir}/docs/"
-    into "docs"
-}
-
-//上传到jcenter所需要的源码文件
-artifacts {
-    archives javadocJar
-    archives sourcesJar
-}
-
-// 配置maven库,生成POM.xml文件
-install {
-    repositories.mavenInstaller {
-        // This generates POM.xml with proper parameters
-        pom {
-            project {
-                packaging 'aar'
-                //项目描述,自由填写
-                name 'This is videoPlayer lib'
-                url siteUrl
-                licenses {
-                    license {
-                        //开源协议
-                        name 'The Apache Software License, Version 2.0'
-                        url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
-                    }
-                }
-                developers {
-                    developer {
-                        //开发者的个人信息,根据个人信息填写
-                        id 'yangchong'
-                        name 'yc'
-                        email 'yangchong211@163.com'
-                    }
-                }
-                scm {
-                    connection gitUrl
-                    developerConnection gitUrl
-                    url siteUrl
-                }
-            }
-        }
-    }
-}
-
-//上传到jcenter
-Properties properties = new Properties()
-properties.load(project.rootProject.file('local.properties').newDataInputStream())
-bintray {
-    user = properties.getProperty("bintray.user")    //读取 local.properties 文件里面的 bintray.user
-    key = properties.getProperty("bintray.apikey")  //读取 local.properties 文件里面的 bintray.apikey
-    configurations = ['archives']
-    pkg {
-        repo = "maven"
-        name = libName    //发布到JCenter上的项目名字,必须填写
-        desc = 'android videoPlayer'    //项目描述
-        websiteUrl = siteUrl
-        vcsUrl = gitUrl
-        licenses = ["Apache-2.0"]
-        publish = true
-    }
-}
-
-javadoc {
-    options {
-        //如果你的项目里面有中文注释的话,必须将格式设置为UTF-8,不然会出现乱码
-        encoding "UTF-8"
-        charSet 'UTF-8'
-        author true
-        version true
-        links "http://docs.oracle.com/javase/7/docs/api"
-    }
-}
-

+ 2 - 115
VideoSqlLite/build.gradle

@@ -1,5 +1,7 @@
 apply plugin: 'com.android.library'
 apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle"
+//迁移到jitpack
+apply plugin: 'com.github.dcendents.android-maven'
 
 android {
     compileSdkVersion project.ext.androidCompileSdkVersion
@@ -25,118 +27,3 @@ dependencies {
     implementation project.ext.AppDependencies['annotation']
     implementation project(path: ':VideoTool')
 }
-
-
-/** 以下开始是将Android Library上传到jcenter的相关配置**/
-apply plugin: 'com.github.dcendents.android-maven'
-apply plugin: 'com.jfrog.bintray'
-
-//项目主页
-def siteUrl = 'https://github.com/yangchong211/YCVideoPlayer'    // project homepage
-//项目的版本控制地址
-def gitUrl = 'https://github.com/yangchong211/YCVideoPlayer.git' // project git
-
-//发布到组织名称名字,必须填写
-group = "cn.yc"
-//发布到JCenter上的项目名字,必须填写
-def libName = "VideoSqlLite"
-// 版本号,下次更新是只需要更改版本号即可
-version = "1.0.2"
-
-//生成源文件
-task sourcesJar(type: Jar) {
-    from android.sourceSets.main.java.srcDirs
-    classifier = 'sources'
-}
-//生成文档
-task javadoc(type: Javadoc) {
-    source = android.sourceSets.main.java.srcDirs
-    classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
-    options.encoding "UTF-8"
-    options.charSet 'UTF-8'
-    options.author true
-    options.version true
-    options.links "https://github.com/linglongxin24/FastDev/tree/master/mylibrary/docs/javadoc"
-    failOnError false
-}
-
-//文档打包成jar
-task javadocJar(type: Jar, dependsOn: javadoc) {
-    classifier = 'javadoc'
-    from javadoc.destinationDir
-}
-//拷贝javadoc文件
-task copyDoc(type: Copy) {
-    from "${buildDir}/docs/"
-    into "docs"
-}
-
-//上传到jcenter所需要的源码文件
-artifacts {
-    archives javadocJar
-    archives sourcesJar
-}
-
-// 配置maven库,生成POM.xml文件
-install {
-    repositories.mavenInstaller {
-        // This generates POM.xml with proper parameters
-        pom {
-            project {
-                packaging 'aar'
-                //项目描述,自由填写
-                name 'This is video sqllite lib'
-                url siteUrl
-                licenses {
-                    license {
-                        //开源协议
-                        name 'The Apache Software License, Version 2.0'
-                        url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
-                    }
-                }
-                developers {
-                    developer {
-                        //开发者的个人信息,根据个人信息填写
-                        id 'yangchong'
-                        name 'yc'
-                        email 'yangchong211@163.com'
-                    }
-                }
-                scm {
-                    connection gitUrl
-                    developerConnection gitUrl
-                    url siteUrl
-                }
-            }
-        }
-    }
-}
-
-//上传到jcenter
-Properties properties = new Properties()
-properties.load(project.rootProject.file('local.properties').newDataInputStream())
-bintray {
-    user = properties.getProperty("bintray.user")    //读取 local.properties 文件里面的 bintray.user
-    key = properties.getProperty("bintray.apikey")  //读取 local.properties 文件里面的 bintray.apikey
-    configurations = ['archives']
-    pkg {
-        repo = "maven"
-        name = libName    //发布到JCenter上的项目名字,必须填写
-        desc = 'android video sqllite'    //项目描述
-        websiteUrl = siteUrl
-        vcsUrl = gitUrl
-        licenses = ["Apache-2.0"]
-        publish = true
-    }
-}
-
-javadoc {
-    options {
-        //如果你的项目里面有中文注释的话,必须将格式设置为UTF-8,不然会出现乱码
-        encoding "UTF-8"
-        charSet 'UTF-8'
-        author true
-        version true
-        links "http://docs.oracle.com/javase/7/docs/api"
-    }
-}

+ 1 - 1
VideoTool/build.gradle

@@ -1,6 +1,6 @@
 apply plugin: 'com.android.library'
 apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle"
-
+apply plugin: 'com.github.dcendents.android-maven'
 
 android {
     compileSdkVersion project.ext.androidCompileSdkVersion

+ 2 - 116
VideoView/build.gradle

@@ -1,6 +1,7 @@
 apply plugin: 'com.android.library'
 apply from: rootProject.projectDir.absolutePath + "/VideoGradle/video.gradle"
-
+//迁移到jitpack
+apply plugin: 'com.github.dcendents.android-maven'
 
 android {
     compileSdkVersion project.ext.androidCompileSdkVersion
@@ -24,118 +25,3 @@ dependencies {
     implementation fileTree(dir: 'libs', include: ['*.jar'])
     implementation project.ext.AppDependencies['appcompat']
 }
-
-/** 以下开始是将Android Library上传到jcenter的相关配置**/
-apply plugin: 'com.github.dcendents.android-maven'
-apply plugin: 'com.jfrog.bintray'
-
-//项目主页
-def siteUrl = 'https://github.com/yangchong211/YCVideoPlayer'    // project homepage
-//项目的版本控制地址
-def gitUrl = 'https://github.com/yangchong211/YCVideoPlayer.git' // project git
-
-//发布到组织名称名字,必须填写
-group = "cn.yc"
-//发布到JCenter上的项目名字,必须填写
-def libName = "VideoView"
-// 版本号,下次更新是只需要更改版本号即可
-version = "3.0.5"
-
-//生成源文件
-task sourcesJar(type: Jar) {
-    from android.sourceSets.main.java.srcDirs
-    classifier = 'sources'
-}
-//生成文档
-task javadoc(type: Javadoc) {
-    source = android.sourceSets.main.java.srcDirs
-    classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
-    options.encoding "UTF-8"
-    options.charSet 'UTF-8'
-    options.author true
-    options.version true
-    options.links "https://github.com/linglongxin24/FastDev/tree/master/mylibrary/docs/javadoc"
-    failOnError false
-}
-
-//文档打包成jar
-task javadocJar(type: Jar, dependsOn: javadoc) {
-    classifier = 'javadoc'
-    from javadoc.destinationDir
-}
-//拷贝javadoc文件
-task copyDoc(type: Copy) {
-    from "${buildDir}/docs/"
-    into "docs"
-}
-
-//上传到jcenter所需要的源码文件
-artifacts {
-    archives javadocJar
-    archives sourcesJar
-}
-
-// 配置maven库,生成POM.xml文件
-install {
-    repositories.mavenInstaller {
-        // This generates POM.xml with proper parameters
-        pom {
-            project {
-                packaging 'aar'
-                //项目描述,自由填写
-                name 'This is video float view lib'
-                url siteUrl
-                licenses {
-                    license {
-                        //开源协议
-                        name 'The Apache Software License, Version 2.0'
-                        url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
-                    }
-                }
-                developers {
-                    developer {
-                        //开发者的个人信息,根据个人信息填写
-                        id 'yangchong'
-                        name 'yc'
-                        email 'yangchong211@163.com'
-                    }
-                }
-                scm {
-                    connection gitUrl
-                    developerConnection gitUrl
-                    url siteUrl
-                }
-            }
-        }
-    }
-}
-
-//上传到jcenter
-Properties properties = new Properties()
-properties.load(project.rootProject.file('local.properties').newDataInputStream())
-bintray {
-    user = properties.getProperty("bintray.user")    //读取 local.properties 文件里面的 bintray.user
-    key = properties.getProperty("bintray.apikey")  //读取 local.properties 文件里面的 bintray.apikey
-    configurations = ['archives']
-    pkg {
-        repo = "maven"
-        name = libName    //发布到JCenter上的项目名字,必须填写
-        desc = 'android video float view'    //项目描述
-        websiteUrl = siteUrl
-        vcsUrl = gitUrl
-        licenses = ["Apache-2.0"]
-        publish = true
-    }
-}
-
-javadoc {
-    options {
-        //如果你的项目里面有中文注释的话,必须将格式设置为UTF-8,不然会出现乱码
-        encoding "UTF-8"
-        charSet 'UTF-8'
-        author true
-        version true
-        links "http://docs.oracle.com/javase/7/docs/api"
-    }
-}
-

+ 0 - 5
build.gradle

@@ -13,13 +13,8 @@ buildscript {
     }
     dependencies {
         classpath 'com.android.tools.build:gradle:3.2.1'
-
         //jitpack
         classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
-
-        //添加下面两句,进行配置,jcenter
-        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
-        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
     }
 }