-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add trial notification for store kit
- Loading branch information
1 parent
51a54ad
commit 449fd85
Showing
9 changed files
with
81 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
// | ||
// Copyright © 2023 Alexander Romanov | ||
// AdViewModel.swift, created on 30.06.2023 | ||
// | ||
// | ||
|
||
import SwiftUI | ||
import OversizeNetwork | ||
import Factory | ||
import OversizeServices | ||
import SwiftUI | ||
// import OversizeNetwork | ||
// import Factory | ||
|
||
@MainActor | ||
public class AdViewModel: ObservableObject { | ||
@Injected(\.networkService) var networkService | ||
@Published var appAd = Info.all?.apps.filter { $0.id != Info.app.appStoreID }.randomElement() | ||
/* | ||
@Injected(\.networkService) var networkService | ||
|
||
@Published var appAd: Components.Schemas.AdBanner? | ||
|
||
public func fetchAdBanners() async { | ||
let status = await networkService.fetchAdsBanners() | ||
switch status { | ||
case .success(let banners): | ||
appAd = banners.filter { $0.id != Int(Info.app.appStoreID ?? "") }.randomElement() | ||
case .failure: | ||
break | ||
} | ||
} | ||
|
||
public func fetchAdBanners() async { | ||
let status = await networkService.fetchAdsBanners() | ||
switch status { | ||
case .success(let banners): | ||
appAd = banners.filter { $0.id != Int(Info.app.appStoreID ?? "") }.randomElement() | ||
case .failure: | ||
break | ||
} | ||
} | ||
*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters