Skip to content

Add a version bump script - #39

Merged
HituziANDO merged 1 commit into
mainfrom
feature/bump-version-script
Aug 27, 2026
Merged

Add a version bump script#39
HituziANDO merged 1 commit into
mainfrom
feature/bump-version-script

Conversation

@HituziANDO

Copy link
Copy Markdown
Owner

Summary

  • Add bump_version.sh, which updates the framework version in the podspec, SUK.version, and the four MARKETING_VERSION entries of the framework project
  • Verify the occurrence count in each file after substitution, so a format change cannot silently skip a location
  • Reject a malformed version and leave the sample apps, which carry their own versions, untouched
  • Expose the script as the version:bump npm script and document the procedure in AGENTS.md

Motivation

The version was hard-coded in three files and edited by hand for each release, so a release could ship with a stale value in one of them. sed also exits successfully when no pattern matches, so the script counts the occurrences it expects (1 / 1 / 4) and fails instead of reporting a bump it did not perform.

Validation

  • ./bump_version.sh 1.6.0 updated all three files, then the working tree was restored to 1.5.0
  • ./bump_version.sh 1.6 and an invocation with no argument both exited with status 1
  • No source or test target is affected, so the test suite was not exercised for this change

Notes

Regenerating the XCFramework and tagging remain manual. Those steps are better folded into #31, which makes XCFramework generation fail fast and reproducible.

The framework version was hard-coded in three files and had to be edited by
hand, so a release could easily ship with a stale value in one of them.

- Add bump_version.sh, which updates the podspec, SUK.version, and the four
  MARKETING_VERSION entries in the framework project.
- Verify the occurrence count in each file after substitution, because sed
  exits successfully even when no pattern matches.
- Reject a malformed version and leave the sample apps, which have their own
  versions, untouched.
- Expose it as the version:bump npm script and document the procedure in
  AGENTS.md.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@HituziANDO
HituziANDO merged commit e00a948 into main Aug 27, 2026
1 check passed
@HituziANDO
HituziANDO deleted the feature/bump-version-script branch August 27, 2026 06:53
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.

1 participant