mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-20 03:44:25 +00:00
- 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,
35 lines
988 B
Swift
35 lines
988 B
Swift
// 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"]),
|
|
]
|
|
)
|