forked from RetroMusicPlayer/RetroMusicPlayer
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
539 changed files
with
10,454 additions
and
8,955 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* text=auto eol=lf | ||
|
||
*.bat text eol=crlf | ||
*.jar binary |
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
12 changes: 12 additions & 0 deletions
12
app/src/fdroid/java/code/name/monkey/retromusic/billing/BillingManager.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,12 @@ | ||
package code.name.monkey.retromusic.billing | ||
|
||
import android.content.Context | ||
|
||
@Suppress("UNUSED_PARAMETER") | ||
class BillingManager(context: Context) { | ||
|
||
fun release() {} | ||
|
||
val isProVersion: Boolean | ||
get() = true | ||
} |
6 changes: 6 additions & 0 deletions
6
app/src/fdroid/java/code/name/monkey/retromusic/cast/RetroWebServer.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,6 @@ | ||
package code.name.monkey.retromusic.cast | ||
|
||
import android.content.Context | ||
|
||
@Suppress("UNUSED_PARAMETER") | ||
class RetroWebServer(context: Context) |
17 changes: 17 additions & 0 deletions
17
app/src/fdroid/java/code/name/monkey/retromusic/extensions/extensions.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,17 @@ | ||
@file:Suppress("UNUSED_PARAMETER", "unused") | ||
|
||
package code.name.monkey.retromusic.extensions | ||
|
||
import android.content.Context | ||
import android.view.Menu | ||
import androidx.fragment.app.FragmentActivity | ||
|
||
fun Context.setUpMediaRouteButton(menu: Menu) {} | ||
|
||
fun FragmentActivity.installLanguageAndRecreate(code: String) { | ||
recreate() | ||
} | ||
|
||
fun Context.goToProVersion() {} | ||
|
||
fun Context.installSplitCompat() {} |
47 changes: 47 additions & 0 deletions
47
app/src/fdroid/java/code/name/monkey/retromusic/service/CastPlayer.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,47 @@ | ||
package code.name.monkey.retromusic.service | ||
|
||
import code.name.monkey.retromusic.model.Song | ||
import code.name.monkey.retromusic.service.playback.Playback | ||
|
||
// Empty CastPlayer implementation | ||
class CastPlayer : Playback { | ||
override val isInitialized: Boolean | ||
get() = true | ||
override val isPlaying: Boolean | ||
get() = true | ||
override val audioSessionId: Int | ||
get() = 0 | ||
|
||
override fun setDataSource( | ||
song: Song, | ||
force: Boolean, | ||
completion: (success: Boolean) -> Unit, | ||
) { | ||
} | ||
|
||
override fun setNextDataSource(path: String?) {} | ||
|
||
override var callbacks: Playback.PlaybackCallbacks? = null | ||
|
||
override fun start() = true | ||
|
||
override fun stop() {} | ||
|
||
override fun release() {} | ||
|
||
override fun pause(): Boolean = true | ||
|
||
override fun duration() = 0 | ||
|
||
override fun position() = 0 | ||
|
||
override fun seek(whereto: Int) = whereto | ||
|
||
override fun setVolume(vol: Float) = true | ||
|
||
override fun setAudioSessionId(sessionId: Int) = true | ||
|
||
override fun setCrossFadeDuration(duration: Int) {} | ||
|
||
override fun setPlaybackSpeedPitch(speed: Float, pitch: Float) {} | ||
} |
8 changes: 8 additions & 0 deletions
8
app/src/fdroid/java/code/name/monkey/retromusic/util/AppRater.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,8 @@ | ||
package code.name.monkey.retromusic.util | ||
|
||
import android.content.Context | ||
|
||
@Suppress("UNUSED_PARAMETER") | ||
object AppRater { | ||
fun appLaunched(context: Context) {} | ||
} |
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="download_policy">never</string> | ||
</resources> |
Oops, something went wrong.