Skip to content

fix: implement unified versioning for main and mobile apps#20

Merged
typelets merged 1 commit intomainfrom
fix/unified-versioning
Oct 9, 2025
Merged

fix: implement unified versioning for main and mobile apps#20
typelets merged 1 commit intomainfrom
fix/unified-versioning

Conversation

@typelets
Copy link
Copy Markdown
Owner

@typelets typelets commented Oct 9, 2025

Summary

Simplifies version management by syncing main and mobile apps to use the same version number, eliminating version drift and complex release logic.

Problem

Previously, the system attempted separate versioning for mobile and main apps, but:

  • Main version was still bumping on mobile-only commits
  • Complex logic tried to detect "mobile-only" releases
  • Separate CHANGELOGs created confusion
  • Version numbers drifted (main: 1.22.1, mobile: 1.2.0)

Solution: Unified Versioning

Both main and mobile apps now always use the same version number (e.g., 1.23.0).

Changes Made

Simplified Scripts:

  • update-version.js - Removed mobile-only release detection logic
  • update-mobile-version.js - Rewritten to simply sync to the version passed by semantic-release (141 lines → 63 lines)
  • Removed generate-mobile-changelog.js - No longer needed

Updated Configuration:

  • .releaserc.json - Pass version to mobile script, remove mobile CHANGELOG from assets
  • Removed apps/mobile/v1/CHANGELOG.md - Use main CHANGELOG with mobile: prefix

Benefits

✅ Simpler - 97 fewer lines of complex logic
✅ One version - Easy to track across platforms✅ No drift - Always in sync
✅ Less confusion - Single source of truth
✅ Standard pattern - Common in monorepos (React, Next.js, etc.)

Breaking Changes

None - this is an internal process improvement

Testing

  • Tested version scripts with v1.99.99
  • Verified both main and mobile sync correctly
  • Confirmed build numbers increment properly (iOS/Android)

@typelets typelets self-assigned this Oct 9, 2025
@typelets typelets merged commit bdd6852 into main Oct 9, 2025
3 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 9, 2025

🎉 This PR is included in version 1.22.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants