Skip to content

Commit

Permalink
Merge pull request #157 from JORDYMA-Link/FEATURE/#156
Browse files Browse the repository at this point in the history
[FEATURE] Swift6 마이그레이션
  • Loading branch information
kimkyuchul authored Dec 10, 2024
2 parents 0aaf61e + 091f7cc commit 3d20a34
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Projects/App/Sources/AppDelegateFeature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct AppDelegateFeature {
struct State: Equatable {
}

enum Action {
enum Action: Sendable {
case didFinishLaunching
case didRegisterForRemoteNotificationsWithDeviceToken(deviceToken: Data)

Expand Down Expand Up @@ -93,7 +93,7 @@ struct AppDelegateFeature {
case .setUserNotificationCenterDelegate:
return .run { send in
for await event in self.userNotificationClient.delegate() {
await send(.setUserNotifications(event))
await send(.setUserNotifications(event))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import UIKit
import UserNotifications
@preconcurrency import UserNotifications

import Dependencies

Expand All @@ -18,7 +18,7 @@ public struct UserNotificationClient {
public var registerForRemoteNotifications: @Sendable () async -> Void


public enum DelegateEvent {
public enum DelegateEvent: Sendable {
case didReceiveResponse(UNNotificationResponse, completionHandler: @Sendable () -> Void)
case willPresentNotification(UNNotification, completionHandler: @Sendable (UNNotificationPresentationOptions) -> Void)
}
Expand Down
13 changes: 8 additions & 5 deletions Tuist/ProjectDescriptionHelpers/Settings+Template.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public extension ProjectDescription.Settings {
"CODE_SIGN_STYLE": "Manual",
"DEBUG_INFORMATION_FORMAT": "dwarf-with-dsym",
"OTHER_LDFLAGS": "$(inherited) -ObjC",
"ENABLE_BITCODE": "NO"
"ENABLE_BITCODE": "NO",
"SWIFT_VERSION": .string("6.0")
],
configurations: [
.release(
Expand All @@ -39,10 +40,12 @@ public extension ProjectDescription.Settings {

static var projectSettings: Self {
return .settings(
base: ["OTHER_LDFLAGS": "$(inherited) -ObjC",
"DEBUG_INFORMATION_FORMAT": "dwarf-with-dsym",
"ENABLE_BITCODE": "NO"
],
base: [
"DEBUG_INFORMATION_FORMAT": "dwarf-with-dsym",
"OTHER_LDFLAGS": "$(inherited) -ObjC",
"ENABLE_BITCODE": "NO",
"SWIFT_VERSION": .string("6.0")
],
configurations: [
.release(
name: .release,
Expand Down

0 comments on commit 3d20a34

Please sign in to comment.