Skip to content

StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.

Refactor code structure and remove redundant changes

David Nashash461a7a55d72a
diff --git a/app/src/androidTest/java/com/streamvault/app/tv/LauncherProviderInstrumentationTest.kt b/app/src/androidTest/java/com/streamvault/app/tv/LauncherProviderInstrumentationTest.kt
index 0b084d7a..5a5f7d39 100644
--- a/app/src/androidTest/java/com/streamvault/app/tv/LauncherProviderInstrumentationTest.kt
+++ b/app/src/androidTest/java/com/streamvault/app/tv/LauncherProviderInstrumentationTest.kt
@@ -184,7 +184,7 @@ class LauncherProviderInstrumentationTest {
}
private fun resourceArtworkUri(): Uri =
- Uri.parse("android.resource://${context.packageName}/${com.streamvault.app.R.mipmap.ic_launcher_vault}")
+ Uri.parse("android.resource://${context.packageName}/${com.streamvault.app.R.mipmap.ic_launcher}")
private fun mainActivityIntentUri(): String =
Intent(context, com.streamvault.app.MainActivity::class.java)
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 76289309..b812ce1b 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -45,8 +45,8 @@
android:name=".StreamVaultApp"
android:allowBackup="false"
android:banner="@drawable/app_banner"
- android:icon="@mipmap/ic_launcher_vault"
- android:roundIcon="@mipmap/ic_launcher_vault"
+ android:icon="@mipmap/ic_launcher"
+ android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:usesCleartextTraffic="false"
diff --git a/app/src/main/java/com/streamvault/app/tv/LauncherRecommendationsManager.kt b/app/src/main/java/com/streamvault/app/tv/LauncherRecommendationsManager.kt
index fbe87dd3..e1b77b2e 100644
--- a/app/src/main/java/com/streamvault/app/tv/LauncherRecommendationsManager.kt
+++ b/app/src/main/java/com/streamvault/app/tv/LauncherRecommendationsManager.kt
@@ -392,7 +392,7 @@ class LauncherRecommendationsManager @Inject constructor(
}
private fun writeDefaultLogo(stream: OutputStream) {
- val bitmap = BitmapFactory.decodeResource(context.resources, R.mipmap.ic_launcher_vault)
+ val bitmap = BitmapFactory.decodeResource(context.resources, R.mipmap.ic_launcher)
bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream)
}
@@ -414,7 +414,7 @@ class LauncherRecommendationsManager @Inject constructor(
if (remoteArtwork != null) {
return Uri.parse(remoteArtwork)
}
- return Uri.parse("android.resource://${context.packageName}/${R.mipmap.ic_launcher_vault}")
+ return Uri.parse("android.resource://${context.packageName}/${R.mipmap.ic_launcher}")
}
private data class RecommendationChannelSpec(
diff --git a/app/src/main/java/com/streamvault/app/tv/WatchNextManager.kt b/app/src/main/java/com/streamvault/app/tv/WatchNextManager.kt
index d2f418c9..2cab5007 100644
--- a/app/src/main/java/com/streamvault/app/tv/WatchNextManager.kt
+++ b/app/src/main/java/com/streamvault/app/tv/WatchNextManager.kt
@@ -198,7 +198,7 @@ class WatchNextManager @Inject constructor(
if (remoteArtwork != null) {
return Uri.parse(remoteArtwork)
}
- return Uri.parse("android.resource://${context.packageName}/${R.mipmap.ic_launcher_vault}")
+ return Uri.parse("android.resource://${context.packageName}/${R.mipmap.ic_launcher}")
}
private fun isEligibleForWatchNext(history: PlaybackHistory): Boolean {
diff --git a/app/src/main/res/drawable-hdpi/app_banner.png b/app/src/main/res/drawable-hdpi/app_banner.png
index 72975ce7..7778d341 100644
Binary files a/app/src/main/res/drawable-hdpi/app_banner.png and b/app/src/main/res/drawable-hdpi/app_banner.png differ
diff --git a/app/src/main/res/drawable-hdpi/ic_launcher_vault_art.png b/app/src/main/res/drawable-hdpi/ic_launcher_vault_art.png
deleted file mode 100644
index b095e588..00000000
Binary files a/app/src/main/res/drawable-hdpi/ic_launcher_vault_art.png and /dev/null differ
diff --git a/app/src/main/res/drawable-mdpi/app_banner.png b/app/src/main/res/drawable-mdpi/app_banner.png
index 69d776ff..296453dd 100644
Binary files a/app/src/main/res/drawable-mdpi/app_banner.png and b/app/src/main/res/drawable-mdpi/app_banner.png differ
diff --git a/app/src/main/res/drawable-mdpi/ic_launcher_vault_art.png b/app/src/main/res/drawable-mdpi/ic_launcher_vault_art.png
deleted file mode 100644
index a61ea42b..00000000
Binary files a/app/src/main/res/drawable-mdpi/ic_launcher_vault_art.png and /dev/null differ
diff --git a/app/src/main/res/drawable-xhdpi/app_banner.png b/app/src/main/res/drawable-xhdpi/app_banner.png
index 37528d6d..f9fbc779 100644
Binary files a/app/src/main/res/drawable-xhdpi/app_banner.png and b/app/src/main/res/drawable-xhdpi/app_banner.png differ
diff --git a/app/src/main/res/drawable-xhdpi/ic_launcher_vault_art.png b/app/src/main/res/drawable-xhdpi/ic_launcher_vault_art.png
deleted file mode 100644
index 3afd423d..00000000
Binary files a/app/src/main/res/drawable-xhdpi/ic_launcher_vault_art.png and /dev/null differ
diff --git a/app/src/main/res/drawable-xxhdpi/app_banner.png b/app/src/main/res/drawable-xxhdpi/app_banner.png
index 61aafa6b..948d4076 100644
Binary files a/app/src/main/res/drawable-xxhdpi/app_banner.png and b/app/src/main/res/drawable-xxhdpi/app_banner.png differ
diff --git a/app/src/main/res/drawable-xxhdpi/ic_launcher_vault_art.png b/app/src/main/res/drawable-xxhdpi/ic_launcher_vault_art.png
deleted file mode 100644
index 96d6808b..00000000
Binary files a/app/src/main/res/drawable-xxhdpi/ic_launcher_vault_art.png and /dev/null differ
diff --git a/app/src/main/res/drawable-xxxhdpi/app_banner.png b/app/src/main/res/drawable-xxxhdpi/app_banner.png
index 78f8a8ab..b814515b 100644
Binary files a/app/src/main/res/drawable-xxxhdpi/app_banner.png and b/app/src/main/res/drawable-xxxhdpi/app_banner.png differ
diff --git a/app/src/main/res/drawable-xxxhdpi/ic_launcher_vault_art.png b/app/src/main/res/drawable-xxxhdpi/ic_launcher_vault_art.png
deleted file mode 100644
index fac722db..00000000
Binary files a/app/src/main/res/drawable-xxxhdpi/ic_launcher_vault_art.png and /dev/null differ
diff --git a/app/src/main/res/drawable/app_banner.png b/app/src/main/res/drawable/app_banner.png
index 37528d6d..2727ec0e 100644
Binary files a/app/src/main/res/drawable/app_banner.png and b/app/src/main/res/drawable/app_banner.png differ
diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml
deleted file mode 100644
index 1a075557..00000000
--- a/app/src/main/res/drawable/ic_launcher_foreground.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
- android:src="@drawable/ic_launcher_vault_art"
- android:gravity="fill"/>
-
diff --git a/app/src/main/res/ic_launcher-web.png b/app/src/main/res/ic_launcher-web.png
new file mode 100644
index 00000000..c2fdbeed
Binary files /dev/null and b/app/src/main/res/ic_launcher-web.png differ
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 00000000..79d695e1
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,4 @@
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/ic_launcher_background"/>
+ <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
+</adaptive-icon>
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 00000000..79d695e1
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,4 @@
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/ic_launcher_background"/>
+ <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
+</adaptive-icon>
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_vault.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_vault.xml
deleted file mode 100644
index f1db753b..00000000
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_vault.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
- <background android:drawable="@android:color/black"/>
- <foreground android:drawable="@drawable/ic_launcher_foreground"/>
-</adaptive-icon>
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 00000000..9b633511
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..06e2060e
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 00000000..8a8c1b8a
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_vault.png b/app/src/main/res/mipmap-hdpi/ic_launcher_vault.png
deleted file mode 100644
index b095e588..00000000
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher_vault.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-ldpi/ic_launcher.png b/app/src/main/res/mipmap-ldpi/ic_launcher.png
new file mode 100644
index 00000000..7ffbe66f
Binary files /dev/null and b/app/src/main/res/mipmap-ldpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-ldpi/ic_launcher_round.png b/app/src/main/res/mipmap-ldpi/ic_launcher_round.png
new file mode 100644
index 00000000..1bfcbe44
Binary files /dev/null and b/app/src/main/res/mipmap-ldpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 00000000..5d53f2c4
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..03ad6595
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 00000000..1e8bd038
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_vault.png b/app/src/main/res/mipmap-mdpi/ic_launcher_vault.png
deleted file mode 100644
index a61ea42b..00000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_vault.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 00000000..ab14adc7
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..efed4ef0
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..65ffbe9f
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_vault.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_vault.png
deleted file mode 100644
index 3afd423d..00000000
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher_vault.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 00000000..8a3de238
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..fb85fd89
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..673dd421
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_vault.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_vault.png
deleted file mode 100644
index 96d6808b..00000000
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher_vault.png and /dev/null differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 00000000..a25e9ecb
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..b4ea9679
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..e5ec3f7e
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_vault.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_vault.png
deleted file mode 100644
index fac722db..00000000
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_vault.png and /dev/null differ
diff --git a/app/src/main/res/playstore-icon.png b/app/src/main/res/playstore-icon.png
new file mode 100644
index 00000000..f70fc661
Binary files /dev/null and b/app/src/main/res/playstore-icon.png differ
diff --git a/app/src/main/res/values/ic_launcher_background.xml b/app/src/main/res/values/ic_launcher_background.xml
index dc88b7c0..1a67d47b 100644
--- a/app/src/main/res/values/ic_launcher_background.xml
+++ b/app/src/main/res/values/ic_launcher_background.xml
@@ -1,4 +1,3 @@
-<?xml version="1.0" encoding="utf-8"?>
<resources>
- <color name="ic_launcher_background">#212121</color>
-</resources>
+ <color name="ic_launcher_background">#001e46</color>
+</resources>
\ No newline at end of file