diff --git a/Package.swift b/Package.swift index 7fd4928..2bf471a 100644 --- a/Package.swift +++ b/Package.swift @@ -1,15 +1,15 @@ -// swift-tools-version: 5.8 +// swift-tools-version: 5.9 import PackageDescription let package = Package( name: "PodcastIndexKit", platforms: [ - .iOS(.v13), - .macCatalyst(.v13), + .iOS(.v17), + .macCatalyst(.v17), .macOS(.v10_15), - .watchOS(.v6), - .tvOS(.v13), + .watchOS(.v9), + .tvOS(.v16), ], products: [ .library( diff --git a/Sources/PodcastIndexKit/PodcastIndexKit.swift b/Sources/PodcastIndexKit/PodcastIndexKit.swift index d0443b5..53bcc45 100644 --- a/Sources/PodcastIndexKit/PodcastIndexKit.swift +++ b/Sources/PodcastIndexKit/PodcastIndexKit.swift @@ -1,6 +1,8 @@ import Foundation +import SwiftData -public final class PodcastIndexKit: ObservableObject { +@Observable +public final class PodcastIndexKit { public init() { } static public func setup(apiKey: String, apiSecret: String, userAgent: String) { @@ -13,13 +15,13 @@ public final class PodcastIndexKit: ObservableObject { static var apiSecret: String? static var userAgent: String? - public lazy var searchService = SearchService() - public lazy var podcastsService = PodcastsService() - public lazy var episodesService = EpisodesService() - public lazy var recentService = RecentService() - public lazy var valueService = ValueService() - public lazy var statsService = StatsService() - public lazy var categoriesService = CategoriesService() - public lazy var hubService = HubService() - public lazy var appleReplacementService = AppleReplacementService() + public var searchService = SearchService() + public var podcastsService = PodcastsService() + public var episodesService = EpisodesService() + public var recentService = RecentService() + public var valueService = ValueService() + public var statsService = StatsService() + public var categoriesService = CategoriesService() + public var hubService = HubService() + public var appleReplacementService = AppleReplacementService() }