mirror of
https://github.com/zhigang1992/AndroidVideoCache.git
synced 2026-04-24 12:05:45 +08:00
use external dependency in sample app
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
repositories {
|
||||
maven { url 'https://github.com/danikula/AndroidVideoCache/raw/mvn-repo' }
|
||||
}
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
@@ -14,6 +18,5 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile 'com.android.support:appcompat-v7:22.0.0'
|
||||
compile project(':library')
|
||||
compile('com.danikula:videocache:1.0')
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/Theme.AppCompat.Light.NoActionBar">
|
||||
android:theme="@android:style/Theme.Holo.Light.NoActionBar">
|
||||
<activity
|
||||
android:name=".VideoActivity"
|
||||
android:label="@string/app_name">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.danikula.videocache.sample;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.support.v7.app.ActionBarActivity;
|
||||
import android.util.Log;
|
||||
import android.widget.ProgressBar;
|
||||
import android.widget.VideoView;
|
||||
@@ -15,7 +15,7 @@ import com.danikula.videocache.ProxyCacheException;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class VideoActivity extends ActionBarActivity implements CacheListener {
|
||||
public class VideoActivity extends Activity implements CacheListener {
|
||||
|
||||
private static final String LOG_TAG = "VideoActivity";
|
||||
private static final String VIDEO_CACHE_NAME = "devbytes.mp4";
|
||||
|
||||
Reference in New Issue
Block a user