Skip to content

Commit d53e944

Browse files
committed
bump to 2.1.6
1 parent 037f646 commit d53e944

File tree

5 files changed

+21
-27
lines changed

5 files changed

+21
-27
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,18 @@ ExoVideoView is based on [ExoPlayer](https://github.com/google/ExoPlayer).
2020
8.change the widget's visibility if you like.
2121
## Using ExoVideoView
2222
### 1.Dependency
23-
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:
23+
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:
2424
```
25-
repositories {
26-
jcenter()
27-
google()
28-
}
25+
allprojects {
26+
repositories {
27+
...
28+
maven { url 'https://jitpack.io' }
29+
}
30+
}
2931
```
3032
Next add a gradle compile dependency to the build.gradle file of your app module:
3133
```
32-
implementation 'com.jarvanmo:exoplayerview:2.1.5'
34+
implementation 'com.github.JarvanMo:ExoVideoView:2.1.6'
3335
```
3436
### 2.In Layout
3537
Declare ExoVideoView in your layout file as :

README_CN.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ ExoVideoView 是一款基于[ExoPlayer](https://github.com/google/ExoPlayer)开
1717
### 1.依赖
1818
最简单的方式是加入gradle依赖。请确认在工程的build.gradle中添加了JCenter和google()。
1919
```
20-
repositories {
21-
jcenter()
22-
google()
23-
}
20+
allprojects {
21+
repositories {
22+
...
23+
maven { url 'https://jitpack.io' }
24+
}
25+
}
2426
```
2527
然后在你的项目中添加如下代码:
2628
```
27-
implementation 'com.jarvanmo:exoplayerview:2.1.5'
29+
implementation 'com.github.JarvanMo:ExoVideoView:2.1.6'
2830
```
2931
### 2.在xml中定义
3032
在xml中使用 ExoVideoView:

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.5.3'
10-
classpath 'com.novoda:bintray-release:0.9.2'
9+
classpath 'com.android.tools.build:gradle:4.0.1'
10+
// classpath 'com.novoda:bintray-release:0.9.2'
1111
// NOTE: Do not place your application dependencies here; they belong
1212
// in the individual module build.gradle files
1313
}
@@ -36,4 +36,4 @@ ext {
3636
}
3737

3838

39-
tasks.getByPath(":exoplayerview:javadocRelease").enabled = false
39+
//tasks.getByPath(":exoplayerview:javadocRelease").enabled = false

exoplayerview/build.gradle

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.novoda.bintray-release'//添加
32

43
android {
54
compileSdkVersion rootProject.ext.compileSdkVersion
@@ -36,15 +35,6 @@ android {
3635

3736
}
3837

39-
//添加
40-
publish {
41-
userOrg = 'jarvanmo'
42-
groupId = 'com.jarvanmo'
43-
artifactId = 'exoplayerview'
44-
publishVersion = '2.1.5'
45-
desc = 'exo video view'
46-
website = 'https://github.com/JarvanMo/ExoVideoView'
47-
}
4838

4939
dependencies {
5040
implementation fileTree(dir: 'libs', include: ['*.jar'])
@@ -53,7 +43,7 @@ dependencies {
5343
})
5444

5545
implementation 'androidx.appcompat:appcompat:1.1.0'
56-
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta3'
46+
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta8'
5747
testImplementation 'junit:junit:4.12'
5848

5949
api 'com.google.android.exoplayer:exoplayer:2.11.0'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Tue Sep 25 10:34:59 CST 2018
1+
#Thu Jul 23 09:49:01 CST 2020
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

0 commit comments

Comments
 (0)