Skip to content

Conversation

@OrangeAndGreen
Copy link
Contributor

Manually bumping app version to 2.60 after 2.59 release (I think a script was supposed to do this?)

@coderabbitai
Copy link

coderabbitai bot commented Aug 22, 2025

📝 Walkthrough

Walkthrough

Updated Android app manifest versioning: android:versionName changed from "2.59.0" to "2.60" in app/AndroidManifest.xml. android:versionCode remains 106. No other manifest entries were modified.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 2.60_bump

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (1)
app/AndroidManifest.xml (1)

5-5: Keep versionName format consistent (2.60 vs 2.60.0)

Previous release used "2.59.0". For consistency and tooling that parses semver, consider "2.60.0" instead of "2.60". If the team intentionally dropped the patch digit, ignore.

Optional diff:

-          android:versionName="2.60">
+          android:versionName="2.60.0">
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 5197748 and e7be3c0.

📒 Files selected for processing (1)
  • app/AndroidManifest.xml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Lint Code Base

Comment on lines 4 to +5
android:versionCode="106"
android:versionName="2.59.0">
android:versionName="2.60">
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Release-blocker: Bump android:versionCode for Play upload

Updating only versionName will not be accepted by Play if versionCode remains 106; every release must increment versionCode. Recommend setting it to 107 (or next unused integer per your release train).

Apply this diff:

-          android:versionCode="106"
-          android:versionName="2.60">
+          android:versionCode="107"
+          android:versionName="2.60">
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
android:versionCode="106"
android:versionName="2.59.0">
android:versionName="2.60">
android:versionCode="107"
android:versionName="2.60">
🤖 Prompt for AI Agents
In app/AndroidManifest.xml around lines 4 to 5, the android:versionCode is still
106 which blocks Play upload because versionCode must be incremented for each
release; update android:versionCode to the next integer (e.g., 107) while
keeping android:versionName as desired, save the manifest, and verify the build
uses the updated manifest before submitting to the Play Console.

💡 Verification agent

🧩 Analysis chain

Verify the manifest is the source of truth (Gradle can override these)

Many Android builds set versionCode/versionName in build.gradle(defaultConfig). If that’s the case here, this manifest change will be ignored. Please confirm there are no overrides in Gradle or flavors.

Run from repo root:


🏁 Script executed:

#!/bin/bash
# Find any Gradle overrides of versionCode/versionName
rg -nP -C2 '^\s*version(Code|Name)\s' --glob '!**/build/**' --type-add 'gradle:*.gradle' --type-add 'kts:*.kts' --type gradle --type kts
echo "Manifest occurrences:"
rg -nP -C1 'android:(versionCode|versionName)=' app/src/main/AndroidManifest.xml app/AndroidManifest.xml 2>/dev/null || true

Length of output: 750


Manifest version values are being overridden by Gradle defaultConfig – please fix

We discovered that your AndroidManifest.xml entries…

  • android:versionCode="106"
  • android:versionName="2.60"

…are effectively ignored at build time because in app/build.gradle (around line 290) you have:

defaultConfig {
    //
    versionCode 1
    // (no versionName set here)
    //
}

This means:

  • Gradle uses versionCode 1 instead of 106, so your manifest bump to 106 has no effect.
  • Since versionName isn’t set in Gradle, only the manifest’s 2.60 will be used—but best practice is to manage both in Gradle for consistency.

To resolve:

• Option A – Define both values in Gradle and remove them from the manifest

--- a/app/build.gradle
+++ b/app/build.gradle
 defaultConfig {
-    versionCode 1
+    versionCode 106
+    versionName "2.60"
     // …
 }
--- a/app/AndroidManifest.xml
+++ b/app/AndroidManifest.xml
-    android:versionCode="106"
-    android:versionName="2.60"

• Option B – Keep definitions in the manifest and remove overrides from Gradle

--- a/app/build.gradle
+++ b/app/build.gradle
 defaultConfig {
-    versionCode 1
+    // versionCode/versionName managed in AndroidManifest.xml
     // …
 }

Also double-check any productFlavor or buildType blocks for further versionCode/versionName overrides.

🤖 Prompt for AI Agents
In app/AndroidManifest.xml around lines 4-5 the manifest sets
android:versionCode="106" and android:versionName="2.60" but these are being
overridden by app/build.gradle defaultConfig (versionCode 1) so the manifest
changes have no effect; fix by moving versionCode and versionName management to
Gradle (preferred): set both versionCode and versionName in app/build.gradle
defaultConfig (and remove them from AndroidManifest.xml), or alternatively
remove the overrides from Gradle so the manifest values are used; also scan
productFlavors and buildType blocks for any additional versionCode/versionName
overrides and reconcile them.

Copy link
Contributor

@avazirna avazirna left a comment

Choose a reason for hiding this comment

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

This issue keeps happening. But I think it's more relevant to Windows machine, can you link me to your notes?

@OrangeAndGreen OrangeAndGreen merged commit 5f8c1fe into master Aug 25, 2025
6 checks passed
@OrangeAndGreen OrangeAndGreen deleted the 2.60_bump branch August 25, 2025 14:57
@OrangeAndGreen
Copy link
Contributor Author

My notes

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.

4 participants