Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
211 changes: 76 additions & 135 deletions ElementX.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions ElementX/Sources/Application/AppCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,6 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
}
.store(in: &cancellables)

appSettings.$nextGenHTMLParserEnabled
.sink { value in
AttributedStringBuilder.useNextGenHTMLParser = value
}
.store(in: &cancellables)

elementCallService.actions
.receive(on: DispatchQueue.main)
.sink { [weak self] action in
Expand Down
6 changes: 1 addition & 5 deletions ElementX/Sources/Application/Settings/AppSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ final class AppSettings {
case knockingEnabled
case threadsEnabled
case developerOptionsEnabled
case nextGenHTMLParserEnabled
case linkPreviewsEnabled
case latestEventSorterEnabled

Expand Down Expand Up @@ -389,10 +388,7 @@ final class AppSettings {

@UserPreference(key: UserDefaultsKeys.threadsEnabled, defaultValue: false, storageType: .userDefaults(store))
var threadsEnabled

@UserPreference(key: UserDefaultsKeys.nextGenHTMLParserEnabled, defaultValue: true, storageType: .userDefaults(store))
var nextGenHTMLParserEnabled


@UserPreference(key: UserDefaultsKeys.linkPreviewsEnabled, defaultValue: false, storageType: .userDefaults(store))
var linkPreviewsEnabled

Expand Down
480 changes: 462 additions & 18 deletions ElementX/Sources/Other/HTMLParsing/AttributedStringBuilder.swift

Large diffs are not rendered by default.

399 changes: 0 additions & 399 deletions ElementX/Sources/Other/HTMLParsing/AttributedStringBuilderV1.swift

This file was deleted.

477 changes: 0 additions & 477 deletions ElementX/Sources/Other/HTMLParsing/AttributedStringBuilderV2.swift

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ protocol DeveloperOptionsProtocol: AnyObject {
var knockingEnabled: Bool { get set }
var latestEventSorterEnabled: Bool { get set }

var nextGenHTMLParserEnabled: Bool { get set }
var linkPreviewsEnabled: Bool { get set }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ struct DeveloperOptionsScreen: View {
}
}

Section("General") {
Toggle(isOn: $context.nextGenHTMLParserEnabled) {
Text("Next gen HTML parsing")
}
}

Section("Room List") {
Toggle(isOn: $context.publicSearchEnabled) {
Text("Public search")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,8 @@ struct FormattedBodyText: View {

struct FormattedBodyText_Previews: PreviewProvider, TestablePreview {
static var previews: some View {
body(AttributedStringBuilderV1(cacheKey: "v1", mentionBuilder: MentionBuilder()))
body(AttributedStringBuilder(cacheKey: "FormattedBodyText", mentionBuilder: MentionBuilder()))
.previewLayout(.sizeThatFits)
.previewDisplayName("v1")

body(AttributedStringBuilderV2(cacheKey: "v2", mentionBuilder: MentionBuilder()))
.previewLayout(.sizeThatFits)
.previewDisplayName("v2")
}

@ViewBuilder
Expand Down
1 change: 0 additions & 1 deletion ElementX/SupportingFiles/target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ targets:
- package: AnalyticsEvents
- package: Collections
- package: DeviceKit
- package: DTCoreText
- package: EmbeddedElementCall
- package: KeychainAccess
- package: Kingfisher
Expand Down
1 change: 0 additions & 1 deletion IntegrationTests/SupportingFiles/target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ targets:
- target: ElementX
- package: MatrixRustSDK
- package: DeviceKit
- package: DTCoreText
- package: KeychainAccess
- package: Kingfisher
- package: SwiftState
Expand Down
1 change: 0 additions & 1 deletion NSE/SupportingFiles/target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ targets:
- package: Collections
- package: Compound
- package: DeviceKit
- package: DTCoreText
- package: LRUCache
- package: Version
- package: SwiftSoup
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion UITests/SupportingFiles/target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ targets:
- package: MatrixRustSDK
- package: AnalyticsEvents
- package: DeviceKit
- package: DTCoreText
- package: KeychainAccess
- package: Kingfisher
- package: KZFileWatchers
Expand Down
Loading
Loading