Skip to content

Set the AnkiQuest versionCode through a setter - #55

Merged
float3 merged 1 commit into
ankiquestfrom
fix/single-versioncode
Sep 29, 2026
Merged

float3 merged 1 commit into
ankiquestfrom
fix/single-versioncode

Conversation

@float3

@float3 float3 commented Sep 29, 2026

Copy link
Copy Markdown
Owner
  • upstream added validateVersionCode: exactly one versionCode line allowed, evaluated on every build via the configuration cache, reading this commit and HEAD^
  • the quest override was a second versionCode = line, so Merge upstream AnkiDroid (2.26.0alpha0) #53 fails Lint Kotlin; it also reads HEAD^ = ankiquest, so this has to land on ankiquest first
  • setVersionCode(...) sets the same value; upstream's parser (re-run with its exact regex) now finds one declaration

Upstream's validateVersionCode (buildSrc VersionCode.read) requires exactly one line starting with versionCode and runs on every build through the configuration cache. The quest override was a second one, so merging upstream fails the build. setVersionCode sets the same value.
@github-actions

Copy link
Copy Markdown

Snapshot diff report vs ankiquest. Open screenshot-diff for diffs.

  • AnkiquestHomeScreenshotTest: 1 change
All 1 changed screenshots

AnkiquestHomeScreenshotTest

  • today_320dp_compare.png

@float3
float3 merged commit 192a137 into ankiquest Sep 29, 2026
28 checks passed
@float3
float3 deleted the fix/single-versioncode branch September 29, 2026 14:44
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.

1 participant