Skip to content

Commit d8c074b

Browse files
Merge pull request #1378 from QuickBlox/4.12.0-chat-swift-sample
4.12.0-chat-swift-sample
2 parents 16df732 + 3162419 commit d8c074b

File tree

3 files changed

+20
-22
lines changed

3 files changed

+20
-22
lines changed

sample-chat-swift/sample-chat-swift.xcodeproj/project.pbxproj

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

99
/* Begin PBXBuildFile section */
@@ -89,7 +89,6 @@
8989
2CE2560222078532005EC12F /* InfoTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2CE255FC22078532005EC12F /* InfoTableViewController.swift */; };
9090
2CE2560322078532005EC12F /* InfoModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2CE255FD22078532005EC12F /* InfoModel.swift */; };
9191
2CE2560422078532005EC12F /* InfoScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2CE255FE22078532005EC12F /* InfoScreen.storyboard */; };
92-
2CE6C35129A8E7B800F0F4B9 /* Quickblox in Frameworks */ = {isa = PBXBuildFile; productRef = 2CE6C35029A8E7B800F0F4B9 /* Quickblox */; };
9392
2CE733B228DC6840000138CF /* AuthModule.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2CE733B128DC6840000138CF /* AuthModule.swift */; };
9493
2CEBB41722454E3800A5E7BD /* Info.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2CEBB41622454E3800A5E7BD /* Info.xcassets */; };
9594
2CEFED5F21FDA35F0072B03E /* ImageView+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2CEFED5E21FDA35F0072B03E /* ImageView+Extension.swift */; };
@@ -99,6 +98,7 @@
9998
2CF35128233B6ABF004CE7AA /* AuthViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2CF35127233B6ABF004CE7AA /* AuthViewController.swift */; };
10099
2CF3512A233B7262004CE7AA /* CALayer+Blur.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2CF35129233B7262004CE7AA /* CALayer+Blur.swift */; };
101100
2CF7FD1527A2FC76005AC33C /* ConnectionModule.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2CF7FD1427A2FC76005AC33C /* ConnectionModule.swift */; };
101+
3A9354852D0AD7CC004A1F8E /* Quickblox in Frameworks */ = {isa = PBXBuildFile; productRef = 3A9354842D0AD7CC004A1F8E /* Quickblox */; };
102102
68440B6E4666D17B5141B787 /* ReplaceSegue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 684405C1BE6055BDCDBEF5C2 /* ReplaceSegue.swift */; };
103103
CE278FA621B84EC900A892D7 /* ChatDataSource.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE278FA521B84EC900A892D7 /* ChatDataSource.swift */; };
104104
CE2CE36D21AFE3E000CA7D78 /* String+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE2CE36C21AFE3E000CA7D78 /* String+Extension.swift */; };
@@ -277,7 +277,7 @@
277277
E06A6BEB1D1182AE00431316 /* CoreTelephony.framework in Frameworks */,
278278
14A4DCC61AC9A6030046D45C /* SystemConfiguration.framework in Frameworks */,
279279
2CC812D324BC78D70034B852 /* CoreServices.framework in Frameworks */,
280-
2CE6C35129A8E7B800F0F4B9 /* Quickblox in Frameworks */,
280+
3A9354852D0AD7CC004A1F8E /* Quickblox in Frameworks */,
281281
);
282282
runOnlyForDeploymentPostprocessing = 0;
283283
};
@@ -896,7 +896,7 @@
896896
);
897897
name = "sample-chat-swift";
898898
packageProductDependencies = (
899-
2CE6C35029A8E7B800F0F4B9 /* Quickblox */,
899+
3A9354842D0AD7CC004A1F8E /* Quickblox */,
900900
);
901901
productName = "sample-chat-swift";
902902
productReference = 1437A78C1AC9948600A39692 /* sample-chat-swift.app */;
@@ -939,7 +939,7 @@
939939
);
940940
mainGroup = 1437A7831AC9948600A39692;
941941
packageReferences = (
942-
2CE6C34F29A8E7B800F0F4B9 /* XCRemoteSwiftPackageReference "ios-quickblox-sdk" */,
942+
3A9354832D0AD7CC004A1F8E /* XCRemoteSwiftPackageReference "ios-quickblox-sdk" */,
943943
);
944944
productRefGroup = 1437A78D1AC9948600A39692 /* Products */;
945945
projectDirPath = "";
@@ -1257,7 +1257,7 @@
12571257
"$(inherited)",
12581258
"@executable_path/Frameworks",
12591259
);
1260-
MARKETING_VERSION = 4.11.0;
1260+
MARKETING_VERSION = 4.12.0;
12611261
OTHER_CODE_SIGN_FLAGS = "--deep";
12621262
OTHER_LDFLAGS = "$(inherited)";
12631263
PRODUCT_BUNDLE_IDENTIFIER = com.quickblox.chats;
@@ -1303,7 +1303,7 @@
13031303
"$(inherited)",
13041304
"@executable_path/Frameworks",
13051305
);
1306-
MARKETING_VERSION = 4.11.0;
1306+
MARKETING_VERSION = 4.12.0;
13071307
OTHER_CODE_SIGN_FLAGS = "--deep";
13081308
OTHER_LDFLAGS = "$(inherited)";
13091309
PRODUCT_BUNDLE_IDENTIFIER = com.quickblox.chats;
@@ -1401,7 +1401,7 @@
14011401
"$(inherited)",
14021402
"@executable_path/Frameworks",
14031403
);
1404-
MARKETING_VERSION = 4.11.0;
1404+
MARKETING_VERSION = 4.12.0;
14051405
OTHER_LDFLAGS = "$(inherited)";
14061406
PRODUCT_BUNDLE_IDENTIFIER = com.quickblox.chats;
14071407
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -1440,20 +1440,20 @@
14401440
/* End XCConfigurationList section */
14411441

