mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 10:02:46 +02:00
Remove all @available(iOS 14... annotations
This commit is contained in:
-4
@@ -23,7 +23,6 @@ enum SpaceSettingsModalCoordinatorAction {
|
||||
}
|
||||
|
||||
@objcMembers
|
||||
@available(iOS 14.0, *)
|
||||
final class SpaceSettingsModalCoordinator: Coordinator {
|
||||
|
||||
// MARK: - Properties
|
||||
@@ -80,7 +79,6 @@ final class SpaceSettingsModalCoordinator: Coordinator {
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
func pushScreen(with coordinator: Coordinator & Presentable) {
|
||||
add(childCoordinator: coordinator)
|
||||
|
||||
@@ -165,7 +163,6 @@ final class SpaceSettingsModalCoordinator: Coordinator {
|
||||
}
|
||||
|
||||
// MARK: - ExploreRoomCoordinatorDelegate
|
||||
@available(iOS 14.0, *)
|
||||
extension SpaceSettingsModalCoordinator: ExploreRoomCoordinatorDelegate {
|
||||
func exploreRoomCoordinatorDidComplete(_ coordinator: ExploreRoomCoordinatorType) {
|
||||
self.navigationRouter.dismissModule(animated: true, completion: {
|
||||
@@ -175,7 +172,6 @@ extension SpaceSettingsModalCoordinator: ExploreRoomCoordinatorDelegate {
|
||||
}
|
||||
|
||||
// MARK: - SpaceMembersCoordinatorDelegate
|
||||
@available(iOS 14.0, *)
|
||||
extension SpaceSettingsModalCoordinator: SpaceMembersCoordinatorDelegate {
|
||||
func spaceMembersCoordinatorDidCancel(_ coordinator: SpaceMembersCoordinatorType) {
|
||||
self.navigationRouter.dismissModule(animated: true, completion: {
|
||||
|
||||
-3
@@ -16,7 +16,6 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
@objc protocol SpaceSettingsModalCoordinatorBridgePresenterDelegate {
|
||||
func spaceSettingsModalCoordinatorBridgePresenterDelegateDidCancel(_ coordinatorBridgePresenter: SpaceSettingsModalCoordinatorBridgePresenter)
|
||||
func spaceSettingsModalCoordinatorBridgePresenterDelegateDidFinish(_ coordinatorBridgePresenter: SpaceSettingsModalCoordinatorBridgePresenter)
|
||||
@@ -27,7 +26,6 @@ import UIKit
|
||||
/// It breaks the Coordinator abstraction and it has been introduced for Objective-C compatibility (mainly for integration in legacy view controllers).
|
||||
/// Each bridge should be removed once the underlying Coordinator has been integrated by another Coordinator.
|
||||
@objcMembers
|
||||
@available(iOS 14.0, *)
|
||||
final class SpaceSettingsModalCoordinatorBridgePresenter: NSObject {
|
||||
|
||||
// MARK: - Properties
|
||||
@@ -92,7 +90,6 @@ final class SpaceSettingsModalCoordinatorBridgePresenter: NSObject {
|
||||
|
||||
// MARK: - UIAdaptivePresentationControllerDelegate
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
extension SpaceSettingsModalCoordinatorBridgePresenter: UIAdaptivePresentationControllerDelegate {
|
||||
|
||||
func roomNotificationSettingsCoordinatorDidComplete(_ presentationController: UIPresentationController) {
|
||||
|
||||
-1
@@ -45,7 +45,6 @@ final class SpaceSettingsCoordinator: Coordinator, Presentable {
|
||||
|
||||
// MARK: - Setup
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
init(parameters: SpaceSettingsCoordinatorParameters) {
|
||||
self.parameters = parameters
|
||||
let viewModel = SpaceSettingsViewModel.makeSpaceSettingsViewModel(service: SpaceSettingsService(session: parameters.session, spaceId: parameters.spaceId))
|
||||
|
||||
-1
@@ -19,7 +19,6 @@ import SwiftUI
|
||||
|
||||
/// Using an enum for the screen allows you define the different state cases with
|
||||
/// the relevant associated data for each case.
|
||||
@available(iOS 14.0, *)
|
||||
enum MockSpaceSettingsScreenState: MockScreenState, CaseIterable {
|
||||
// A case for each state you want to represent
|
||||
// with specific, minimal associated data that will allow you
|
||||
|
||||
-1
@@ -18,7 +18,6 @@ import Foundation
|
||||
import Combine
|
||||
import MatrixSDK
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class SpaceSettingsService: SpaceSettingsServiceProtocol {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
-1
@@ -17,7 +17,6 @@
|
||||
import Foundation
|
||||
import Combine
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class MockSpaceSettingsService: SpaceSettingsServiceProtocol {
|
||||
|
||||
var spaceId: String
|
||||
|
||||
-2
@@ -22,7 +22,6 @@ enum SpaceSettingsServiceCompletionResult {
|
||||
case failure(Error)
|
||||
}
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
protocol SpaceSettingsServiceProtocol: Avatarable {
|
||||
var spaceId: String { get }
|
||||
var roomProperties: SpaceSettingsRoomProperties? { get }
|
||||
@@ -39,7 +38,6 @@ protocol SpaceSettingsServiceProtocol: Avatarable {
|
||||
|
||||
// MARK: Avatarable
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
extension SpaceSettingsServiceProtocol {
|
||||
var mxContentUri: String? {
|
||||
roomProperties?.avatarUrl
|
||||
|
||||
@@ -17,11 +17,9 @@
|
||||
import SwiftUI
|
||||
import Combine
|
||||
|
||||
@available(iOS 14, *)
|
||||
typealias SpaceSettingsViewModelType = StateStoreViewModel<SpaceSettingsViewState,
|
||||
Never,
|
||||
SpaceSettingsViewAction>
|
||||
@available(iOS 14, *)
|
||||
class SpaceSettingsViewModel: SpaceSettingsViewModelType, SpaceSettingsViewModelProtocol {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
-2
@@ -19,9 +19,7 @@ import Foundation
|
||||
protocol SpaceSettingsViewModelProtocol {
|
||||
|
||||
var completion: ((SpaceSettingsViewModelResult) -> Void)? { get set }
|
||||
@available(iOS 14, *)
|
||||
static func makeSpaceSettingsViewModel(service: SpaceSettingsServiceProtocol) -> SpaceSettingsViewModelProtocol
|
||||
@available(iOS 14, *)
|
||||
var context: SpaceSettingsViewModelType.Context { get }
|
||||
func updateAvatarImage(with image: UIImage?)
|
||||
}
|
||||
|
||||
-1
@@ -17,7 +17,6 @@
|
||||
import XCTest
|
||||
import RiotSwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class SpaceSettingsUITests: MockScreenTest {
|
||||
// Tests to be implemented.
|
||||
}
|
||||
|
||||
-1
@@ -19,7 +19,6 @@ import Combine
|
||||
|
||||
@testable import RiotSwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class SpaceSettingsViewModelTests: XCTestCase {
|
||||
let creationParameters = SpaceCreationParameters()
|
||||
var service: MockSpaceSettingsService!
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct SpaceSettings: View {
|
||||
|
||||
// MARK: - Properties
|
||||
@@ -199,7 +198,6 @@ struct SpaceSettings: View {
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct SpaceSettings_Previews: PreviewProvider {
|
||||
static let stateRenderer = MockSpaceSettingsScreenState.stateRenderer
|
||||
static var previews: some View {
|
||||
|
||||
-2
@@ -16,7 +16,6 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct SpaceSettingsOptionListItem: View {
|
||||
|
||||
// MARK: Private
|
||||
@@ -85,7 +84,6 @@ struct SpaceSettingsOptionListItem: View {
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct SpaceSettingsOptionListItem_Previews: PreviewProvider {
|
||||
|
||||
static var previews: some View {
|
||||
|
||||
Reference in New Issue
Block a user