diff --git a/app/build.gradle b/app/build.gradle index 72c5560..c617795 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 23 - buildToolsVersion "23.0.2" + buildToolsVersion "23.0.3" defaultConfig { applicationId "com.hugomatilla.audioplayerview.sample" @@ -21,7 +21,6 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) - testCompile 'junit:junit:4.12' - compile 'com.android.support:appcompat-v7:23.1.1' + compile 'com.android.support:appcompat-v7:23.3.0' compile project(path: ':audioplayerview') } diff --git a/audioplayerview/build.gradle b/audioplayerview/build.gradle index e2c7518..6745815 100644 --- a/audioplayerview/build.gradle +++ b/audioplayerview/build.gradle @@ -3,12 +3,12 @@ apply plugin: 'com.android.library' ext { PUBLISH_GROUP_ID = 'com.hugomatilla' PUBLISH_ARTIFACT_ID = 'audioplayerview' - PUBLISH_VERSION = '1.0.0' + PUBLISH_VERSION = '1.0.1' } android { compileSdkVersion 23 - buildToolsVersion "23.0.2" + buildToolsVersion "23.0.3" defaultConfig { minSdkVersion 15 @@ -26,8 +26,7 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) - testCompile 'junit:junit:4.12' - compile 'com.android.support:appcompat-v7:23.1.1' + compile 'com.android.support:appcompat-v7:23.3.0' } apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle' diff --git a/audioplayerview/src/main/java/com/hugomatilla/audioplayerview/AudioPlayerView.java b/audioplayerview/src/main/java/com/hugomatilla/audioplayerview/AudioPlayerView.java index 4e0a785..e2cae0d 100644 --- a/audioplayerview/src/main/java/com/hugomatilla/audioplayerview/AudioPlayerView.java +++ b/audioplayerview/src/main/java/com/hugomatilla/audioplayerview/AudioPlayerView.java @@ -223,6 +223,7 @@ public void destroy() { if (mediaPlayer != null) { mediaPlayer.release(); mediaPlayer = null; + audioReady = false; } } diff --git a/build.gradle b/build.gradle index 429064f..3f18663 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.0.0-beta2' + classpath 'com.android.tools.build:gradle:2.1.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } @@ -13,7 +13,6 @@ buildscript { allprojects { repositories { - jcenter() } }