From 6105118e6aa8c708797faca610122bfa30bb4678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Font=C3=A1n?= Date: Mon, 1 Apr 2024 11:14:38 +0200 Subject: [PATCH] feat: Added player service for future use MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gabriel Fontán --- .idea/gradle.xml | 1 + app/build.gradle.kts | 2 +- app/mediaplayer/.gitignore | 1 + app/mediaplayer/build.gradle.kts | 55 +++++ app/mediaplayer/consumer-rules.pro | 0 app/mediaplayer/proguard-rules.pro | 21 ++ .../mediaplayer/ExampleInstrumentedTest.kt | 22 ++ app/mediaplayer/src/main/AndroidManifest.xml | 4 + .../mediaplayer/di/MediaPlayerModule.kt | 64 +++++ .../mediaplayer/service/MediaService.kt | 49 ++++ .../service/MediaServiceHandler.kt | 221 ++++++++++++++++++ .../notifications/MediaNotificationAdapter.kt | 47 ++++ .../notifications/MediaNotificationManager.kt | 84 +++++++ .../metadator_logo_foreground_player.xml | 13 ++ .../bobbyesp/mediaplayer/ExampleUnitTest.kt | 16 ++ gradle/libs.versions.toml | 1 + settings.gradle.kts | 1 + 17 files changed, 601 insertions(+), 1 deletion(-) create mode 100644 app/mediaplayer/.gitignore create mode 100644 app/mediaplayer/build.gradle.kts create mode 100644 app/mediaplayer/consumer-rules.pro create mode 100644 app/mediaplayer/proguard-rules.pro create mode 100644 app/mediaplayer/src/androidTest/java/com/bobbyesp/mediaplayer/ExampleInstrumentedTest.kt create mode 100644 app/mediaplayer/src/main/AndroidManifest.xml create mode 100644 app/mediaplayer/src/main/java/com/bobbyesp/mediaplayer/di/MediaPlayerModule.kt create mode 100644 app/mediaplayer/src/main/java/com/bobbyesp/mediaplayer/service/MediaService.kt create mode 100644 app/mediaplayer/src/main/java/com/bobbyesp/mediaplayer/service/MediaServiceHandler.kt create mode 100644 app/mediaplayer/src/main/java/com/bobbyesp/mediaplayer/service/notifications/MediaNotificationAdapter.kt create mode 100644 app/mediaplayer/src/main/java/com/bobbyesp/mediaplayer/service/notifications/MediaNotificationManager.kt create mode 100644 app/mediaplayer/src/main/res/drawable/metadator_logo_foreground_player.xml create mode 100644 app/mediaplayer/src/test/java/com/bobbyesp/mediaplayer/ExampleUnitTest.kt diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 478c933..9a08022 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -21,6 +21,7 @@