14421442
/* Begin XCRemoteSwiftPackageReference section */
1443-
2CE6C34F29A8E7B800F0F4B9 /* XCRemoteSwiftPackageReference "ios-quickblox-sdk" */ = {
1443+
3A9354832D0AD7CC004A1F8E /* XCRemoteSwiftPackageReference "ios-quickblox-sdk" */ = {
14441444
isa = XCRemoteSwiftPackageReference;
1445-
repositoryURL = "https://github.com/QuickBlox/ios-quickblox-sdk.git";
1445+
repositoryURL = "https://github.com/QuickBlox/ios-quickblox-sdk";
14461446
requirement = {
1447-
branch = master;
1448-
kind = branch;
1447+
kind = upToNextMajorVersion;
1448+
minimumVersion = 2.21.0;
14491449
};
14501450
};
14511451
/* End XCRemoteSwiftPackageReference section */
14521452

14531453
/* Begin XCSwiftPackageProductDependency section */
1454-
2CE6C35029A8E7B800F0F4B9 /* Quickblox */ = {
1454+
3A9354842D0AD7CC004A1F8E /* Quickblox */ = {
14551455
isa = XCSwiftPackageProductDependency;
1456-
package = 2CE6C34F29A8E7B800F0F4B9 /* XCRemoteSwiftPackageReference "ios-quickblox-sdk" */;
1456+
package = 3A9354832D0AD7CC004A1F8E /* XCRemoteSwiftPackageReference "ios-quickblox-sdk" */;
14571457
productName = Quickblox;
14581458
};
14591459
/* End XCSwiftPackageProductDependency section */

sample-chat-swift/sample-chat-swift.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sample-chat-swift/sample-chat-swift/Components/ChatScreen/ChatViewController.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,17 +1178,14 @@ extension ChatViewController: ChatCollectionViewDataSource {
11781178

11791179
func collectionView(_ collectionView: UICollectionView,
11801180
cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
1181-
1182-
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: String(describing:ChatIncomingCell.self),
1183-
for: indexPath)
11841181
guard let message = dataSource.messageWithIndexPath(indexPath) else {
1185-
return cell
1182+
return UICollectionViewCell()
11861183
}
11871184

11881185
let cellClass = viewClass(forItem: message)
11891186

11901187
guard let identifier = cellClass.cellReuseIdentifier() else {
1191-
return cell
1188+
return UICollectionViewCell()
11921189
}
11931190

11941191
guard let chatCell = collectionView.dequeueReusableCell(withReuseIdentifier: identifier,

0 commit comments

Comments
 (0)