Skip to content

Commit

Permalink
FIx colon spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
levieggertcru committed Jul 15, 2024
1 parent f7352f4 commit e3a23f3
Show file tree
Hide file tree
Showing 23 changed files with 31 additions and 31 deletions.
6 changes: 3 additions & 3 deletions godtools/App/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ extension AppDelegate {
appDiContainer.dataLayer.getSharedAppsFlyer().registerUninstall(deviceToken: deviceToken)
}

func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any]) {
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) {

appDiContainer.dataLayer.getSharedAppsFlyer().handlePushNotification(userInfo: userInfo)
}

func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {

appDiContainer.dataLayer.getSharedAppsFlyer().handlePushNotification(userInfo: userInfo)
}
Expand Down Expand Up @@ -212,7 +212,7 @@ extension AppDelegate {

extension AppDelegate {

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {

appDiContainer.dataLayer.getSharedAppsFlyer().handleOpenUrl(url: url, options: options)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class GetDownloadToolProgressInterfaceStringsRepository: GetDownloadToolProgress
}

let interfaceStrings = DownloadToolProgressInterfaceStringsDomainModel(
downloadMessage: downloadMessage
downloadMessage: downloadMessage
)

return Just(interfaceStrings)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class GlobalActivityDataLayerDependencies {
private func getGlobalAnalyticsRepository() -> GlobalAnalyticsRepository {

return GlobalAnalyticsRepository(
api: MobileContentGlobalAnalyticsApi(
api: MobileContentGlobalAnalyticsApi(
baseUrl: coreDataLayer.getAppConfig().getMobileContentApiBaseUrl(),
ignoreCacheSession: coreDataLayer.getSharedIgnoreCacheSession()
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class GetLearnToShareToolTutorialItemsRepository: GetLearnToShareToolTutorialIte
),
LearnToShareToolItemDomainModel(
imageName: nil,
animationName: "training_tip_callout",
animationName: "training_tip_callout",
title: localizationServices.stringForLocaleElseEnglish(localeIdentifier: localeId, key: "learn_to_share_tool.tips_light_the_way.title"),
message: localizationServices.stringForLocaleElseEnglish(localeIdentifier: localeId, key: "learn_to_share_tool.tips_light_the_way.message")
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import Combine

class GetLessonEvaluatedUseCase {

private let getLessonEvaluatedRepositoryInterface: GetLessonEvaluatedRepositoryInterface
private let getLessonEvaluatedRepositoryInterface: GetLessonEvaluatedRepositoryInterface

init(getLessonEvaluatedRepositoryInterface: GetLessonEvaluatedRepositoryInterface) {
init(getLessonEvaluatedRepositoryInterface: GetLessonEvaluatedRepositoryInterface) {

self.getLessonEvaluatedRepositoryInterface = getLessonEvaluatedRepositoryInterface
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class TractRemoteSharePublisher: NSObject {
}
}

// MARK: Timeout Timer
// MARK: Timeout Timer

private func startTimeoutTimer() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class TractRemoteShareSubscriber: NSObject {
}
}

// MARK: Timeout Timer
// MARK: Timeout Timer

private func startTimeoutTimer() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class AppsFlyerAnalytics: NSObject {
}
}

func trackAction(actionName: String, data: [String : Any]?) {
func trackAction(actionName: String, data: [String: Any]?) {

serialQueue.async { [weak self] in

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class FirebaseAnalytics {
previousTrackedScreenName = screenName
}

func trackAction(screenName: String, siteSection: String, siteSubSection: String, contentLanguage: String?, secondaryContentLanguage: String?, actionName: String, data: [String : Any]?) {
func trackAction(screenName: String, siteSection: String, siteSubSection: String, contentLanguage: String?, secondaryContentLanguage: String?, actionName: String, data: [String: Any]?) {

internalTrackEvent(
screenName: screenName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extension MobileContentRendererUserAnalytics: MobileContentRendererAnalyticsSyst

private static let lessonCompletionsActionPrefix = "lesson_completions"

func trackMobileContentAction(screenName: String, siteSection: String, action: String, data: [String : Any]?) {
func trackMobileContentAction(screenName: String, siteSection: String, action: String, data: [String: Any]?) {

guard action.hasPrefix(MobileContentRendererUserAnalytics.lessonCompletionsActionPrefix) else {
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class MobileContentEmbeddedVideoViewModel: MobileContentViewModel {
return id
}

var youtubePlayerParameters: [String : Any] {
var youtubePlayerParameters: [String: Any] {

let playsInFullScreen = 0

Expand Down
6 changes: 3 additions & 3 deletions godtools/App/Share/Common/Json/JsonServices.swift
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ struct JsonServices: JsonServicesType {

// MARK: - Encoding

func encode<T>(object: T, options: JSONSerialization.ReadingOptions = []) -> [String : Any] where T : Encodable {
func encode<T>(object: T, options: JSONSerialization.ReadingOptions = []) -> [String: Any] where T : Encodable {

let result: Result<[String : Any], Error> = encode(object: object, options: options)
let result: Result<[String: Any], Error> = encode(object: object, options: options)

switch result {
case .success(let data):
Expand All @@ -263,7 +263,7 @@ struct JsonServices: JsonServicesType {
}
}

func encode<T>(object: T, options: JSONSerialization.ReadingOptions = []) -> Result<[String : Any], Error> where T : Encodable {
func encode<T>(object: T, options: JSONSerialization.ReadingOptions = []) -> Result<[String: Any], Error> where T : Encodable {

do {

Expand Down
4 changes: 2 additions & 2 deletions godtools/App/Share/Data/AppsFlyer/AppsFlyer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class AppsFlyer {
appsFlyerLib.useUninstallSandbox = configuration.shouldUseUninstallSandbox
}

func handleOpenUrl(url: URL, options: [UIApplication.OpenURLOptionsKey : Any]) {
func handleOpenUrl(url: URL, options: [UIApplication.OpenURLOptionsKey: Any]) {
appsFlyerLib.handleOpen(url, options: options)
}

Expand All @@ -59,7 +59,7 @@ class AppsFlyer {
appsFlyerLib.registerUninstall(deviceToken)
}

func handlePushNotification(userInfo: [AnyHashable : Any]) {
func handlePushNotification(userInfo: [AnyHashable: Any]) {
appsFlyerLib.handlePushNotification(userInfo)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AppsFlyerDeepLinkValueParser: DeepLinkAppsFlyerParserType {

}

func parse(data: [AnyHashable : Any]) -> ParsedDeepLinkType? {
func parse(data: [AnyHashable: Any]) -> ParsedDeepLinkType? {

guard let deepLinkValue = data["deep_link_value"] as? String else {
return nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ArticleAemPathDeepLinkParser: DeepLinkUrlParserType {

}

func parse(url: URL, pathComponents: [String], queryParameters: [String : Any]) -> ParsedDeepLinkType? {
func parse(url: URL, pathComponents: [String], queryParameters: [String: Any]) -> ParsedDeepLinkType? {

guard let aemUri = queryParameters["uri"] as? String else {
return nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class DashboardPathDeepLinkParser: DeepLinkUrlParserType {

}

func parse(url: URL, pathComponents: [String], queryParameters: [String : Any]) -> ParsedDeepLinkType? {
func parse(url: URL, pathComponents: [String], queryParameters: [String: Any]) -> ParsedDeepLinkType? {

guard let dashboardPathIndex = pathComponents.firstIndex(of: DashboardDeepLinkDashboardPath.dashboard.rawValue) else {
return nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class GodToolsAppLessonsPathDeepLinkParser: DeepLinkUrlParserType {

}

func parse(url: URL, pathComponents: [String], queryParameters: [String : Any]) -> ParsedDeepLinkType? {
func parse(url: URL, pathComponents: [String], queryParameters: [String: Any]) -> ParsedDeepLinkType? {

guard pathComponents.first == "lessons" else {
return nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class KnowGodDeepLinkParser: DeepLinkUrlParserType {

}

func parse(url: URL, pathComponents: [String], queryParameters: [String : Any]) -> ParsedDeepLinkType? {
func parse(url: URL, pathComponents: [String], queryParameters: [String: Any]) -> ParsedDeepLinkType? {

if pathComponents.first == "lessons" {

Expand All @@ -26,7 +26,7 @@ class KnowGodDeepLinkParser: DeepLinkUrlParserType {
}
}

private func parseLesson(url: URL, pathComponents: [String], queryParameters: [String : Any]) -> ParsedDeepLinkType? {
private func parseLesson(url: URL, pathComponents: [String], queryParameters: [String: Any]) -> ParsedDeepLinkType? {

guard let resourceAbbreviation = pathComponents[safe: 1] else {
return nil
Expand Down Expand Up @@ -54,7 +54,7 @@ class KnowGodDeepLinkParser: DeepLinkUrlParserType {
return .tool(toolDeepLink: toolDeepLink)
}

private func parseTract(url: URL, pathComponents: [String], queryParameters: [String : Any]) -> ParsedDeepLinkType? {
private func parseTract(url: URL, pathComponents: [String], queryParameters: [String: Any]) -> ParsedDeepLinkType? {

let knowGodQueryParameters: KnowGodTractDeepLinkQueryParameters? = JsonServices().decodeJsonObject(jsonObject: queryParameters)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LanguageSettingsDeepLinkParser: DeepLinkUrlParserType {

}

func parse(url: URL, pathComponents: [String], queryParameters: [String : Any]) -> ParsedDeepLinkType? {
func parse(url: URL, pathComponents: [String], queryParameters: [String: Any]) -> ParsedDeepLinkType? {

return .languageSettings
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LegacyAppsFlyerDeepLinkValueParser: DeepLinkAppsFlyerParserType {

}

func parse(data: [AnyHashable : Any]) -> ParsedDeepLinkType? {
func parse(data: [AnyHashable: Any]) -> ParsedDeepLinkType? {

let resourceAbbreviation: String?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ToolPathDeepLinkParser: DeepLinkUrlParserType {

}

func parse(url: URL, pathComponents: [String], queryParameters: [String : Any]) -> ParsedDeepLinkType? {
func parse(url: URL, pathComponents: [String], queryParameters: [String: Any]) -> ParsedDeepLinkType? {

guard let toolPathIndex = pathComponents.firstIndex(of: "tool") else {
return nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class UITestsDeepLinkParser: DeepLinkUrlParserType {

}

func parse(url: URL, pathComponents: [String], queryParameters: [String : Any]) -> ParsedDeepLinkType? {
func parse(url: URL, pathComponents: [String], queryParameters: [String: Any]) -> ParsedDeepLinkType? {

let appLanguage: AppLanguageDomainModel = (queryParameters["appLanguageCode"] as? String) ?? LanguageCodeDomainModel.english.value

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class RealmLanguagesCache {

func getLanguages(languageCodes: [String]) -> [LanguageModel] {

return languageCodes.compactMap({getLanguage(code:$0)})
return languageCodes.compactMap({getLanguage(code: $0)})
}

func getLanguages(realm: Realm? = nil) -> [LanguageModel] {
Expand Down

0 comments on commit e3a23f3

Please sign in to comment.