Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Commit 55e6e86

Browse files
authored
Merge pull request #1997 from RocketChat/fix/share-extension-compile-error
[FIX] Share extension missing reference compile error
2 parents 841c168 + 1819cb3 commit 55e6e86

3 files changed

Lines changed: 32 additions & 17 deletions

File tree

Rocket.Chat.xcodeproj/project.pbxproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,6 @@
492492
807371A21F96968C00D53ADF /* LoginServiceModelMapping.swift in Sources */ = {isa = PBXBuildFile; fileRef = 807371A11F96968C00D53ADF /* LoginServiceModelMapping.swift */; };
493493
807371A61F96A4FF00D53ADF /* LoginServiceModelHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 807371A51F96A4FF00D53ADF /* LoginServiceModelHandler.swift */; };
494494
8076FD9A20484A6000114F28 /* SEStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8076FD9920484A6000114F28 /* SEStore.swift */; };
495-
8076FD9B20484DBF00114F28 /* DatabaseManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 412F8DD81F599EF100AF7786 /* DatabaseManager.swift */; };
496495
8076FD9D2048510100114F28 /* AuthSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41A87BAC1DA66E700000EE80 /* AuthSettings.swift */; };
497496
8076FD9E2048510C00114F28 /* AuthManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41552F651D30308C0081438D /* AuthManager.swift */; };
498497
8076FDA02048519D00114F28 /* AuthManagerSocket.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8076FD9F2048519D00114F28 /* AuthManagerSocket.swift */; };
@@ -714,6 +713,8 @@
714713
999483EB20644CC4004F61CA /* WebBrowserViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 999483EA20644CC4004F61CA /* WebBrowserViewModel.swift */; };
715714
999F25B5207EEB0C002E0F68 /* FileModelMapping.swift in Sources */ = {isa = PBXBuildFile; fileRef = 999F25B4207EEB0C002E0F68 /* FileModelMapping.swift */; };
716715
99B060CE1FB1225200F471C2 /* DraftMessageManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99B060CD1FB1225200F471C2 /* DraftMessageManager.swift */; };
716+
99B15BCD20FD4589005A528F /* DatabaseManagerAuthSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99B15BCC20FD4589005A528F /* DatabaseManagerAuthSettings.swift */; };
717+
99B15BCF20FD4681005A528F /* DatabaseManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 412F8DD81F599EF100AF7786 /* DatabaseManager.swift */; };
717718
99B802ED20BC3BD400230109 /* ImageManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99B802EC20BC3BD400230109 /* ImageManager.swift */; };
718719
99B802EE20BC3EF700230109 /* ImageManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99B802EC20BC3BD400230109 /* ImageManager.swift */; };
719720
99B802EF20BC3F0800230109 /* StringExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4174CB1E1D2DB3350086DAC8 /* StringExtensions.swift */; };
@@ -1517,6 +1518,7 @@
15171518
999483EA20644CC4004F61CA /* WebBrowserViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebBrowserViewModel.swift; sourceTree = "<group>"; };
15181519
999F25B4207EEB0C002E0F68 /* FileModelMapping.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileModelMapping.swift; sourceTree = "<group>"; };
15191520
99B060CD1FB1225200F471C2 /* DraftMessageManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DraftMessageManager.swift; sourceTree = "<group>"; };
1521+
99B15BCC20FD4589005A528F /* DatabaseManagerAuthSettings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DatabaseManagerAuthSettings.swift; sourceTree = "<group>"; };
15201522
99B802EC20BC3BD400230109 /* ImageManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImageManager.swift; sourceTree = "<group>"; };
15211523
99C577ED207E4F1500CE9B4D /* File.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = File.swift; sourceTree = "<group>"; };
15221524
99D77C6A20E474BF008F2438 /* AnalyticsManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnalyticsManager.swift; sourceTree = "<group>"; };
@@ -2195,6 +2197,7 @@
21952197
411EDECE1E30F2D700BC7BE3 /* Uploader */,
21962198
4101BF001F8D0A1700F67E89 /* AppManager.swift */,
21972199
412F8DD81F599EF100AF7786 /* DatabaseManager.swift */,
2200+
99B15BCC20FD4589005A528F /* DatabaseManagerAuthSettings.swift */,
21982201
419ECCA31F3CA21A005F224B /* DownloadManager.swift */,
21992202
99B060CD1FB1225200F471C2 /* DraftMessageManager.swift */,
22002203
4174CB1B1D2DB2080086DAC8 /* LogManager.swift */,
@@ -4174,6 +4177,7 @@
41744177
995F710E20C7837300B7535F /* AuthSeparatorTableViewCell.swift in Sources */,
41754178
41B554C51FBF0C71000510B7 /* UIWindowExtensions.swift in Sources */,
41764179
8062E33520A5ECF50044F407 /* APIRequestOption.swift in Sources */,
4180+
99B15BCD20FD4589005A528F /* DatabaseManagerAuthSettings.swift in Sources */,
41774181
807C7C0620751ED2006B600E /* SpotlightClient.swift in Sources */,
41784182
8039441120AF1334002F317A /* RoomKickRequest.swift in Sources */,
41794183
33383509207926DE006E1D0A /* TransparentToTouchesWindow.swift in Sources */,
@@ -4711,12 +4715,12 @@
47114715
4100B2842087779D00E2883A /* LogManager.swift in Sources */,
47124716
80D0CE62205023710056B17F /* SECell.swift in Sources */,
47134717
80FA90702056A33A0069038F /* SEComposeViewModel.swift in Sources */,
4714-
8076FD9B20484DBF00114F28 /* DatabaseManager.swift in Sources */,
47154718
80977AB2204EE21F00C41435 /* SendMessageRequest.swift in Sources */,
47164719
41D51B0720A62DD60073E8E7 /* Role.swift in Sources */,
47174720
80977AB6204EEF1E00C41435 /* SelectServer.swift in Sources */,
47184721
807FB55B2046E7DD00E21429 /* SERoomsViewController.swift in Sources */,
47194722
80977AC4204FEEA700C41435 /* SEComposeHeaderViewModel.swift in Sources */,
4723+
99B15BCF20FD4681005A528F /* DatabaseManager.swift in Sources */,
47204724
804273E2204EBD51006DF420 /* APIResponse.swift in Sources */,
47214725
8029B2F22059B6F60067157B /* VideoInfo.swift in Sources */,
47224726
80D0CE6620503C860056B17F /* SERoomCell.swift in Sources */,

