Skip to content

Commit 623141c

Browse files
authored
Merge pull request #149 from zapcannon87/IM
Release v16.0.0-beta.1
2 parents d4f7252 + 6f2abba commit 623141c

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

LeanCloud.podspec

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'LeanCloud'
3-
s.version = '15.0.0'
3+
s.version = '16.0.0-beta.1'
44
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' }
55
s.summary = 'LeanCloud Swift SDK'
66
s.homepage = 'https://leancloud.cn/'
@@ -35,4 +35,13 @@ Pod::Spec.new do |s|
3535
ss.source_files = 'Sources/Storage/**/*.swift'
3636
ss.resources = 'Sources/Storage/**/*.{xcdatamodeld}'
3737
end
38+
39+
s.subspec 'IM' do |ss|
40+
ss.dependency 'SwiftProtobuf', '~> 1.3.0'
41+
42+
ss.dependency 'LeanCloud/Storage'
43+
44+
ss.source_files = 'Sources/IM/**/*.swift'
45+
ss.resources = 'Sources/IM/**/*.{xcdatamodeld}'
46+
end
3847
end

Sources/Storage/DataType/Object.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,9 @@ open class LCObject: NSObject, LCValue, LCValueExtension, Sequence {
519519
Increase a number by amount.
520520

521521
- parameter key: The key of number which you want to increase.
522-
- parameter amount: The amount to increase.
522+
- parameter amount: The amount to increase. If no amount is specified, 1 is used by default.
523523
*/
524-
open func increase(_ key: String, by: LCNumberConvertible) throws {
524+
open func increase(_ key: String, by: LCNumberConvertible = 1) throws {
525525
try addOperation(.increment, key, by.lcNumber)
526526
}
527527

Sources/Storage/LeanCloud.swift

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

99
import Foundation
1010

11-
public let version = "15.0.0"
11+
public let version = "16.0.0-beta.1"
1212

1313
/// `version` is a common word, so use `lc_version` to wrap it to avoid conflict.
1414
var lc_version: String {

0 commit comments

Comments
 (0)