Skip to content

Commit 3edffd1

Browse files
committed
Merge branch 'main' into removingFastlane
2 parents 10a23d0 + d60993a commit 3edffd1

File tree

64 files changed

+1532
-840
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1532
-840
lines changed

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# These owners will be the default owners for everything in
22
# the repo. Unless a later match takes precedence
33

4-
* @pMalvasio @glm4 @CamilaMoscatelli @mato2593 @germanStabile @kstoletniy @fpiruzi @LetoFranco @LeandroHiga @FLTravieso @danialepaco @agerace @camipera-rootstrap
4+
* @pMalvasio @glm4 @CamilaMoscatelli @mato2593 @germanStabile @kstoletniy @fpiruzi @LetoFranco @LeandroHiga @danialepaco @fconelli @fnicola1 @DaegoDev @JUNIOR140889 @SofiaCantero24

Podfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
platform :ios, '11.4'
1+
platform :ios, '14.0'
22
use_frameworks!
33
inhibit_all_warnings!
44

55
target 'ios-base' do
66
pod 'Alamofire', '~> 5.2.0'
77
pod 'IQKeyboardManagerSwift', '~> 6.1.1'
8-
pod 'RSFontSizes', '~> 1.0.2'
8+
pod 'RSFontSizes', '~> 1.2.0'
99
pod 'R.swift', '~> 5.0.3'
1010
pod 'SwiftLint', '~> 0.43.1'
1111
pod 'Firebase/CoreOnly', '~> 8.6.0'
@@ -25,6 +25,6 @@ target 'ios-base' do
2525

2626
target 'ios-baseUITests' do
2727
inherit! :complete
28-
pod 'Swifter', '~> 1.4.7'
28+
pod 'Swifter', '~> 1.5.0'
2929
end
3030
end

Podfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ PODS:
104104
- R.swift (5.0.3):
105105
- R.swift.Library (~> 5.0.0)
106106
- R.swift.Library (5.0.1)
107-
- RSFontSizes (1.0.2):
107+
- RSFontSizes (1.2.0):
108108
- Device (~> 3.1.2)
109-
- Swifter (1.4.7)
109+
- Swifter (1.5.0)
110110
- SwiftLint (0.43.1)
111111

112112
DEPENDENCIES:
@@ -118,8 +118,8 @@ DEPENDENCIES:
118118
- Firebase/Crashlytics (~> 8.6.0)
119119
- IQKeyboardManagerSwift (~> 6.1.1)
120120
- R.swift (~> 5.0.3)
121-
- RSFontSizes (~> 1.0.2)
122-
- Swifter (~> 1.4.7)
121+
- RSFontSizes (~> 1.2.0)
122+
- Swifter (~> 1.5.0)
123123
- SwiftLint (~> 0.43.1)
124124

125125
SPEC REPOS:
@@ -165,10 +165,10 @@ SPEC CHECKSUMS:
165165
PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58
166166
R.swift: f5a87643b91ea569d23d6afb3eee9c743edde239
167167
R.swift.Library: cfe85d569d9bae6cb262922db130e7c3a7a5fad1
168-
RSFontSizes: cf14ae41c2807b66573f7064528ccff8c98251c9
169-
Swifter: 2327ef5d872c638aebab79646ce494af508b0c8f
168+
RSFontSizes: 78158061f9f6121c6715f746395b1d8390fcb18b
169+
Swifter: e71dd674404923d7f03ebb03f3f222d1c570bc8e
170170
SwiftLint: 99f82d07b837b942dd563c668de129a03fc3fb52
171171

172-
PODFILE CHECKSUM: 9bf8204f31e4c13e914fa6af761a3874db46b336
172+
PODFILE CHECKSUM: ad8b2fa0cef07782327d22c0570f1659eddad970
173173

174-
COCOAPODS: 1.10.2
174+
COCOAPODS: 1.11.2

ios-base.xcodeproj/project.pbxproj

Lines changed: 231 additions & 120 deletions
Large diffs are not rendered by default.

ios-base/AppDelegate.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,18 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
4747
_ application: UIApplication, open url: URL,
4848
sourceApplication: String?, annotation: Any
4949
) -> Bool {
50-
return ApplicationDelegate.shared.application(application, open: url,
51-
sourceApplication: sourceApplication,
52-
annotation: annotation)
50+
ApplicationDelegate.shared.application(
51+
application, open: url,
52+
sourceApplication: sourceApplication,
53+
annotation: annotation
54+
)
5355
}
5456

5557
func unexpectedLogout() {
5658
UserDataManager.deleteUser()
5759
SessionManager.deleteSession()
58-
//Clear any local data if needed
59-
//Take user to onboarding if needed, do NOT redirect the user
60+
// Clear any local data if needed
61+
// Take user to onboarding if needed, do NOT redirect the user
6062
// if is already in the landing to avoid losing the current VC stack state.
6163
if window?.rootViewController is HomeViewController {
6264
AppNavigator.shared.navigate(to: OnboardingRoutes.firstScreen, with: .changeRoot)

ios-base/Base.lproj/Main.storyboard

Lines changed: 0 additions & 300 deletions
This file was deleted.

ios-base/Common/Models/AuthViewModelStateDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import Foundation
1010
import UIKit
1111

12-
protocol NetworkStatusDelegate: class {
12+
protocol NetworkStatusDelegate: AnyObject {
1313
func networkStatusChanged(to networkStatus: NetworkState)
1414
}
1515

ios-base/Common/Models/Session.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ struct Session: Codable {
3737
guard let stringHeaders = loweredHeaders as? [String: String] else {
3838
return nil
3939
}
40-
if let expiryString = stringHeaders[APIClient.HTTPHeader.expiry.rawValue],
40+
if let expiryString = stringHeaders[HTTPHeader.expiry.rawValue],
4141
let expiryNumber = Double(expiryString) {
4242
expiry = Date(timeIntervalSince1970: expiryNumber)
4343
}
44-
uid = stringHeaders[APIClient.HTTPHeader.uid.rawValue]
45-
client = stringHeaders[APIClient.HTTPHeader.client.rawValue]
46-
accessToken = stringHeaders[APIClient.HTTPHeader.token.rawValue]
44+
uid = stringHeaders[HTTPHeader.uid.rawValue]
45+
client = stringHeaders[HTTPHeader.client.rawValue]
46+
accessToken = stringHeaders[HTTPHeader.token.rawValue]
4747
}
4848
}

ios-base/Common/Models/User.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,4 @@ struct User: Codable {
2020
case email
2121
case image = "profile_picture"
2222
}
23-
24-
init?(dictionary: [String: Any]) {
25-
guard
26-
let id = dictionary[CodingKeys.id.rawValue] as? Int,
27-
let username = dictionary[CodingKeys.username.rawValue] as? String,
28-
let email = dictionary[CodingKeys.email.rawValue] as? String
29-
else {
30-
return nil
31-
}
32-
33-
self.id = id
34-
self.username = username
35-
self.email = email
36-
self.image = URL(string: dictionary[CodingKeys.image.rawValue] as? String ?? "")
37-
}
3823
}

ios-base/Common/Protocols/ActivityIndicatorPresenter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
protocol ActivityIndicatorPresenter: class {
11+
protocol ActivityIndicatorPresenter: AnyObject {
1212
var activityIndicator: UIActivityIndicatorView { get }
1313
func showActivityIndicator(_ show: Bool)
1414
}

0 commit comments

Comments
 (0)