Swift implementation of the Twilic wire format and session-aware encoder/decoder.
This package's default encode / decode API targets Twilic v2.
- Dynamic encoding/decoding (
encode,decode) - V2 wire profile and codec spec vector tests
- Session/protocol APIs under
Sources/Twilic/Core/
twilic-swift/
Sources/Twilic/ # library sources
Tests/TwilicTests/ # unit tests
Package.swift
docs/
- Swift 5.9+
- macOS 13+ / iOS 15+ (per
Package.swift)
Swift Package Manager:
dependencies: [
.package(url: "https://github.com/twilic/twilic-swift.git", from: "0.1.0"),
]import Twilic
let value = newMap([
entry("id", newU64(1001)),
entry("name", newString("alice")),
])
let data = try encode(value)
let decoded = try decode(data)swift testCI runs on macos-latest because of Apple platform targets.
See docs/CONTRIBUTING.md.
.github/workflows/ci.yml—swift test(macOS) and markdown checks (Ubuntu)
Mirrors twilic/twilic and twilic-java.
This project is licensed under the MIT License - see the LICENSE file for details.