Skip to content

Conversation

Copy link

Copilot AI commented Jul 21, 2025

Implements app version comparison functionality that allows users to check for updates directly from the My Profile screen.

Changes Made

1. New AppVersionService

  • Created AppVersionService.swift with iTunes Search API integration
  • Implements semantic version comparison logic (handles major.minor.patch format)
  • Provides App Store navigation capability
  • Follows existing service patterns using Alamofire

2. VersionInfoView Component

  • Added new "앱 정보" (App Info) section to MyProfileView
  • Shows current app version (1.0.3) from bundle info
  • Fetches latest version from App Store asynchronously
  • Displays update button when newer version is available
  • Shows update alert with release notes

3. UI Integration

  • Positioned between notification settings and service terms
  • Uses app's Pretendard font system for consistency
  • Follows existing color scheme (gray01, blue02)
  • Non-blocking version check with loading indicator

Technical Implementation

// Example usage in VersionInfoView
AppVersionService.shared.checkForAppUpdate { result in
    switch result {
    case .success(let versionResult):
        // Display current vs App Store version
        // Show update button if newer version available
    case .failure:
        // Graceful fallback - no disruption to user
    }
}

Testing

  • Unit tests for version comparison logic
  • Verified handling of edge cases (same version, older version, multi-digit versions)
  • Tested semantic version parsing: 1.0.3 → 1.0.4, 1.1.0, 2.0.0

User Experience

  • Automatic version check when My Profile loads
  • Clear visual indication of update availability
  • Direct navigation to App Store for updates
  • Silent failure if API unavailable (no user disruption)

Fixes #131.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@jjwon2149 jjwon2149 closed this Jul 21, 2025
Copilot AI changed the title [WIP] 앱스토어 버전, 현재 버전 비교 Add App Store version comparison feature to My Profile view Jul 21, 2025
Copilot AI requested a review from jjwon2149 July 21, 2025 06:01
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.

앱스토어 버전, 현재 버전 비교

2 participants