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
// | |
// ContentView.swift | |
// GitStar | |
// | |
// Created by EbubekirSezer on 11.10.2022. | |
// | |
import SwiftUI | |
import Apollo |
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
// | |
// NetworkManager.swift | |
// GitStar | |
// | |
// Created by EbubekirSezer on 19.10.2022. | |
// | |
import Foundation | |
import Apollo |
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
// | |
// NetworkInterceptorProvider.swift | |
// GitStar | |
// | |
// Created by EbubekirSezer on 19.10.2022. | |
// | |
import Foundation | |
import Apollo |
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
// | |
// TokenInterceptor.swift | |
// GitStar | |
// | |
// Created by EbubekirSezer on 19.10.2022. | |
// | |
import Foundation | |
import Apollo |
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
import Foundation | |
import Apollo | |
protocol NetworkManagerProtocol { | |
var service: ApolloClient { get set } | |
func queryGraphQLRequest<T: GraphQLQuery, K: Codable>(query: T, responseModel: K.Type, completion: @escaping ((Result<K, Error>) -> Void)) | |
func performGraphQLRequest<T: GraphQLMutation, K: Codable>(mutation: T, responseModel: K.Type, completion: @escaping ((Result<K, Error>) -> Void)) | |
} |
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
# Type a script or drag a script file from your workspace to insert its path. | |
# Don't run this during index builds | |
if [ $ACTION = "indexbuild" ]; then exit 0; fi | |
# Go to the build root and search up the chain to find the Derived Data Path where the source packages are checked out. | |
DERIVED_DATA_CANDIDATE="${BUILD_ROOT}" | |
while ! [ -d "${DERIVED_DATA_CANDIDATE}/SourcePackages" ]; do | |
if [ "${DERIVED_DATA_CANDIDATE}" = / ]; then | |
echo >&2 "error: Unable to locate SourcePackages directory from BUILD_ROOT: '${BUILD_ROOT}'" |
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
// Created by Ebubekir Sezer on 25.12.2021. | |
import Foundation | |
extension Date { | |
public var today: Date? { return Calendar.current.date(from: todayComponents) } | |
public var yesterday: Date { return Date().dayBefore } | |
public var tomorrow: Date { return Date().dayAfter } | |
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
{ | |
"canOpen": true | |
} |
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
Hello World! |