Skip to content

Commit 1b4f854

Browse files
committed
Fix protocols.
1 parent e825bd0 commit 1b4f854

File tree

6 files changed

+20
-34
lines changed

6 files changed

+20
-34
lines changed

SPDiffable.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'SPDiffable'
4-
s.version = '1.1.9'
4+
s.version = '1.2'
55
s.summary = 'Extenshion of Diffable API which allow not duplicate code and use less models.'
66
s.homepage = 'https://github.com/ivanvorobei/SPDiffable'
77
s.source = { :git => 'https://github.com/ivanvorobei/SPDiffable.git', :tag => s.version }

SPDiffable.xcodeproj/project.pbxproj

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 52;
6+
objectVersion = 46;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -19,11 +19,11 @@
1919
F4920A6C24F44834007F7EE9 /* SPDiffableCollectionCellProviders.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4920A6B24F44834007F7EE9 /* SPDiffableCollectionCellProviders.swift */; };
2020
F4AB9BE326315F4400EC27A5 /* SPDiffableCollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4AB9BE226315F4400EC27A5 /* SPDiffableCollectionView.swift */; };
2121
F4AB9BE9263161DA00EC27A5 /* SPDiffableSideBarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4AB9BE8263161DA00EC27A5 /* SPDiffableSideBarController.swift */; };
22+
F4CEDF4126393423008BF79D /* SPDiffable.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = "SPDiffable::SPDiffable::Product" /* SPDiffable.framework */; };
23+
F4CEDF4226393423008BF79D /* SPDiffable.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = "SPDiffable::SPDiffable::Product" /* SPDiffable.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
2224
F4D77FAC260B2FFC004660B8 /* SPDiffableCollectionActionableItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4D77FAB260B2FFC004660B8 /* SPDiffableCollectionActionableItem.swift */; };
2325
F4FBB993260912A50036E67D /* SPDiffableCollectionDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FBB98726090FFE0036E67D /* SPDiffableCollectionDelegate.swift */; };
2426
F4FBB995260912A70036E67D /* SPDiffableTableDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FBB98B260910D40036E67D /* SPDiffableTableDelegate.swift */; };
25-
F4FBB99C260912E20036E67D /* SPDiffable.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = "SPDiffable::SPDiffable::Product" /* SPDiffable.framework */; platformFilter = ios; };
26-
F4FBB99D260912E20036E67D /* SPDiffable.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = "SPDiffable::SPDiffable::Product" /* SPDiffable.framework */; platformFilter = ios; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
2727
OBJ_53 /* SPDiffableCollectionController.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJ_10 /* SPDiffableCollectionController.swift */; };
2828
OBJ_54 /* SPDiffableCollectionDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJ_11 /* SPDiffableCollectionDataSource.swift */; };
2929
OBJ_55 /* SPDiffableSideBarButtonCollectionViewListCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = OBJ_12 /* SPDiffableSideBarButtonCollectionViewListCell.swift */; };
@@ -49,7 +49,7 @@
4949
/* End PBXBuildFile section */
5050

