Skip to content

Commit 326f9f4

Browse files
committed
chore: upgrade dependencies
1 parent e59a347 commit 326f9f4

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

LeanCloud.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ Pod::Spec.new do |s|
2222
end
2323

2424
s.subspec 'RTM' do |ss|
25-
ss.dependency 'SwiftProtobuf', '~> 1.15'
26-
ss.dependency 'GRDB.swift', '~> 4.14'
25+
ss.dependency 'SwiftProtobuf', '~> 1.17'
26+
ss.dependency 'GRDB.swift', '~> 5.8'
2727

2828
ss.dependency 'LeanCloud/Foundation', "#{s.version}"
2929

3030
ss.source_files = 'Sources/RTM/**/*.{swift}'
3131
end
3232

3333
s.subspec 'RTM-no-local-storage' do |ss|
34-
ss.dependency 'SwiftProtobuf', '~> 1.15'
34+
ss.dependency 'SwiftProtobuf', '~> 1.17'
3535

3636
ss.dependency 'LeanCloud/Foundation', "#{s.version}"
3737

LeanCloud.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,15 +1208,15 @@
12081208
repositoryURL = "https://github.com/apple/swift-protobuf";
12091209
requirement = {
12101210
kind = upToNextMajorVersion;
1211-
minimumVersion = 1.15.0;
1211+
minimumVersion = 1.17.0;
12121212
};
12131213
};
12141214
D303BD792328D062004AE13D /* XCRemoteSwiftPackageReference "GRDB" */ = {
12151215
isa = XCRemoteSwiftPackageReference;
12161216
repositoryURL = "https://github.com/groue/GRDB.swift";
12171217
requirement = {
12181218
kind = upToNextMajorVersion;
1219-
minimumVersion = 4.14.0;
1219+
minimumVersion = 5.8.0;
12201220
};
12211221
};
12221222
D35EB5BB2328A6E000763E4E /* XCRemoteSwiftPackageReference "Alamofire" */ = {

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ let package = Package(
1616
],
1717
dependencies: [
1818
.package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "5.4.0")),
19-
.package(url: "https://github.com/apple/swift-protobuf.git", .upToNextMajor(from: "1.15.0")),
20-
.package(url: "https://github.com/groue/GRDB.swift.git", .upToNextMajor(from: "4.14.0"))
19+
.package(url: "https://github.com/apple/swift-protobuf.git", .upToNextMajor(from: "1.17.0")),
20+
.package(url: "https://github.com/groue/GRDB.swift.git", .upToNextMajor(from: "5.8.0"))
2121
],
2222
targets: [
2323
.target(

Sources/RTM/IMLocalStorage.swift

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,15 @@ class IMLocalStorage {
204204
init(path: String, clientID: String) throws {
205205
var configuration = Configuration()
206206
configuration.label = "\(IMLocalStorage.self).dbQueue"
207-
configuration.trace = {
208-
Logger.shared.verbose("""
209-
\n------ LeanCloud SQL Executing
210-
\(IMClient.self)<ID: \"\(clientID)\">
211-
\($0)
212-
------ END
213-
""")
207+
configuration.prepareDatabase { db in
208+
db.trace(options: .statement) { event in
209+
Logger.shared.verbose("""
210+
\n------ LeanCloud SQL Executing
211+
\(IMClient.self)<ID: \"\(clientID)\">
212+
\(event)
213+
------ END
214+
""")
215+
}
214216
}
215217
try self.dbPool = DatabasePool(path: path, configuration: configuration)
216218
}

0 commit comments

Comments
 (0)