DEPENDENCIES.md
This document describes the dependencies used in the MiaoYan project and their migration from CocoaPods to Swift Package Manager.
The project now uses Swift Package Manager for all dependencies. The Package.swift file in the root directory documents all dependencies used by the Xcode project.
| Package | Version | Purpose |
|---|---|---|
| Sparkle | 2.7.1+ | Auto-update framework for macOS apps |
| AppCenter | 5.0.6+ | App analytics and crash reporting |
| Alamofire | 5.10.2+ | HTTP networking library |
| SwiftyJSON | 5.0.2+ | JSON parsing library |
| Highlightr | 2.3.0+ | Syntax highlighting for code blocks |
| ZipArchive | 2.6.0+ | ZIP file compression and decompression |
| swift-cmark-gfm | 1.0.2+ | GitHub Flavored Markdown parsing |
| MASShortcut | master | Global keyboard shortcuts for macOS |
The project was successfully migrated from CocoaPods to Swift Package Manager:
Podfile, Podfile.lock, and all CocoaPods configurationslibcmark_gfm with swift-cmark-gfm for better Swift integrationMarkdown Parser: Replaced libcmark_gfm with swift-cmark-gfm
// Old (libcmark_gfm)
import libcmark_gfm
// New (swift-cmark-gfm)
import CMarkGFM
// Usage remains similar with C API wrapper
let html = renderMarkdownHTML(markdown: markdownContent)
ZIP Archive: Updated import statement
// Old
import SSZipArchive
// New
import ZipArchive
AppCenter: Removed AppCenterDistribute, kept AppCenterAnalytics and AppCenterCrashes
open MiaoYan.xcodeproj
# Build using Xcode (⌘+B)
The Package.swift file is primarily for documentation and dependency tracking. To work with dependencies:
# Show dependency tree
swift package show-dependencies
# Resolve dependencies (for reference)
swift package resolve
Note: The actual app build uses the Xcode project, not the Package.swift file.
⌘+Shift+K) and rebuildPackage.resolved and resolve againFor dependency-related issues, please check: