diff --git a/.gitignore b/.gitignore index cbf04e1bd..12a398578 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,4 @@ proguard libs *.DS_Store src/de/danoeh/antennapod/util/flattr/FlattrConfig.java +gradle.properties diff --git a/.tx/config b/.tx/config index 3a05b8725..145e12a23 100644 --- a/.tx/config +++ b/.tx/config @@ -21,6 +21,7 @@ trans.ru-RU = res/values-ru/strings.xml trans.ru_RU = res/values-ru/strings.xml trans.uk_UA = res/values-uk-rUA/strings.xml trans.zh_CN = res/values-zh-rCN/strings.xml +trans.sv_SE = res/values-sv-rSE/strings.xml [antennapod.description] file_filter = description/.txt diff --git a/AndroidManifest.xml b/AndroidManifest.xml index ed441e090..506607333 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="32" + android:versionName="0.9.7.5" > @@ -39,300 +39,379 @@ + android:label="@string/app_name"> + android:value="de.danoeh.antennapod.activity.SearchActivity"/> + android:resource="@xml/searchable"/> + - - + + + android:windowSoftInputMode="adjustResize"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - + - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + android:configChanges="orientation|screenSize"> + android:value="de.danoeh.antennapod.activity.SearchActivity"/> + android:resource="@xml/searchable"/> + android:configChanges="keyboard|orientation"/> + android:label="@string/downloads_label"/> + android:launchMode="singleTop"> - + - - + + - - + + + android:enabled="true"/> + android:enabled="true"> + + + + android:label="@string/settings_label"> + android:label="@string/download_log_label"> + android:exported="true"> - + - + - + + android:exported="false"> - + - + - + + android:resource="@xml/player_widget_info"/> - + - + - + - + + android:label="@string/flattr_auth_label"> - + - + - + - - + + + android:scheme="flattr4j"/> + android:label="@string/about_pref"> + android:label="@string/opml_import_label"> + android:label="@string/opml_import_label"> - + - - + + + android:scheme="file"/> - + - - + + + android:mimeType="text/x-opml"/> + android:label="@string/opml_import_label"> + android:launchMode="singleTop"> - + + android:resource="@xml/searchable"/> + android:label="@string/miro_guide_label"> + android:value="de.danoeh.antennapod.activity.MiroGuideSearchActivity"/> + android:resource="@xml/miroguide_searchable"/> + android:launchMode="singleTop"> - + + android:resource="@xml/miroguide_searchable"/> + android:configChanges="keyboardHidden|orientation"> + android:label="@string/miro_guide_label"> + android:screenOrientation="landscape"> - + - - + + - - + + + android:label="@string/playback_history_label"/> + android:label="@string/choose_data_directory"/> + android:label="@string/organize_queue_label"> + + + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + + - + - + - + + android:scheme="package"/> diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e9b28fb2..bfa26ee43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ Change Log ========== +Version 0.9.7.5 +--------------- +* Reduced application startup time +* Reduced memory usage +* Added option to change the playback speed +* Added Swedish translation +* Several bugfixes and improvements + Version 0.9.7.4 --------------- * Episode cache size can now be set to unlimited diff --git a/assets/about.html b/assets/about.html index 84d94e39c..eb4853e64 100644 --- a/assets/about.html +++ b/assets/about.html @@ -40,7 +40,7 @@ @@ -57,5 +57,7 @@ licensed under the Apache 2.0 license

drag-sort-listview (Link)

licensed under the Apache 2.0 license +

Presto Client (Link)

