Skip to content

[BUG]: TransformAndroidManifest can compute negative version codes #6309

Description

@BenHenning

Describe the bug

When trying to build a release locally recently, I ran into a situation where my AAB ended up being assembled with negative version codes (per #6265).

Steps To Reproduce

  1. Check out a shallow copy of Oppia Android.
  2. Try to build a release.
  3. Use bundletool to observe the version codes.
  4. Observe negative version codes.

Expected Behavior

Version codes should never be negative. In this case it's unavoidable since a shallow copy of the repository will have the wrong commit count on develop, however we should just have TransformAndroidManifest outright fail in these cases.

Screenshots/Videos

No response

What device/emulator are you using?

No response

Which Android version is your device/emulator running?

No response

Which version of the Oppia Android app are you using?

No response

Additional Context

No response

Metadata

Metadata

Labels

Impact: HighHigh perceived user impact (breaks a critical feature or blocks a release).Work: MediumThe means to find the solution is clear, but it isn't at good-first-issue level yet.bugEnd user-perceivable behaviors which are not desirable.good first issueThis item is good for new contributors to make their pull request.

Type

No type

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions