Skip to content

feat: Add version code and version name as a config - #18

Open
farhaanbukhsh wants to merge 1 commit into
eshe-mvp-release/teak.3from
farhaan/version-code-config
Open

farhaanbukhsh wants to merge 1 commit into
eshe-mvp-release/teak.3from
farhaan/version-code-config

Conversation

@farhaanbukhsh

Copy link
Copy Markdown
Member

Description

Information at: openedx#507

Testing instructions

Check upstream

Deadline

"None" if there's no rush, or provide a specific date or event (and reason) if there is one.

Other information

You can use our internal build archive to download the apk file and analyze

Private Ref: https://tasks.opencraft.com/browse/BB-10453

Signed-off-by: Farhaan Bukhsh <farhaan@opencraft.com>
Comment thread app/build.gradle
def appVersionCode = config.getOrDefault("VERSION_CODE", 1)?.toString()
def appVersionName = config.getOrDefault("VERSION_NAME", "1.0.0")

if (!(appVersionCode ==~ /[0-9]+/) || !appVersionCode.isInteger() ||

@kaustavb12 kaustavb12 Sep 24, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@farhaanbukhsh Since we are already verifying that it's an integer and that it is within the range. Do we still need to do the regex check here ?

@tecoholic

Copy link
Copy Markdown
Member

@farhaanbukhsh I see no difference between the upstream PR and this one. Why do we need to have a 2 branches? I ask because, I made a comment on the upstream PR (similar to @kaustavb12's one here, which I only noticed now. Sorry for the duplication). If you were to make a change based on it, you will have to do it twice now. If both PRs were from the same branch, the update would apply to both PRs. And also be easy to track code-drift in the future with the commit ID.

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.

3 participants