Skip to content

1197 fix version code inactive bundles - #1198

Draft
DennisHartrampf wants to merge 2 commits into
Triple-T:masterfrom
DennisHartrampf:1197-fix-versionCode-inactive-bundles
Draft

1197 fix version code inactive bundles#1198
DennisHartrampf wants to merge 2 commits into
Triple-T:masterfrom
DennisHartrampf:1197-fix-versionCode-inactive-bundles

Conversation

@DennisHartrampf

Copy link
Copy Markdown
Contributor

Fixes #1197

@DennisHartrampf
DennisHartrampf force-pushed the 1197-fix-versionCode-inactive-bundles branch from 0c7b5e6 to 313d6f0 Compare August 18, 2026 18:59
- findMaxAppVersionCode no longer ignores inactive bundles/apks
- instead of extracting the highest versionCode from all tracks, it now extracts the highest versionCode of all bundles and APKs

Resolves Triple-T#1197
@DennisHartrampf
DennisHartrampf force-pushed the 1197-fix-versionCode-inactive-bundles branch from 313d6f0 to 356609d Compare August 18, 2026 19:01
@DennisHartrampf
DennisHartrampf marked this pull request as draft August 18, 2026 19:46
@DennisHartrampf

Copy link
Copy Markdown
Contributor Author

Reverted to DRAFT state. Looks like the fix doesn't solve my issue. The Google API still returns 18 as latest versionCode. I'll have to look at this again.

}
}

override fun findMaxAppVersionCode(editId: String): Int {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this pulled out into a new fn? This module isn't supposed to have logic so this code should go back in DefaultEditManager.kt

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks for the feedback. I wasn't aware of this. The reason was simplicity: The new function's logic needs Bundles and APKs from the Android Publisher. Both of these aren't available in DefaultEditManager, yet, and I was reluctant to introduce two new dependencies there. But I totally get your point and would change it.
But - the fix didn't work anyway. It looks like Track.releases, Bundles.list and Apks.list all only contain active versions. So for now I don't see a way of fixing the issue when using the ResolutionStrategy.AUTO. Also since I manually set my versionCode yesterday to be able to release my app update, I can't reproduce the issue on my machine anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DefaultEditManager#findMaxAppVersionCode ignores inactive bundles/apks

2 participants