Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

---

## [0.2.2] - 2026-01-12

### Fixed

- **DebugTree accessibility**: Added explicit `public init()` to DebugTree to resolve compilation error when using DebugTree in external modules ("DebugTree initializer is inaccessible due to 'internal' protection level")

### BREAKING CHANGES

- **None** - This release is fully backward compatible with 0.2.1

---

## [0.2.1] - 2026-01-12

### Changed
Expand Down Expand Up @@ -117,7 +129,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

| Version | Date | Status |
|---------|------|--------|
| [0.2.1] | 2026-01-12 | **Current Release** - Update source URL to HTTPS |
| [0.2.2] | 2026-01-12 | **Current Release** - Fix DebugTree accessibility |
| [0.2.1] | 2026-01-12 | Update source URL to HTTPS |
| [0.2.0] | 2026-01-09 | Stability & Security Improvements |
| [0.1.0] | 2026-01-08 | Initial release |

Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ All tests must pass before merging.

1. Update version in `Package.swift`
2. Update CHANGELOG.md with new version
3. Create git tag (`git tag v0.2.1`)
4. Push tag (`git push origin v0.2.1`)
3. Create git tag (`git tag v0.2.2`)
4. Push tag (`git push origin v0.2.2`)

### Release Checklist

Expand All @@ -201,7 +201,7 @@ All tests must pass before merging.
### Release Notes Format

```markdown
## v0.2.1
## v0.2.2

### New Features
- Feature description
Expand Down
2 changes: 1 addition & 1 deletion Canopy.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Canopy'
s.version = '0.2.1'
s.version = '0.2.2'
s.summary = 'A lightweight, high-performance logging framework for iOS'
s.description = <<-DESC
Canopy is a logging framework inspired by Android's Timber, using a Tree-based architecture.
Expand Down
2 changes: 2 additions & 0 deletions Canopy/Sources/Tree.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ open class Tree: @unchecked Sendable {
/// Marked as nonisolated(unsafe) because subclasses use locks for thread safety.
nonisolated(unsafe) open var minLevel: LogLevel = .verbose

public init() {}

@discardableResult
nonisolated open func tag(_ tag: String?) -> Self {
self.explicitTag = (tag?.isEmpty ?? true) ? nil : tag
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ Add Canopy to your project using Swift Package Manager or CocoaPods:
```bash
# Swift Package Manager
dependencies: [
.package(url: "https://github.com/ding1dingx/Canopy.git", from: "0.2.1")
.package(url: "https://github.com/ding1dingx/Canopy.git", from: "0.2.2")
]

# CocoaPods
pod 'Canopy', '~> 0.2.1'
pod 'Canopy', '~> 0.2.2'
```

Initialize in your `AppDelegate`:
Expand Down
4 changes: 2 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
```bash
# Swift Package Manager
dependencies: [
.package(url: "https://github.com/ding1dingx/Canopy.git", from: "0.2.1")
.package(url: "https://github.com/ding1dingx/Canopy.git", from: "0.2.2")
]

# CocoaPods
pod 'Canopy', '~> 0.2.1'
pod 'Canopy', '~> 0.2.2'
```

在 `AppDelegate` 中初始化:
Expand Down