5151
/* Begin PBXContainerItemProxy section */
52-
F4FBB99E260912E20036E67D /* PBXContainerItemProxy */ = {
52+
F4CEDF4326393423008BF79D /* PBXContainerItemProxy */ = {
5353
isa = PBXContainerItemProxy;
5454
containerPortal = OBJ_1 /* Project object */;
5555
proxyType = 1;
@@ -59,13 +59,13 @@
5959
/* End PBXContainerItemProxy section */
6060

6161
/* Begin PBXCopyFilesBuildPhase section */
62-
F4977A3B252DE21000B20771 /* Embed Frameworks */ = {
62+
F4CEDF4526393423008BF79D /* Embed Frameworks */ = {
6363
isa = PBXCopyFilesBuildPhase;
6464
buildActionMask = 2147483647;
6565
dstPath = "";
6666
dstSubfolderSpec = 10;
6767
files = (
68-
F4FBB99D260912E20036E67D /* SPDiffable.framework in Embed Frameworks */,
68+
F4CEDF4226393423008BF79D /* SPDiffable.framework in Embed Frameworks */,
6969
);
7070
name = "Embed Frameworks";
7171
runOnlyForDeploymentPostprocessing = 0;
@@ -129,7 +129,7 @@
129129
isa = PBXFrameworksBuildPhase;
130130
buildActionMask = 2147483647;
131131
files = (
132-
F4FBB99C260912E20036E67D /* SPDiffable.framework in Frameworks */,
132+
F4CEDF4126393423008BF79D /* SPDiffable.framework in Frameworks */,
133133
);
134134
runOnlyForDeploymentPostprocessing = 0;
135135
};
@@ -345,12 +345,12 @@
345345
F47A41CA24EB222C0054DBB2 /* Sources */,
346346
F47A41CB24EB222C0054DBB2 /* Frameworks */,
347347
F47A41CC24EB222C0054DBB2 /* Resources */,
348-
F4977A3B252DE21000B20771 /* Embed Frameworks */,
348+
F4CEDF4526393423008BF79D /* Embed Frameworks */,
349349
);
350350
buildRules = (
351351
);
352352
dependencies = (
353-
F4FBB99F260912E20036E67D /* PBXTargetDependency */,
353+
F4CEDF4426393423008BF79D /* PBXTargetDependency */,
354354
);
355355
name = "Example iOS";
356356
productName = Example;
@@ -474,11 +474,10 @@
474474
/* End PBXSourcesBuildPhase section */
475475

476476
/* Begin PBXTargetDependency section */
477-
F4FBB99F260912E20036E67D /* PBXTargetDependency */ = {
477+
F4CEDF4426393423008BF79D /* PBXTargetDependency */ = {
478478
isa = PBXTargetDependency;
479-
platformFilter = ios;
480479
target = "SPDiffable::SPDiffable" /* SPDiffable iOS */;
481-
targetProxy = F4FBB99E260912E20036E67D /* PBXContainerItemProxy */;
480+
targetProxy = F4CEDF4326393423008BF79D /* PBXContainerItemProxy */;
482481
};
483482
/* End PBXTargetDependency section */
484483

@@ -548,10 +547,7 @@
548547
GCC_WARN_UNUSED_VARIABLE = YES;
549548
INFOPLIST_FILE = "Example iOS/Info.plist";
550549
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
551-
LD_RUNPATH_SEARCH_PATHS = (
552-
"$(inherited)",
553-
"@executable_path/Frameworks",
554-
);
550+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
555551
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
556552
MTL_FAST_MATH = YES;
557553
PRODUCT_BUNDLE_IDENTIFIER = by.ivanvorobei.SPDiffable;
@@ -614,10 +610,7 @@
614610
GCC_WARN_UNUSED_VARIABLE = YES;
615611
INFOPLIST_FILE = "Example iOS/Info.plist";
616612
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
617-
LD_RUNPATH_SEARCH_PATHS = (
618-
"$(inherited)",
619-
"@executable_path/Frameworks",
620-
);
613+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
621614
MTL_ENABLE_DEBUG_INFO = NO;
622615
MTL_FAST_MATH = YES;
623616
PRODUCT_BUNDLE_IDENTIFIER = by.ivanvorobei.SPDiffable;
@@ -729,8 +722,7 @@
729722
SDKROOT = macosx;
730723
SUPPORTED_PLATFORMS = "macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator";
731724
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) SWIFT_PACKAGE";
732-
SWIFT_COMPILATION_MODE = wholemodule;
733-
SWIFT_OPTIMIZATION_LEVEL = "-O";
725+
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
734726
USE_HEADERMAP = NO;
735727
};
736728
name = Release;
@@ -747,10 +739,7 @@
747739
HEADER_SEARCH_PATHS = "$(inherited)";
748740
INFOPLIST_FILE = SPDiffable.xcodeproj/SPDiffable_Info.plist;
749741
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
750-
LD_RUNPATH_SEARCH_PATHS = (
751-
"$(inherited)",
752-
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
753-
);
742+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) $(TOOLCHAIN_DIR)/usr/lib/swift/macosx";
754743
MACOSX_DEPLOYMENT_TARGET = 10.10;
755744
OTHER_CFLAGS = "$(inherited)";
756745
OTHER_LDFLAGS = "$(inherited)";
@@ -782,10 +771,7 @@
782771
HEADER_SEARCH_PATHS = "$(inherited)";
783772
INFOPLIST_FILE = SPDiffable.xcodeproj/SPDiffable_Info.plist;
784773
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
785-
LD_RUNPATH_SEARCH_PATHS = (
786-
"$(inherited)",
787-
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
788-
);
774+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) $(TOOLCHAIN_DIR)/usr/lib/swift/macosx";
789775
MACOSX_DEPLOYMENT_TARGET = 10.10;
790776
OTHER_CFLAGS = "$(inherited)";
791777
OTHER_LDFLAGS = "$(inherited)";

Sources/SPDiffable/DataSource/SPDiffableTableMediator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import UIKit
2727
This methods not always implemented in data source and split to other protocol.
2828
*/
2929
@available(iOS 13.0, *)
30-
@objc public protocol SPDiffableTableMediator: class {
30+
@objc public protocol SPDiffableTableMediator: AnyObject {
3131

3232
@objc optional func diffableTableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String?
3333

Sources/SPDiffable/Delegate/SPDiffableCollectionDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import UIKit
2525
SPDiffable: Protocol with collection events.
2626
*/
2727
@available(iOS 13.0, *)
28-
@objc public protocol SPDiffableCollectionDelegate: class {
28+
@objc public protocol SPDiffableCollectionDelegate: AnyObject {
2929

3030
@objc optional func diffableCollectionView(_ collectionView: UICollectionView, didSelectItem item: SPDiffableItem)
3131
}

Sources/SPDiffable/Delegate/SPDiffableTableDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import UIKit
2525
SPDiffable: Protocol with table events.
2626
*/
2727
@available(iOS 13.0, *)
28-
@objc public protocol SPDiffableTableDelegate: class {
28+
@objc public protocol SPDiffableTableDelegate: AnyObject {
2929

3030
@objc optional func diffableTableView(_ tableView: UITableView, didSelectItem item: SPDiffableItem)
3131
}

0 commit comments

Comments
 (0)