Add a phone app with Android Auto support
:mobile (it.panov.musyx) is a Material 3 phone app over the shared AppState: Home, My Wave, search, collection, detail pages, Now Playing with queue and lyrics, and sign-in through Yandex's page in the browser. Its playback service is a MediaLibraryService, so Android Auto and Automotive can browse My Wave and stations, Home picks and the collection, search, and play by voice. Covers reach the car through a content provider limited to Yandex hosts. Signed out, the car shows a Sign in button, and it reloads when the session changes. The session's playlist is now the current track and PlayerCore's next 50, so a car's queue screen lists them and picking one jumps there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f004859395
commit
729b9b8aef
89 files changed
+5773
-15
No files matched your search
@@ -0,0 +1,70 @@
|
||||
import java.util.Properties
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.kotlin.compose)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "it.panov.musyx.mobile"
|
||||
compileSdk = 37
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "it.panov.musyx"
|
||||
minSdk = 23
|
||||
targetSdk = 37
|
||||
versionCode = 1
|
||||
versionName = "0.1.0"
|
||||
}
|
||||
|
||||
// The same keystore.properties as the TV app; without one, release builds use the debug key.
|
||||
val keystore = rootProject.file("keystore.properties").takeIf { it.exists() }?.let { file ->
|
||||
Properties().apply { file.inputStream().use(::load) }
|
||||
}
|
||||
signingConfigs {
|
||||
if (keystore != null) {
|
||||
create("release") {
|
||||
storeFile = rootProject.file(keystore.getProperty("storeFile"))
|
||||
storePassword = keystore.getProperty("storePassword")
|
||||
keyAlias = keystore.getProperty("keyAlias")
|
||||
keyPassword = keystore.getProperty("keyPassword")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
signingConfig = signingConfigs.findByName("release") ?: signingConfigs.getByName("debug")
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
||||
}
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
compose = true
|
||||
buildConfig = true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":core"))
|
||||
|
||||
implementation(libs.androidx.core.ktx)
|
||||
implementation(libs.androidx.activity.compose)
|
||||
implementation(libs.androidx.lifecycle.runtime.compose)
|
||||
|
||||
implementation(platform(libs.compose.bom))
|
||||
implementation(libs.compose.ui)
|
||||
implementation(libs.compose.ui.graphics)
|
||||
implementation(libs.compose.foundation)
|
||||
implementation(libs.compose.material3)
|
||||
implementation(libs.compose.ui.tooling.preview)
|
||||
debugImplementation(libs.compose.ui.tooling)
|
||||
|
||||
implementation(libs.media3.exoplayer)
|
||||
implementation(libs.media3.session)
|
||||
implementation(libs.okhttp)
|
||||
implementation(libs.coil.compose)
|
||||
implementation(libs.coil.network.okhttp)
|
||||
}
|
||||
Reference in new issue
Block a user