Skip to content

Commit

Permalink
Merge pull request #2 from SparrowTek/iOS_17
Browse files Browse the repository at this point in the history
support new observable macro
  • Loading branch information
radmakr authored Oct 12, 2023
2 parents ebfcaa1 + db82cd9 commit 12dc1ef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
10 changes: 5 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
22 changes: 12 additions & 10 deletions Sources/PodcastIndexKit/PodcastIndexKit.swift
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -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()
}

0 comments on commit 12dc1ef

Please sign in to comment.