-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from makinosp/develop
Develop
- Loading branch information
Showing
34 changed files
with
273 additions
and
215 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// NSError+isCancelled.swift | ||
// Harmonie | ||
// | ||
// Created by makinosp on 2024/09/08. | ||
// | ||
|
||
import Foundation | ||
|
||
extension NSError { | ||
/// A Boolean value indicating whether the error represents a cancelled network request. | ||
var isCancelled: Bool { | ||
self.domain == NSURLErrorDomain && self.code == NSURLErrorCancelled | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// AuthenticationServicePresentable.swift | ||
// Harmonie | ||
// | ||
// Created by makinosp on 2024/09/08. | ||
// | ||
|
||
import VRCKit | ||
|
||
protocol AuthenticationServicePresentable { | ||
var appVM: AppViewModel { get } | ||
} | ||
|
||
extension AuthenticationServicePresentable { | ||
@MainActor | ||
var authenticationService: AuthenticationServiceProtocol { | ||
appVM.isDemoMode | ||
? AuthenticationPreviewService(client: appVM.client) | ||
: AuthenticationService(client: appVM.client) | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// FavoriteServicePresentable.swift | ||
// Harmonie | ||
// | ||
// Created by makinosp on 2024/09/08. | ||
// | ||
|
||
import VRCKit | ||
|
||
protocol FavoriteServicePresentable { | ||
var appVM: AppViewModel { get } | ||
} | ||
|
||
extension FavoriteServicePresentable { | ||
@MainActor | ||
var favoriteService: FavoriteServiceProtocol { | ||
appVM.isDemoMode | ||
? FavoritePreviewService(client: appVM.client) | ||
: FavoriteService(client: appVM.client) | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// FriendServicePresentable.swift | ||
// Harmonie | ||
// | ||
// Created by makinosp on 2024/09/08. | ||
// | ||
|
||
import VRCKit | ||
|
||
protocol FriendServicePresentable { | ||
var appVM: AppViewModel { get } | ||
} | ||
|
||
extension FriendServicePresentable { | ||
@MainActor | ||
var friendService: FriendServiceProtocol { | ||
appVM.isDemoMode | ||
? FriendPreviewService(client: appVM.client) | ||
: FriendService(client: appVM.client) | ||
} | ||
} |
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
Oops, something went wrong.