Skip to content

Commit fc2d3fb

Browse files
committed
Merge branch 'make-custom-lists-available-in-release-mode-ios-591'
2 parents 12869ab + 0efe4a0 commit fc2d3fb

File tree

4 files changed

+1
-71
lines changed

4 files changed

+1
-71
lines changed

ios/MullvadVPN.xcodeproj/project.pbxproj

-4
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,6 @@
868868
F09D04BD2AEBB7C5003D4F89 /* OutgoingConnectionService.swift in Sources */ = {isa = PBXBuildFile; fileRef = F09D04BC2AEBB7C5003D4F89 /* OutgoingConnectionService.swift */; };
869869
F09D04C02AF39D63003D4F89 /* OutgoingConnectionServiceTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F09D04BF2AF39D63003D4F89 /* OutgoingConnectionServiceTests.swift */; };
870870
F09D04C12AF39EA2003D4F89 /* OutgoingConnectionService.swift in Sources */ = {isa = PBXBuildFile; fileRef = F09D04BC2AEBB7C5003D4F89 /* OutgoingConnectionService.swift */; };
871-
F0A92B3C2B8E44F900DC7B37 /* InMemoryCustomListRepository.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0A92B3B2B8E44F900DC7B37 /* InMemoryCustomListRepository.swift */; };
872871
F0B0E6972AFE6E7E001DC66B /* XCTest+Async.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0B0E6962AFE6E7E001DC66B /* XCTest+Async.swift */; };
873872
F0BE65372B9F136A005CC385 /* LocationSectionHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0BE65362B9F136A005CC385 /* LocationSectionHeaderView.swift */; };
874873
F0C2AEFD2A0BB5CC00986207 /* NotificationProviderIdentifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0C2AEFC2A0BB5CC00986207 /* NotificationProviderIdentifier.swift */; };
@@ -2020,7 +2019,6 @@
20202019
F09D04BA2AE95396003D4F89 /* URLSessionStub.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = URLSessionStub.swift; sourceTree = "<group>"; };
20212020
F09D04BC2AEBB7C5003D4F89 /* OutgoingConnectionService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OutgoingConnectionService.swift; sourceTree = "<group>"; };
20222021
F09D04BF2AF39D63003D4F89 /* OutgoingConnectionServiceTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OutgoingConnectionServiceTests.swift; sourceTree = "<group>"; };
2023-
F0A92B3B2B8E44F900DC7B37 /* InMemoryCustomListRepository.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = InMemoryCustomListRepository.swift; sourceTree = "<group>"; };
20242022
F0B0E6962AFE6E7E001DC66B /* XCTest+Async.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "XCTest+Async.swift"; sourceTree = "<group>"; };
20252023
F0BE65362B9F136A005CC385 /* LocationSectionHeaderView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LocationSectionHeaderView.swift; sourceTree = "<group>"; };
20262024
F0C2AEFC2A0BB5CC00986207 /* NotificationProviderIdentifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationProviderIdentifier.swift; sourceTree = "<group>"; };
@@ -2445,7 +2443,6 @@
24452443
F050AE5F2B73A41E003F4EDB /* AllLocationDataSource.swift */,
24462444
F04413602BA45CD70018A6EE /* CustomListLocationNodeBuilder.swift */,
24472445
F050AE612B74DBAC003F4EDB /* CustomListsDataSource.swift */,
2448-
F0A92B3B2B8E44F900DC7B37 /* InMemoryCustomListRepository.swift */,
24492446
5888AD82227B11080051EB06 /* LocationCell.swift */,
24502447
F050AE4D2B70D7F8003F4EDB /* LocationCellViewModel.swift */,
24512448
583DA21325FA4B5C00318683 /* LocationDataSource.swift */,
@@ -5198,7 +5195,6 @@
51985195
58C774BE29A7A249003A1A56 /* CustomNavigationController.swift in Sources */,
51995196
E1FD0DF528AA7CE400299DB4 /* StatusActivityView.swift in Sources */,
52005197
F0BE65372B9F136A005CC385 /* LocationSectionHeaderView.swift in Sources */,
5201-
F0A92B3C2B8E44F900DC7B37 /* InMemoryCustomListRepository.swift in Sources */,
52025198
7A2960FD2A964BB700389B82 /* AlertPresentation.swift in Sources */,
52035199
0697D6E728F01513007A9E99 /* TransportMonitor.swift in Sources */,
52045200
58968FAE28743E2000B799DC /* TunnelInteractor.swift in Sources */,

ios/MullvadVPN/View controllers/SelectLocation/InMemoryCustomListRepository.swift

-55
This file was deleted.

ios/MullvadVPN/View controllers/SelectLocation/LocationDataSource.swift

+1-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ final class LocationDataSource:
3535
let sections: [LocationSection] = LocationSection.allCases
3636
self.sections = sections
3737

38-
#if DEBUG
39-
self.dataSources.append(customLists)
40-
#endif
41-
self.dataSources.append(allLocations)
38+
self.dataSources.append(contentsOf: [customLists, allLocations])
4239

4340
super.init(tableView: tableView) { _, indexPath, itemIdentifier in
4441
let cell = tableView.dequeueReusableView(

ios/MullvadVPN/View controllers/SelectLocation/LocationSection.swift

-8
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,4 @@ enum LocationSection: String, Hashable, CustomStringConvertible, CaseIterable, C
3131
var cellClass: AnyClass {
3232
LocationCell.self
3333
}
34-
35-
static var allCases: [LocationSection] {
36-
#if DEBUG
37-
return [.customLists, .allLocations]
38-
#else
39-
return [.allLocations]
40-
#endif
41-
}
4234
}

0 commit comments

Comments
 (0)