-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from icefields/v100-56_playlists_improvements
V100 56 playlists improvements
- Loading branch information
Showing
29 changed files
with
301 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+520 Bytes
(100%)
app/Github/release/baselineProfiles/0/app-Github-release.dm
Binary file not shown.
Binary file modified
BIN
+516 Bytes
(100%)
app/Github/release/baselineProfiles/1/app-Github-release.dm
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,9 +39,8 @@ object Constants { | |
const val DATABASE_LIMIT_ELEMENTS = 66 | ||
const val QUICK_PLAY_MIN_SONGS = 50 | ||
const val USER_ACCESS_DEFAULT = 25 | ||
const val USER_EMAIL_DEFAULT = "" //""[email protected]" | ||
const val USER_EMAIL_DEFAULT = "" | ||
const val USER_FULL_NAME_PUBLIC_DEFAULT = 0 | ||
const val PLAYLIST_FETCH_LIMIT = 50 | ||
const val NETWORK_REQUEST_LIMIT_ARTISTS = 30 | ||
const val NETWORK_REQUEST_LIMIT_SONGS = 40 | ||
const val NETWORK_REQUEST_LIMIT_SONGS_SEARCH = 100 | ||
|
@@ -65,7 +64,6 @@ object Constants { | |
const val USER_ID_ERROR = ERROR_INT | ||
|
||
// FLAGS | ||
const val RESET_QUEUE_ON_NEW_SESSION = BuildConfig.RESET_QUEUE_ON_NEW_SESSION | ||
const val CLEAR_TABLE_AFTER_FETCH = false | ||
const val ALWAYS_FETCH_ALL_PLAYLISTS = true | ||
|
||
|
@@ -92,4 +90,8 @@ object Constants { | |
const val DOGMAZIC_FAKE_USERNAME = "PowerAmpache" | ||
const val DOGMAZIC_FAKE_STATE = "Ehime" | ||
const val DOGMAZIC_FAKE_CITY = "Aoshima" | ||
|
||
// fetch this from remote config or initialize locally | ||
const val CONFIG_URL = "https://icefields.github.io/powerampache/config.json" | ||
var config = Pa2Config() | ||
} |
39 changes: 0 additions & 39 deletions
39
app/src/main/java/luci/sixsixsix/powerampache2/common/Event.kt
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
app/src/main/java/luci/sixsixsix/powerampache2/common/Pa2Config.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* Copyright (C) 2024 Antonio Tari | ||
* | ||
* This file is a part of Power Ampache 2 | ||
* Ampache Android client application | ||
* @author Antonio Tari | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http:https://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
package luci.sixsixsix.powerampache2.common | ||
|
||
import luci.sixsixsix.powerampache2.BuildConfig | ||
|
||
const val PLAYLIST_FETCH_LIMIT = 100 | ||
const val PLAYLIST_ADD_NEW_ENABLE = true | ||
const val RESET_QUEUE_ON_NEW_SESSION = BuildConfig.RESET_QUEUE_ON_NEW_SESSION | ||
const val DOGMAZIC_USER = BuildConfig.DOGMAZIC_USER | ||
|
||
data class Pa2Config( | ||
// use new fast method for adding albums and playlists to playlist | ||
val playlistAddNewEnable: Boolean = PLAYLIST_ADD_NEW_ENABLE, | ||
|
||
// reset queue on new session | ||
val queueResetOnNewSession: Boolean = RESET_QUEUE_ON_NEW_SESSION, | ||
|
||
val dogmazicDemoUser: String = DOGMAZIC_USER, | ||
|
||
// limit of songs to fetch for playlists | ||
// - bigger number results in faster fetching | ||
// - smaller number will result in data becoming visible to the user faster, but it will | ||
// take longer to completely fetch big playlists | ||
val playlistSongsFetchLimit: Int = PLAYLIST_FETCH_LIMIT, | ||
) |
6 changes: 0 additions & 6 deletions
6
app/src/main/java/luci/sixsixsix/powerampache2/common/network_check/ConnectionState.kt
This file was deleted.
Oops, something went wrong.
86 changes: 0 additions & 86 deletions
86
app/src/main/java/luci/sixsixsix/powerampache2/common/network_check/ConnectivityCheck.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.