📦 release 2.7.0

This commit is contained in:
Alexey Danilov
2017-04-23 18:47:31 +03:00
parent 7e48955383
commit 1b597ec1ad
5 changed files with 6 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ Note `AndroidVideoCache` works only with **direct urls** to media file, it [**d
Just add dependency (`AndroidVideoCache` is available in jcenter):
```
dependencies {
compile 'com.danikula:videocache:2.6.4'
compile 'com.danikula:videocache:2.7.0'
}
```
@@ -140,7 +140,6 @@ HttpProxyCacheServer proxy = HttpProxyCacheServer.Builder(context)
See `sample` app.
## Known problems
- `AndroidVideoCache` [doesn't work](https://github.com/danikula/AndroidVideoCache/issues/28) if wifi or mobile internet connection uses proxy.
- In some cases clients [can't connect](https://github.com/danikula/AndroidVideoCache/issues/134) to local proxy server ('Error pinging server' error). May be it is result of previous error. Note in this case video will be played, but without caching.
## Whats new

View File

@@ -18,8 +18,8 @@ android {
defaultConfig {
minSdkVersion 9
targetSdkVersion 23
versionCode 20
versionName '2.6.4'
versionCode 21
versionName '2.7.0'
}
compileOptions {

View File

@@ -419,6 +419,7 @@ public class HttpProxyCacheServer {
* Set custom DiskUsage logic for handling when to keep or clean cache.
*
* @param diskUsage a disk usage strategy, cant be {@code null}.
* @return a builder.
*/
public Builder diskUsage(DiskUsage diskUsage) {
this.diskUsage = checkNotNull(diskUsage);

View File

@@ -27,6 +27,7 @@ public interface Source {
* Read data to byte buffer from source with current offset.
*
* @param buffer a buffer to be used for reading data.
* @return a count of read bytes
* @throws ProxyCacheException if error occur while reading source.
*/
int read(byte[] buffer) throws ProxyCacheException;

View File

@@ -38,7 +38,7 @@ dependencies {
// compile project(':library')
compile 'com.android.support:support-v4:23.1.0'
compile 'org.androidannotations:androidannotations-api:3.3.2'
compile 'com.danikula:videocache:2.6.4'
compile 'com.danikula:videocache:2.7.0'
compile 'com.viewpagerindicator:library:2.4.2-SNAPSHOT@aar'
apt 'org.androidannotations:androidannotations:3.3.2'
}