Split the shared code into a core module
The Yandex Music client, the player, the app state and the stores move from the TV app to :core (it.panov.musyx.*), so a phone app can build on them. The TV app becomes :tv with the same application id. CoverHues, SessionPlayer and the strings the state layer shows move with them; LRCLIB's user agent is set by each app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
90ac73facc
commit
4c978efa80
121 files changed
+464
-397
No files matched your search
@@ -0,0 +1,36 @@
|
||||
// What the TV and phone apps share: the Yandex Music client, the player, the app state and
|
||||
// the stores. No UI beyond Compose runtime state.
|
||||
plugins {
|
||||
alias(libs.plugins.android.library)
|
||||
// For stability inference on the models and state the UIs read.
|
||||
alias(libs.plugins.kotlin.compose)
|
||||
alias(libs.plugins.kotlin.serialization)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "it.panov.musyx"
|
||||
compileSdk = 37
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 23
|
||||
consumerProguardFiles("consumer-rules.pro")
|
||||
}
|
||||
|
||||
testOptions {
|
||||
// PlayerCore logs through android.util.Log; JVM tests get no-op stubs.
|
||||
unitTests.isReturnDefaultValues = true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.androidx.core.ktx)
|
||||
api(platform(libs.compose.bom))
|
||||
api(libs.compose.runtime)
|
||||
api(libs.media3.exoplayer)
|
||||
api(libs.media3.session)
|
||||
implementation(libs.okhttp)
|
||||
implementation(libs.kotlinx.serialization.json)
|
||||
|
||||
testImplementation(libs.junit)
|
||||
testImplementation(libs.kotlinx.coroutines.test)
|
||||
}
|
||||
Reference in new issue
Block a user