From d53e9442b6cc1270339cda6f1cac0df9e8c789c8 Mon Sep 17 00:00:00 2001 From: JarvanMo Date: Thu, 23 Jul 2020 10:22:30 +0800 Subject: [PATCH] bump to 2.1.6 --- README.md | 14 ++++++++------ README_CN.md | 12 +++++++----- build.gradle | 6 +++--- exoplayerview/build.gradle | 12 +----------- gradle/wrapper/gradle-wrapper.properties | 4 ++-- 5 files changed, 21 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 5373133..324ee11 100644 --- a/README.md +++ b/README.md @@ -20,16 +20,18 @@ ExoVideoView is based on [ExoPlayer](https://github.com/google/ExoPlayer). 8.change the widget's visibility if you like. ## Using ExoVideoView ### 1.Dependency -The easiest way to get started using ExoVideoView is to add it as a gradle dependency. You need to make sure you have the JCenter and Google repositories included in the build.gradle file in the root of your project: +The easiest way to get started using ExoVideoView is to add it as a gradle dependency. You need to make sure you have the jitpack repositories included in the build.gradle file in the root of your project: ``` -repositories { - jcenter() - google() -} +allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } + } ``` Next add a gradle compile dependency to the build.gradle file of your app module: ``` -implementation 'com.jarvanmo:exoplayerview:2.1.5' +implementation 'com.github.JarvanMo:ExoVideoView:2.1.6' ``` ### 2.In Layout Declare ExoVideoView in your layout file as : diff --git a/README_CN.md b/README_CN.md index a9deebb..a81bfca 100644 --- a/README_CN.md +++ b/README_CN.md @@ -17,14 +17,16 @@ ExoVideoView 是一款基于[ExoPlayer](https://github.com/google/ExoPlayer)开 ### 1.依赖 最简单的方式是加入gradle依赖。请确认在工程的build.gradle中添加了JCenter和google()。 ``` -repositories { - jcenter() - google() -} +allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } + } ``` 然后在你的项目中添加如下代码: ``` -implementation 'com.jarvanmo:exoplayerview:2.1.5' +implementation 'com.github.JarvanMo:ExoVideoView:2.1.6' ``` ### 2.在xml中定义 在xml中使用 ExoVideoView: diff --git a/build.gradle b/build.gradle index 7a40dcf..59f80b9 100644 --- a/build.gradle +++ b/build.gradle @@ -6,8 +6,8 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.5.3' - classpath 'com.novoda:bintray-release:0.9.2' + classpath 'com.android.tools.build:gradle:4.0.1' +// classpath 'com.novoda:bintray-release:0.9.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } @@ -36,4 +36,4 @@ ext { } -tasks.getByPath(":exoplayerview:javadocRelease").enabled = false \ No newline at end of file +//tasks.getByPath(":exoplayerview:javadocRelease").enabled = false \ No newline at end of file diff --git a/exoplayerview/build.gradle b/exoplayerview/build.gradle index 2dd63af..48d590c 100644 --- a/exoplayerview/build.gradle +++ b/exoplayerview/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'com.android.library' -apply plugin: 'com.novoda.bintray-release'//添加 android { compileSdkVersion rootProject.ext.compileSdkVersion @@ -36,15 +35,6 @@ android { } -//添加 -publish { - userOrg = 'jarvanmo' - groupId = 'com.jarvanmo' - artifactId = 'exoplayerview' - publishVersion = '2.1.5' - desc = 'exo video view' - website = 'https://github.com/JarvanMo/ExoVideoView' -} dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) @@ -53,7 +43,7 @@ dependencies { }) implementation 'androidx.appcompat:appcompat:1.1.0' - implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta3' + implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta8' testImplementation 'junit:junit:4.12' api 'com.google.android.exoplayer:exoplayer:2.11.0' diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index c1d3f00..c367f46 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Tue Sep 25 10:34:59 CST 2018 +#Thu Jul 23 09:49:01 CST 2020 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip