Skip to content

Commit d9d36ea

Browse files
authored
Merge pull request #41 from ppraveentr/_bugfix/Xcode12Update
Updated to fix Xcode12 warnings.
2 parents ad89ce2 + 656ede6 commit d9d36ea

File tree

11 files changed

+37
-43
lines changed

11 files changed

+37
-43
lines changed

CoreUI/Classes/CustomComponents/FTView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ open class FTView: UIView {
2828

2929
@IBOutlet
3030
public var mainPinnedView: UIView! {
31+
get {
32+
localMainPinnedView
33+
}
3134
set {
3235
localMainPinnedView = newValue
3336
self.restConstraints()
3437
}
35-
get {
36-
localMainPinnedView
37-
}
3838
}
3939

4040
@IBOutlet

CoreUI/Classes/FontPicker/FontPickerView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ open class FontPickerView: UIView {
101101
}
102102

103103
var selectedFont: String? {
104+
get {
105+
fontPickerModel.fontFamily
106+
}
104107
set {
105108
fontPickerModel.fontFamily = newValue
106109
pickerDelegate?.fontFamily(newValue)
107110
}
108-
get {
109-
fontPickerModel.fontFamily
110-
}
111111
}
112112

113113
// Avaialble Fonts

CoreUI/Classes/FontPicker/FontPickerViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ open class FontPickerViewController: UIViewController {
1919
}
2020

2121
open var fontPickerModel: FontPickerModel? {
22+
get {
23+
pickerView?.fontPickerModel
24+
}
2225
set {
2326
if let model = newValue {
2427
pickerView?.fontPickerModel = model
2528
}
2629
}
27-
get {
28-
pickerView?.fontPickerModel
29-
}
3030
}
3131

3232
override open func loadView() {

CoreUtility/Classes/Extensions/AttributedLabelProtocol.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ extension UILabel: AttributedLabelProtocol {
112112
}
113113

114114
public var htmlText: String {
115-
set {
116-
updateWithHtmlString(text: newValue)
117-
}
118115
get {
119116
""
120117
}
118+
set {
119+
updateWithHtmlString(text: newValue)
120+
}
121121
}
122122
}
123123

Example/MobileCoreExample.xcodeproj/project.pbxproj

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@
519519
Bundle,
520520
);
521521
LastSwiftUpdateCheck = 1030;
522-
LastUpgradeCheck = 1020;
522+
LastUpgradeCheck = 1220;
523523
ORGANIZATIONNAME = "Praveen Prabhakar";
524524
TargetAttributes = {
525525
D405058B24AC71E100B2E096 = {
@@ -860,7 +860,7 @@
860860
DEVELOPMENT_TEAM = W6W48SVQX7;
861861
GCC_C_LANGUAGE_STANDARD = gnu11;
862862
INFOPLIST_FILE = MobileCoreTests/Info.plist;
863-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
863+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
864864
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
865865
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
866866
MTL_FAST_MATH = YES;
@@ -887,7 +887,7 @@
887887
DEVELOPMENT_TEAM = W6W48SVQX7;
888888
GCC_C_LANGUAGE_STANDARD = gnu11;
889889
INFOPLIST_FILE = MobileCoreTests/Info.plist;
890-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
890+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
891891
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
892892
MTL_FAST_MATH = YES;
893893
OTHER_SWIFT_FLAGS = "$(inherited)";
@@ -925,6 +925,7 @@
925925
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
926926
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
927927
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
928+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
928929
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
929930
CLANG_WARN_STRICT_PROTOTYPES = YES;
930931
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -950,7 +951,7 @@
950951
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
951952
GCC_WARN_UNUSED_FUNCTION = YES;
952953
GCC_WARN_UNUSED_VARIABLE = YES;
953-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
954+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
954955
MTL_ENABLE_DEBUG_INFO = YES;
955956
ONLY_ACTIVE_ARCH = YES;
956957
OTHER_SWIFT_FLAGS = "-Onone";
@@ -989,6 +990,7 @@
989990
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
990991
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
991992
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
993+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
992994
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
993995
CLANG_WARN_STRICT_PROTOTYPES = YES;
994996
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -1008,7 +1010,7 @@
10081010
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
10091011
GCC_WARN_UNUSED_FUNCTION = YES;
10101012
GCC_WARN_UNUSED_VARIABLE = YES;
1011-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1013+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
10121014
MTL_ENABLE_DEBUG_INFO = NO;
10131015
OTHER_SWIFT_FLAGS = "";
10141016
SDKROOT = iphoneos;
@@ -1034,7 +1036,7 @@
10341036
DEVELOPMENT_TEAM = W6W48SVQX7;
10351037
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
10361038
INFOPLIST_FILE = "$(TARGET_NAME)/Info.plist";
1037-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1039+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
10381040
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
10391041
MARKETING_VERSION = 0.1.0;
10401042
OTHER_SWIFT_FLAGS = "$(inherited) -D COCOAPODS";
@@ -1063,7 +1065,7 @@
10631065
DEVELOPMENT_TEAM = W6W48SVQX7;
10641066
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
10651067
INFOPLIST_FILE = "$(TARGET_NAME)/Info.plist";
1066-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1068+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
10671069
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
10681070
MARKETING_VERSION = 0.1.0;
10691071
OTHER_SWIFT_FLAGS = "$(inherited) -D COCOAPODS";

Example/MobileCoreExample.xcodeproj/xcshareddata/xcschemes/MobileCoreExample.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1220"
44
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"

Example/MobileCoreExample.xcodeproj/xcshareddata/xcschemes/MobileCoreExampleBundle.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1220"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Example/MobileCoreExample.xcodeproj/xcshareddata/xcschemes/MobileCoreTests.xcscheme

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1130"
3+
LastUpgradeVersion = "1220"
44
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -15,15 +15,6 @@
1515
codeCoverageEnabled = "YES"
1616
onlyGenerateCoverageForSpecifiedTargets = "YES"
1717
localizableStringsDataGatheringEnabled = "YES">
18-
<MacroExpansion>
19-
<BuildableReference
20-
BuildableIdentifier = "primary"
21-
BlueprintIdentifier = "DE9221C81EF28CDF000C8FC7"
22-
BuildableName = "MobileCoreExample.app"
23-
BlueprintName = "MobileCoreExample"
24-
ReferencedContainer = "container:MobileCoreExample.xcodeproj">
25-
</BuildableReference>
26-
</MacroExpansion>
2718
<AdditionalOptions>
2819
<AdditionalOption
2920
key = "MallocStackLogging"

Example/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ end
88
target 'MobileCoreExample' do
99
common_pods
1010
pod 'SwiftLint'
11+
pod 'SwiftKeychainWrapper'
1112
end
1213

1314
target 'MobileCoreTests' do

NetworkLayer/Classes/Cache/UserCacheManager.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ public class UserCacheManager: UserCacheProtocol {
9393

9494
// MARK: Session Headers
9595
public static var httpAdditionalHeaders: [String: String]? {
96+
get {
97+
UserCacheManager.getCachedObject(forKey: "sessnion.httpAdditionalHeaders", cacheType: .application) as? [String: String]
98+
}
9699
set {
97100
let data = newValue
98101
UserCacheManager.setCacheObject(data as AnyObject, forKey: "sessnion.httpAdditionalHeaders", cacheType: .application)
99102
}
100-
get {
101-
UserCacheManager.getCachedObject(forKey: "sessnion.httpAdditionalHeaders", cacheType: .application) as? [String: String]
102-
}
103103
}
104104
}
105105

0 commit comments

Comments
 (0)