ADFA-2947 Shorten version d=debug r=release C=codeonthego#990
ADFA-2947 Shorten version d=debug r=release C=codeonthego#990hal-eisen-adfa wants to merge 2 commits intostagefrom
Conversation
📝 WalkthroughRelease NotesChanges
Risks & Best Practice Violations
WalkthroughThe version name formatting in ProjectConfig.kt has been simplified, changing the prefix from "CodeOnTheGo-" to "C-" and the build type identifiers from full words ("debug"/"release") to single characters ("d"/"r"), resulting in a more compact version string format. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
composite-builds/build-logic/common/src/main/java/com/itsaky/androidide/build/config/ProjectConfig.kt (1)
54-79:⚠️ Potential issue | 🟡 MinorMaven artifact version format is changing; confirm downstream compatibility.
simpleVersionNamedrives both the app's versionName andpublishingVersion, which is used in Maven artifact publishing coordinates (build.gradle.kts:248, MavenPublishConf.kt:84). The format changes from"CodeOnTheGo-debug-MMDD-HHMM"to"C-d-MMDD-HHMM"— a breaking change for artifact resolution if any dependencies reference the old coordinates or if repositories retain old releases.Verify: (1) whether this Maven version change was intentional, and (2) if external consumers or build artifacts depend on the old version format for artifact downloads or resolution.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@composite-builds/build-logic/common/src/main/java/com/itsaky/androidide/build/config/ProjectConfig.kt` around lines 54 - 79, The commit changed the Maven artifact version string by introducing simpleVersion = "C-$buildTypeShort-$formattedDate-$formattedTime", which will break publishing coordinates used by publishingVersion and consumers; decide whether this was intentional and either (A) revert simpleVersion to the previous human-readable pattern (e.g., "CodeOnTheGo-$buildType-$formattedDate-$formattedTime") or (B) keep the short in-app simpleVersion but add a separate publishingVersion that preserves the old format so publishing (MavenPublishConf.kt and build.gradle.kts publishingVersion usage) remains backwards-compatible; update ProjectConfig.kt to expose both simpleVersion (for app versionName) and publishingVersion (for artifact coordinates) and ensure build.gradle.kts and MavenPublishConf.kt reference publishingVersion for publishes.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In
`@composite-builds/build-logic/common/src/main/java/com/itsaky/androidide/build/config/ProjectConfig.kt`:
- Around line 54-79: The commit changed the Maven artifact version string by
introducing simpleVersion = "C-$buildTypeShort-$formattedDate-$formattedTime",
which will break publishing coordinates used by publishingVersion and consumers;
decide whether this was intentional and either (A) revert simpleVersion to the
previous human-readable pattern (e.g.,
"CodeOnTheGo-$buildType-$formattedDate-$formattedTime") or (B) keep the short
in-app simpleVersion but add a separate publishingVersion that preserves the old
format so publishing (MavenPublishConf.kt and build.gradle.kts publishingVersion
usage) remains backwards-compatible; update ProjectConfig.kt to expose both
simpleVersion (for app versionName) and publishingVersion (for artifact
coordinates) and ensure build.gradle.kts and MavenPublishConf.kt reference
publishingVersion for publishes.
No description provided.