Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Add v.2.0.17 to f-droid #515

Open
wants to merge 15 commits into
base: f-droid
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,13 @@ android {
}

compileSdkVersion Dependencies.compileSdk
buildToolsVersion Dependencies.buildTools

defaultConfig {
minSdkVersion Dependencies.minSdk
targetSdkVersion Dependencies.targetSdk

versionName Config.versionName
versionCode 5000
versionName "2.0.17"
versionCode 5001

resConfigs "en", "zh-rCN", "fr", "de", "ko", "it", "ru", "nl", "tr", "pl", "ro", "hu", "hi-rIN", "uk", "bg-rBG", "en-rGB", "et-rEE", "vi", "pt-rBR", "es", "en-rNZ", "zh-rTW", "es-rES", "ca", "hr", "en-rAU", "eu-rES", "th", "ja"

Expand Down Expand Up @@ -261,7 +260,6 @@ dependencies {
implementation Dependencies.materialDialogs
implementation Dependencies.materialDialogCommons
implementation Dependencies.expandableRecyclerView
implementation Dependencies.billing

implementation Dependencies.butterknife
kapt Dependencies.butterknifeAnnotationProcessor
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
android:label="@string/app_name"
android:largeHeap="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/AppTheme">
android:theme="@style/AppTheme"
android:requestLegacyExternalStorage="true">

<meta-data
android:name="android.max_aspect"
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/assets/web/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@
</head>

<body>
<h4>2.0.17</h4>
<ul>
<li>Fixed an issue where playlists didn't show up on some devices</li>
<li>Shuttle 2 is in alpha testing! DM me your Play Store email address on <a href="https://discord.gg/4Z5EU7K">Discord</a> if you're interested in testing.</li>
</ul>
<h4>2.0.16</h4>
<ul>
<li>Fixed a character encoding issue preventing artwork downloading on some devices</li>
<li>Updated language around including/excluding songs</li>
<li>Possible fix for playlist editing issues on Android 10</li>
<li>Shuttle is now free - Shuttle+ will be removed, so only one version of Shuttle will exist on the Play Store</li>
</ul>
<h4>2.0.15</h4>
<ul>
<li>More playlist related crash fixes</li>
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/assets/web/info_dark.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@
</head>

<body>
<h4>2.0.17</h4>
<ul>
<li>Fixed an issue where playlists didn't show up on some devices</li>
<li>Shuttle 2 is in alpha testing! DM me your Play Store email address on <a href="https://discord.gg/4Z5EU7K">Discord</a> if you're interested in testing.</li>
</ul>
<h4>2.0.16</h4>
<ul>
<li>Fixed a character encoding issue preventing artwork downloading on some devices</li>
<li>Updated language around including/excluding songs</li>
<li>Possible fix for playlist editing issues on Android 10</li>
<li>Shuttle is now free - Shuttle+ will be removed, so only one version of Shuttle will exist on the Play Store</li>
</ul>
<h4>2.0.15</h4>
<ul>
<li>More playlist related crash fixes</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@
import com.simplecity.amp_library.sql.databases.CustomArtworkTable;
import com.simplecity.amp_library.sql.providers.PlayCountTable;
import com.simplecity.amp_library.sql.sqlbrite.SqlBriteUtils;
import com.simplecity.amp_library.utils.AnalyticsManager;
import com.simplecity.amp_library.utils.DataManager;
import com.simplecity.amp_library.utils.InputMethodManagerLeaks;
import com.simplecity.amp_library.utils.LegacyUtils;
import com.simplecity.amp_library.utils.LogUtils;
import com.simplecity.amp_library.utils.SettingsManager;
import com.simplecity.amp_library.utils.StringUtils;
Expand Down Expand Up @@ -72,8 +70,6 @@ public static synchronized ShuttleApplication getInstance() {
return instance;
}

private boolean isUpgraded;

public static final double VOLUME_INCREMENT = 0.05;

private RefWatcher refWatcher;
Expand Down Expand Up @@ -182,15 +178,6 @@ public static String getVersion() {
return "unknown";
}

public void setIsUpgraded(boolean isUpgraded) {
this.isUpgraded = isUpgraded;
AnalyticsManager.setIsUpgraded();
}

public boolean getIsUpgraded() {
return isUpgraded || BuildConfig.DEBUG;
}

public static File getDiskCacheDir(String uniqueName) {
try {
// Check if media is mounted or storage is built-in, if so, try and use external cache dir
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@ private Config() {
public static final String PACKAGE_NAME_PRO = "com.simplecity.amp_pro";

public static final String CHROMECAST_APP_ID = "73341C53";

// IAP
public static final String SKU_PREMIUM = "id_upgrade_to_pro";
}
6 changes: 3 additions & 3 deletions app/src/main/java/com/simplecity/amp_library/model/Album.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;

Expand Down Expand Up @@ -217,8 +217,8 @@ private void setArtworkKey() {
public String getRemoteArtworkUrl() {
try {
return "https://artwork.shuttlemusicplayer.app/api/v1/artwork"
+ "?artist=" + URLEncoder.encode(albumArtistName, Charset.forName("UTF-8").toString())
+ "&album=" + URLEncoder.encode(name, Charset.forName("UTF-8").toString());
+ "?artist=" + URLEncoder.encode(albumArtistName, StandardCharsets.UTF_8.name())
+ "&album=" + URLEncoder.encode(name, StandardCharsets.UTF_8.name());
} catch (UnsupportedEncodingException e) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
Expand Down Expand Up @@ -126,7 +126,7 @@ public int hashCode() {
@Override
public String getRemoteArtworkUrl() {
try {
return "https://artwork.shuttlemusicplayer.app/api/v1/artwork?artist=" + URLEncoder.encode(name, Charset.forName("UTF-8").toString());
return "https://artwork.shuttlemusicplayer.app/api/v1/artwork?artist=" + URLEncoder.encode(name, StandardCharsets.UTF_8.name());
} catch (UnsupportedEncodingException e) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static Playlist podcastPlaylist() {
// Check if there are any podcasts
Query query = new Query.Builder()
.uri(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI)
.projection(new String[] { "count(*)", MediaStore.Audio.Media.IS_PODCAST})
.projection(new String[] { MediaStore.Audio.Media.IS_PODCAST })
.selection(MediaStore.Audio.Media.IS_PODCAST + "=1")
.build();

Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/com/simplecity/amp_library/model/Song.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.List;

public class Song implements
Expand Down Expand Up @@ -361,8 +361,8 @@ private void setArtworkKey() {
public String getRemoteArtworkUrl() {
try {
return "https://artwork.shuttlemusicplayer.app/api/v1/artwork"
+ "?artist=" + URLEncoder.encode(albumArtistName, Charset.forName("UTF-8").toString())
+ "&album=" + URLEncoder.encode(albumName, Charset.forName("UTF-8").toString());
+ "?artist=" + URLEncoder.encode(albumArtistName, StandardCharsets.UTF_8.name())
+ "&album=" + URLEncoder.encode(albumName, StandardCharsets.UTF_8.name());
} catch (UnsupportedEncodingException e) {
return null;
}
Expand Down