+ licensed under the Apache 2.0 license diff --git a/build.gradle b/build.gradle index 052d9ee27..92f15b779 100644 --- a/build.gradle +++ b/build.gradle @@ -12,9 +12,20 @@ repositories { mavenCentral() } dependencies { + def libsdir = new File('libs'); + if (!libsdir.exists()) { + println "Creating libs directory" + libsdir.mkdir() + } + def prestoLib = new File('libs/presto_client-0.8.5.jar') + if (!prestoLib.exists()) { + println "Downloading presto library into libs folder" + new URL('http://www.aocate.com/presto/client/presto_client-0.8.5.jar').withInputStream{ i -> prestoLib.withOutputStream{ it << i }} + } + compile 'com.android.support:appcompat-v7:18.0.+' compile 'org.apache.commons:commons-lang3:3.1' - compile ('org.shredzone.flattr4j:flattr4j-core:2.4') { + compile ('org.shredzone.flattr4j:flattr4j-core:2.7') { exclude group: 'org.apache.httpcomponents', module: 'httpcore' exclude group: 'org.apache.httpcomponents', module: 'httpclient' exclude group: 'org.json', module: 'json' @@ -22,6 +33,7 @@ dependencies { compile 'commons-io:commons-io:2.4' compile 'com.nineoldandroids:library:2.4.0' compile project(':submodules:dslv:library') + compile files('libs/presto_client-0.8.5.jar') } android { @@ -35,6 +47,31 @@ android { testInstrumentationRunner "instrumentationTest.de.test.antennapod.AntennaPodTestRunner" } + signingConfigs { + releaseConfig { + if (project.hasProperty('releaseStoreFile')) { + storeFile file(releaseStoreFile) + } else { + storeFile file('keystore') + } + if (project.hasProperty('releaseStorePassword')) { + storePassword releaseStorePassword + } else { + storePassword "password" + } + if (project.hasProperty('releaseKeyAlias')) { + keyAlias releaseKeyAlias + } else { + keyAlias "alias" + } + if (project.hasProperty('releaseKeyPassword')) { + keyPassword releaseKeyPassword + } else { + keyPassword "password" + } + } + } + sourceSets { main { manifest.srcFile 'AndroidManifest.xml' @@ -51,5 +88,10 @@ android { debug { packageNameSuffix ".debug" } + release { + runProguard true + proguardFile 'proguard.cfg' + signingConfig signingConfigs.releaseConfig + } } } diff --git a/pom.xml b/pom.xml index f945c9166..c195a6789 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ de.danoeh antennapod apk - 0.9.7.4 + 0.9.7.5 AntennaPod @@ -84,6 +84,14 @@ library 2.4.0 + + com.aocate + presto_client + 0.8.5 + jar + system + ${project.basedir}/libs/presto_client-0.8.5.jar + @@ -212,7 +220,7 @@
false - proguard.cfg + proguard-mvn.cfg diff --git a/proguard-mvn.cfg b/proguard-mvn.cfg new file mode 100644 index 000000000..70019bfcb --- /dev/null +++ b/proguard-mvn.cfg @@ -0,0 +1,66 @@ +-printmapping out.map +-renamesourcefileattribute SourceFile +-keepattributes SourceFile,LineNumberTable + +-dontpreverify +-repackageclasses '' +-allowaccessmodification +-optimizations !code/simplification/arithmetic +-keepattributes *Annotation* + +-injars libs/presto_client-0.8.5.jar + +-keep public class * extends android.app.Activity +-keep public class * extends android.app.Application +-keep public class * extends android.app.Service +-keep public class * extends android.content.BroadcastReceiver +-keep public class * extends android.content.ContentProvider + +-keep public class * extends android.view.View { + public (android.content.Context); + public (android.content.Context, android.util.AttributeSet); + public (android.content.Context, android.util.AttributeSet, int); + public void set*(...); +} + +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet); +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet, int); +} + +-keepclassmembers class * extends android.content.Context { + public void *(android.view.View); + public void *(android.view.MenuItem); +} + +-keepclassmembers class * implements android.os.Parcelable { + static android.os.Parcelable$Creator CREATOR; +} + +-keepclassmembers class **.R$* { + public static ; +} + +-keep class android.support.v4.** { *; } +-keep interface android.support.v4.** { *; } +-keep class android.support.v7.** { *; } +-keep interface android.support.v7.** { *; } +-dontwarn android.support.v4.** +-dontwarn android.support.v7.** + +-keepattributes *Annotation* + +-keep class org.shredzone.flattr4j.** { *; } +-dontwarn org.shredzone.flattr4j.** + +-keep class org.apache.commons.** { *; } + +-dontskipnonpubliclibraryclassmembers diff --git a/proguard.cfg b/proguard.cfg index 489af0536..96111d41f 100644 --- a/proguard.cfg +++ b/proguard.cfg @@ -8,10 +8,7 @@ -optimizations !code/simplification/arithmetic -keepattributes *Annotation* -#-libraryjars libs/android-support-v4.jar -#-libraryjars libs/commons-lang3-3.1.jar -#-libraryjars libs/flattr4j-core-2.4.jar -#-libraryjars libs/commons-io-2.4.jar +#-injars libs/presto_client-0.8.5.jar -keep public class * extends android.app.Activity -keep public class * extends android.app.Application diff --git a/res/layout-land/audioplayer_activity.xml b/res/layout-land/audioplayer_activity.xml index 521dbc68a..1e671c745 100644 --- a/res/layout-land/audioplayer_activity.xml +++ b/res/layout-land/audioplayer_activity.xml @@ -92,14 +92,12 @@ android:layout_width="80dp" android:layout_height="match_parent" android:layout_centerHorizontal="true" - android:layout_marginLeft="8dp" - android:layout_marginRight="8dp" android:background="?attr/borderless_button" android:src="?attr/av_pause" /> + +