Skip to content

Commit 2aa89e8

Browse files
leogdionclaude
andcommitted
refactor: reorganize Examples directory structure
- Move MistDemo to standalone package structure (Examples/MistDemo/) - Create Package.swift for MistDemo (consistent with Celestra) - Add Celestra RSS reader example demonstrating query filtering - Add CloudKitService+RecordModification for public record operations - Remove top-level Examples/Package.swift (each example is now independent) Both demo projects now have consistent structure: - Examples/Celestra/ - RSS reader with filtering/sorting - Examples/MistDemo/ - Web auth demo with Hummingbird 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cbc851f commit 2aa89e8

21 files changed

Lines changed: 1296 additions & 41 deletions

Examples/Celestra/.env.example

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# CloudKit Configuration
2+
# Copy this file to .env and fill in your values
3+
4+
# Your CloudKit container ID (e.g., iCloud.com.example.Celestra)
5+
CLOUDKIT_CONTAINER_ID=iCloud.com.example.Celestra
6+
7+
# Your CloudKit server-to-server key ID from Apple Developer Console
8+
CLOUDKIT_KEY_ID=your-key-id-here
9+
10+
# Path to your CloudKit private key PEM file
11+
CLOUDKIT_PRIVATE_KEY_PATH=/path/to/eckey.pem
12+
13+
# CloudKit environment: development or production
14+
CLOUDKIT_ENVIRONMENT=development

Examples/Celestra/Package.resolved

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/Celestra/Package.swift

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// swift-tools-version: 5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "Celestra",
6+
platforms: [.macOS(.v14)],
7+
products: [
8+
.executable(name: "celestra", targets: ["Celestra"])
9+
],
10+
dependencies: [
11+
.package(path: "../.."), // MistKit
12+
.package(url: "https://github.com/brightdigit/SyndiKit.git", from: "0.6.0"),
13+
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0")
14+
],
15+
targets: [
16+
.executableTarget(
17+
name: "Celestra",
18+
dependencies: [
19+
.product(name: "MistKit", package: "MistKit"),
20+
.product(name: "SyndiKit", package: "SyndiKit"),
21+
.product(name: "ArgumentParser", package: "swift-argument-parser")
22+
]
23+
)
24+
]
25+
)

0 commit comments

Comments
 (0)