feat: Add Swift SDK Package.swift with NIO/AsyncAlgorithms and comprehensive Telecom Platform API integration

- Add Package.swift with swift-tools-version 5.9 and platforms iOS 13+, macOS 10.15+, watchOS 6+, tvOS 13+
- Add dependencies: swift-nio 2.40.0, swift-async-algorithms 1.0.0
- Add TelecomSDK class with async/await support and TelecomConfig with 30s timeout, 3 retries
- Add subscriber management: getSubscriber, listSubscribers with pagination/status filter, createSubscriber, updateSubscriber,
This commit is contained in:
nutcas3
2026-04-17 17:53:37 +03:00
parent 7758afd150
commit b3e6419ea2
2 changed files with 333 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "TelecomSDK",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.watchOS(.v6),
.tvOS(.v13)
],
products: [
.library(
name: "TelecomSDK",
targets: ["TelecomSDK"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.40.0"),
.package(url: "https://github.com/apple/swift-async-algorithms.git", from: "1.0.0"),
],
targets: [
.target(
name: "TelecomSDK",
dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
]),
.testTarget(
name: "TelecomSDKTests",
dependencies: ["TelecomSDK"]),
]
)