Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ Jellyfin music and audiobook player for Android Automotive OS (AAOS) with offlin
./gradlew :automotive:installDebug
```

## Releasing

1. Bump `versionCode` (increment by 1) and `versionName` (semver) in `automotive/build.gradle.kts`
2. Commit **only** `automotive/build.gradle.kts` with this exact message format:

```
Release v<versionName>(<versionCode>)

<Short one-line description of the release>

Full release notes:

- <bullet 1>
- <bullet 2>
```

Example: `Release v1.2.2(18)`

- **Min SDK**: 28 (Android 9)
- **Target SDK**: 36
- **Compile SDK**: 36
Expand Down
4 changes: 2 additions & 2 deletions automotive/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
applicationId = "com.chamika.dashtune"
minSdk = 28
targetSdk = 36
versionCode = 17
versionName = "1.2.1"
versionCode = 18
versionName = "1.2.2"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ import com.chamika.dashtune.signin.SignInActivity
import com.google.common.collect.ImmutableList
import com.google.common.util.concurrent.Futures
import com.google.common.util.concurrent.ListenableFuture
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.withContext
import kotlinx.coroutines.withTimeoutOrNull
import org.jellyfin.sdk.api.client.ApiClient
import org.jellyfin.sdk.api.client.extensions.itemsApi
Expand Down Expand Up @@ -416,7 +418,7 @@ class DashTuneSessionCallback(

SYNC_COMMAND -> {
return SuspendToFutureAdapter.launchFuture {
val success = repository.sync()
val success = withContext(Dispatchers.IO) { repository.sync() }
if (success) {
PreferenceManager.getDefaultSharedPreferences(service).edit {
putLong("last_sync_timestamp", System.currentTimeMillis())
Expand Down
Loading