Skip to content

Commit

Permalink
bump to 2.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
JarvanMo committed Jul 23, 2020
1 parent 037f646 commit d53e944
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 27 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
Expand Down
12 changes: 7 additions & 5 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -36,4 +36,4 @@ ext {
}


tasks.getByPath(":exoplayerview:javadocRelease").enabled = false
//tasks.getByPath(":exoplayerview:javadocRelease").enabled = false
12 changes: 1 addition & 11 deletions exoplayerview/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'//添加

android {
compileSdkVersion rootProject.ext.compileSdkVersion
Expand Down Expand Up @@ -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'])
Expand All @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d53e944

Please sign in to comment.