Skip to content

Commit 0a77313

Browse files
authored
Merge pull request #4217 from anyproto/ios-5072-enable-feature-toggles
IOS-5072 Enable feature toggles
2 parents c9e4af5 + ec3b3be commit 0a77313

File tree

6 files changed

+3
-37
lines changed

6 files changed

+3
-37
lines changed

Anytype/Sources/PresentationLayer/Common/UIKit/ImageViewer/ImageViewer/AnytypePreviewController.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import QuickLook
22
import Combine
33
import Services
4-
import AnytypeCore
54

65
@MainActor
76
final class AnytypePreviewController: QLPreviewController {
@@ -67,11 +66,6 @@ final class AnytypePreviewController: QLPreviewController {
6766
}
6867

6968
private func handleItemUpdate() {
70-
if FeatureFlags.doNotWaitCompletionInAnytypePreview {
71-
refreshCurrentPreviewItem()
72-
return
73-
}
74-
7569
if didFinishTransition {
7670
refreshCurrentPreviewItem()
7771
} else {

Anytype/Sources/PresentationLayer/ObjectCreationSettings/Views/Selection/Dataview/SetObjectCreationSettingsInteractor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ final class SetObjectCreationSettingsInteractor: SetObjectCreationSettingsIntera
156156
Task {
157157
let spaceUxType = spaceViewsStorage.spaceView(spaceId: setDocument.spaceId)?.uxType
158158
let chatTypeVisible = spaceUxType?.showsChatLayouts ?? true
159-
let includeChat = FeatureFlags.multichats && chatTypeVisible
159+
let includeChat = chatTypeVisible
160160
objectTypes = try await typesService.searchObjectTypes(
161161
text: "",
162162
includePins: true,

Anytype/Sources/PresentationLayer/ObjectTypeSearch/ObjectTypeSearchViewSettings.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import AnytypeCore
2-
31
struct ObjectTypeSearchViewSettings {
42
let showPins: Bool
53
let showLists: Bool
@@ -27,7 +25,7 @@ extension ObjectTypeSearchViewSettings {
2725
showPins: false,
2826
showLists: true,
2927
showFiles: true,
30-
showChat: FeatureFlags.multichats,
28+
showChat: true,
3129
showTemplates: true,
3230
incudeNotForCreation: true,
3331
allowPaste: false,

Modules/AnytypeCore/AnytypeCore/Generated/FeatureFlags+Flags.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ public extension FeatureFlags {
3434
value(for: .dndOnCollectionsAndSets)
3535
}
3636

37-
static var multichats: Bool {
38-
value(for: .multichats)
39-
}
40-
41-
static var doNotWaitCompletionInAnytypePreview: Bool {
42-
value(for: .doNotWaitCompletionInAnytypePreview)
43-
}
44-
4537
static var rainbowViews: Bool {
4638
value(for: .rainbowViews)
4739
}
@@ -111,8 +103,6 @@ public extension FeatureFlags {
111103
.setKanbanView,
112104
.fullInlineSetImpl,
113105
.dndOnCollectionsAndSets,
114-
.multichats,
115-
.doNotWaitCompletionInAnytypePreview,
116106
.rainbowViews,
117107
.showAlertOnAssert,
118108
.analytics,

Modules/AnytypeCore/AnytypeCore/Utils/FeatureFlags/FeatureDescription+Flags.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,6 @@ public extension FeatureDescription {
5151
defaultValue: false
5252
)
5353

54-
static let multichats = FeatureDescription(
55-
title: "Multichats",
56-
type: .feature(author: "m@anytype.io", releaseVersion: "?"),
57-
defaultValue: false,
58-
debugValue: true
59-
)
60-
61-
static let doNotWaitCompletionInAnytypePreview = FeatureDescription(
62-
title: "Do not wait completion in Anytype Preview",
63-
type: .feature(author: "joe_pusya@anytype.io", releaseVersion: "?"),
64-
defaultValue: false,
65-
debugValue: false
66-
)
67-
6854
// MARK: - Debug
6955

7056
static let rainbowViews = FeatureDescription(

Modules/Services/Sources/Models/Extensions/DetailsLayoutExtension.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import AnytypeCore
2-
31
public extension DetailsLayout {
42

53
static let editorLayouts: [DetailsLayout] = [ .note, .basic, .profile, .todo ]
@@ -22,7 +20,7 @@ public extension DetailsLayout {
2220
private static let supportedForCreationInSets: [DetailsLayout] = editorLayouts + [.bookmark] + listLayouts
2321
private static let layoutsWithIcon: [DetailsLayout] = listLayouts + fileAndMediaLayouts + [.basic, .profile, .objectType]
2422
private static let layoutsWithCover: [DetailsLayout] = layoutsWithIcon + [.bookmark, .todo]
25-
private static let chatLayouts: [DetailsLayout] = FeatureFlags.multichats ? [.chatDerived] : []
23+
private static let chatLayouts: [DetailsLayout] = [.chatDerived]
2624
}
2725

2826
// MARK: - Space-aware filtering

0 commit comments

Comments
 (0)