Automattic / Automattic/pocket-casts-android

Automotive: The version upgrades work off the app version number so this won't work.

Open
#108 0 comments 0 reactions 0 assignees View on GitHub
[Area] Automotive [Priority] Low [Type] Bug Migrated
Dominant language
Kotlin
Stars
2.8k
Forks
308
Avg merge
1d 13h
Merged PRs (30d)
143

Description

The VersionMigrationsJob logic works off the app version number, but Automotive requires a bigger version number than the app so it is set to a large number. For example it is the current production:

App version: 7.19.2
Google Play version: 7566
Automotive version: 57566
Buildkite build: 7366

Here is an example of the code:

```
if (previousVersionCode < 377) {
deletePodcastImages()
}
if (previousVersionCode < 422) {
addUpNextAutoDownload()
}
```

Contributor guide

Open the contributing guide

Research direction

Start by locating VersionMigrationsJob and trace how previousVersionCode is obtained and compared with the app, Google Play, Automotive, and Buildkite version values shown here. The issue is resolved when migrations no longer rely on the app version in a way that fails for Automotive; the payload does not name a test or a specific replacement strategy.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.