Rocket.Chat/Managers/DatabaseManager.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -159,21 +159,6 @@ struct DatabaseManager {
159159
return index
160160
}
161161

162-
/**
163-
This method is responsible to get the server
164-
information that's stored locally on device and
165-
use it to change the database configuration being
166-
used by the currently instance.
167-
168-
- parameter index: If the index you want to use isn't stored
169-
into the UserDefaults.group, you can for the index
170-
using this parameter.
171-
*/
172-
static func changeDatabaseInstance(index: Int? = nil) {
173-
AuthSettingsManager.shared.clearCachedSettings()
174-
realmConfiguration = databaseConfiguration(index: index)
175-
}
176-
177162
/**
178163
This method gets the realm associated with this server
179164
*/
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//
2+
// DatabaseManagerServers.swift
3+
// Rocket.Chat
4+
//
5+
// Created by Filipe Alvarenga on 16/07/18.
6+
// Copyright © 2018 Rocket.Chat. All rights reserved.
7+
//
8+
9+
import Foundation
10+
11+
extension DatabaseManager {
12+
/**
13+
This method is responsible to get the server
14+
information that's stored locally on device and
15+
use it to change the database configuration being
16+
used by the currently instance.
17+
18+
- parameter index: If the index you want to use isn't stored
19+
into the UserDefaults.group, you can for the index
20+
using this parameter.
21+
*/
22+
static func changeDatabaseInstance(index: Int? = nil) {
23+
AuthSettingsManager.shared.clearCachedSettings()
24+
realmConfiguration = databaseConfiguration(index: index)
25+
}
26+
}

0 commit comments

Comments
 (0)