Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

feat: add centralized version management#14

Merged
hyochan merged 2 commits intomainfrom
feat/version-management
Sep 27, 2025
Merged

feat: add centralized version management#14
hyochan merged 2 commits intomainfrom
feat/version-management

Conversation

@hyochan
Copy link
Member

@hyochan hyochan commented Sep 27, 2025

Summary

  • Added openiap-versions.json for centralized version tracking
  • Created version management system that reads from JSON file
  • Enables easy version updates across the SDK

Changes

  • Add openiap-versions.json with current versions (apple: 1.2.3, gql: 1.0.9)
  • Create OpenIapVersion.swift to read versions at runtime
  • Update Package.swift to include version file as resource
  • Expose version info through OpenIapVersionInfo enum

Usage

// Get current SDK version
let sdkVersion = OpenIapVersionInfo.sdkVersion // "1.2.3"

// Get GraphQL reference version
let gqlVersion = OpenIapVersionInfo.gqlVersion // "1.0.9"

🤖 Generated with Claude Code

- Add openiap-versions.json for version tracking
- Create OpenIapVersion.swift to read versions from JSON
- Include version file as Package resource
- Expose version info through OpenIapVersionInfo enum

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@hyochan hyochan added the 🎯 feature New feature label Sep 27, 2025
- Update bump-version.sh to update openiap-versions.json
- Add jq installation to deploy-swift.yml workflow
- Update OpenIapVersion.swift fallback version automatically
- Include version files in git commit during release

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@hyochan
Copy link
Member Author

hyochan commented Sep 27, 2025

Update: Added automated version synchronization

Changes added:

  • bump-version.sh: Now updates openiap-versions.json automatically
  • deploy-swift.yml: Added jq installation for JSON processing
  • Version sync: Both openiap-versions.json and OpenIapVersion.swift fallback are updated during release

How it works:

  1. When releasing a new version via the workflow, it first updates:

    • VERSION file
    • openiap-versions.json (apple version)
    • OpenIapVersion.swift (fallback version)
    • openiap.podspec
    • README.md
  2. All version files are committed together before creating the release

This ensures version consistency across all files during the release process.

@hyochan hyochan merged commit ce206d0 into main Sep 27, 2025
1 check passed
@hyochan hyochan deleted the feat/version-management branch September 27, 2025 07:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🎯 feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant