Skip to content

Commit d616fea

Browse files
authored
Merge pull request #242 from zapcannon87/master
release: 17.0.0
2 parents ca466af + eaa9313 commit d616fea

File tree

85 files changed

+3394
-3990
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+3394
-3990
lines changed

.gitignore

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
# Local Config
22
script_config.json
33

4+
# macOS
5+
*.DS_Store
6+
47
# Xcode
58
#
69
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
710

8-
## Build generated
9-
*.DS_Store
10-
build/
11-
DerivedData
11+
## User settings
12+
xcuserdata/
13+
14+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
15+
*.xcscmblueprint
16+
*.xccheckout
1217

13-
## Various settings
18+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
19+
build/
20+
DerivedData/
21+
*.moved-aside
1422
*.pbxuser
1523
!default.pbxuser
1624
*.mode1v3
@@ -19,17 +27,17 @@ DerivedData
1927
!default.mode2v3
2028
*.perspectivev3
2129
!default.perspectivev3
22-
xcuserdata
2330

2431
## Other
25-
*.xccheckout
26-
*.moved-aside
2732
*.xcuserstate
28-
*.xcscmblueprint
2933

3034
## Obj-C/Swift specific
3135
*.hmap
36+
37+
## App packaging
3238
*.ipa
39+
*.dSYM.zip
40+
*.dSYM
3341

3442
## Playgrounds
3543
timeline.xctimeline
@@ -39,6 +47,14 @@ playground.xcworkspace
3947
#
4048
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
4149
# Packages/
50+
# Package.pins
51+
# Package.resolved
52+
# *.xcodeproj
53+
#
54+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
55+
# hence it is not needed unless you have added a package configuration file to your project
56+
# .swiftpm
57+
4258
.build/
4359

4460
# CocoaPods
@@ -48,6 +64,9 @@ playground.xcworkspace
4864
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
4965
#
5066
# Pods/
67+
#
68+
# Add this line if you want to avoid checking in source code from the Xcode workspace
69+
# *.xcworkspace
5170

5271
# Carthage
5372
#
@@ -56,12 +75,25 @@ playground.xcworkspace
5675

5776
Carthage/Build
5877

78+
# Accio dependency management
79+
Dependencies/
80+
.accio/
81+
5982
# fastlane
6083
#
61-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
62-
# screenshots whenever they are needed.
84+
# It is recommended to not store the screenshots in the git repo.
85+
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
6386
# For more information about the recommended setup visit:
64-
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md
87+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
6588

6689
fastlane/report.xml
67-
fastlane/screenshots
90+
fastlane/Preview.html
91+
fastlane/screenshots/**/*.png
92+
fastlane/test_output
93+
94+
# Code Injection
95+
#
96+
# After new code Injection tools there's a generated folder /iOSInjectionProject
97+
# https://github.com/johnno1962/injectionforxcode
98+
99+
iOSInjectionProject/

.gitmodules

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +0,0 @@
1-
[submodule "Alamofire"]
2-
path = Alamofire
3-
url = https://github.com/Alamofire/Alamofire.git
4-
[submodule "SwiftProtobuf"]
5-
path = SwiftProtobuf
6-
url = https://github.com/apple/swift-protobuf.git
7-
[submodule "Starscream"]
8-
path = Starscream
9-
url = https://github.com/daltoniam/Starscream.git
10-
[submodule "fmdb"]
11-
path = fmdb
12-
url = https://github.com/ccgus/fmdb.git

Alamofire

Lines changed: 0 additions & 1 deletion
This file was deleted.

LeanCloud.podspec

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
Pod::Spec.new do |s|
22
s.name = 'LeanCloud'
3-
s.version = '16.5.1'
3+
s.version = '17.0.0'
44
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' }
55
s.summary = 'LeanCloud Swift SDK'
66
s.homepage = 'https://leancloud.cn/'
77
s.authors = 'LeanCloud'
88
s.source = { :git => 'https://github.com/leancloud/swift-sdk.git', :tag => s.version }
99
s.swift_version = '5.0'
1010

11-
s.ios.deployment_target = '8.0'
11+
s.ios.deployment_target = '10.0'
1212
s.osx.deployment_target = '10.12'
1313
s.tvos.deployment_target = '10.0'
1414
s.watchos.deployment_target = '3.0'
1515

16-
s.subspec 'Storage' do |ss|
17-
ss.dependency 'Alamofire', '~> 4.8.0'
16+
s.subspec 'Foundation' do |ss|
17+
ss.dependency 'Alamofire', '5.0.0-rc.2'
1818

19-
ss.source_files = 'Sources/Storage/**/*.{swift}'
19+
ss.source_files = 'Sources/Foundation/**/*.{swift}'
2020
end
2121

22-
s.subspec 'IM' do |ss|
23-
ss.dependency 'SwiftProtobuf', '~> 1.6.0'
24-
ss.dependency 'Starscream', '~> 3.1.0'
25-
ss.dependency 'FMDB', '~> 2.7.0'
22+
s.subspec 'RTM' do |ss|
23+
ss.dependency 'SwiftProtobuf', '~> 1.7.0'
24+
ss.dependency 'Starscream', '~> 3.1'
25+
ss.dependency 'GRDB.swift', '~> 4.4'
2626

27-
ss.dependency 'LeanCloud/Storage'
27+
ss.dependency 'LeanCloud/Foundation'
2828

29-
ss.source_files = 'Sources/IM/**/*.{swift}'
29+
ss.source_files = 'Sources/RTM/**/*.{swift}'
3030
end
3131
end

LeanCloud.xcodeproj/project.pbxproj

Lines changed: 168 additions & 557 deletions
Large diffs are not rendered by default.

LeanCloud.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LeanCloud.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

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

LeanCloud.xcodeproj/xcshareddata/xcschemes/LeanCloud.xcscheme

Lines changed: 15 additions & 15 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 = "1020"
3+
LastUpgradeVersion = "1100"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,20 +26,8 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
codeCoverageEnabled = "YES"
30-
shouldUseLaunchSchemeArgsEnv = "YES">
31-
<Testables>
32-
<TestableReference
33-
skipped = "NO">
34-
<BuildableReference
35-
BuildableIdentifier = "primary"
36-
BlueprintIdentifier = "8342FCC41C7B13A700C3CF15"
37-
BuildableName = "LeanCloudTests.xctest"
38-
BlueprintName = "LeanCloudTests"
39-
ReferencedContainer = "container:LeanCloud.xcodeproj">
40-
</BuildableReference>
41-
</TestableReference>
42-
</Testables>
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
codeCoverageEnabled = "YES">
4331
<MacroExpansion>
4432
<BuildableReference
4533
BuildableIdentifier = "primary"
@@ -56,6 +44,18 @@
5644
isEnabled = "YES">
5745
</AdditionalOption>
5846
</AdditionalOptions>
47+
<Testables>
48+
<TestableReference
49+
skipped = "NO">
50+
<BuildableReference
51+
BuildableIdentifier = "primary"
52+
BlueprintIdentifier = "8342FCC41C7B13A700C3CF15"
53+
BuildableName = "LeanCloudTests.xctest"
54+
BlueprintName = "LeanCloudTests"
55+
ReferencedContainer = "container:LeanCloud.xcodeproj">
56+
</BuildableReference>
57+
</TestableReference>
58+
</Testables>
5959
</TestAction>
6060
<LaunchAction
6161
buildConfiguration = "Debug"

LeanCloud.xcodeproj/xcshareddata/xcschemes/LeanCloudTests.xcscheme

Lines changed: 10 additions & 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 = "1020"
3+
LastUpgradeVersion = "1100"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,8 +26,15 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
codeCoverageEnabled = "YES"
30-
shouldUseLaunchSchemeArgsEnv = "YES">
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
codeCoverageEnabled = "YES">
31+
<AdditionalOptions>
32+
<AdditionalOption
33+
key = "NSZombieEnabled"
34+
value = "YES"
35+
isEnabled = "YES">
36+
</AdditionalOption>
37+
</AdditionalOptions>
3138
<Testables>
3239
<TestableReference
3340
skipped = "NO">
@@ -40,13 +47,6 @@
4047
</BuildableReference>
4148
</TestableReference>
4249
</Testables>
43-
<AdditionalOptions>
44-
<AdditionalOption
45-
key = "NSZombieEnabled"
46-
value = "YES"
47-
isEnabled = "YES">
48-
</AdditionalOption>
49-
</AdditionalOptions>
5050
</TestAction>
5151
<LaunchAction
5252
buildConfiguration = "Debug"

LeanCloud.xcodeproj/xcshareddata/xcschemes/RuntimeTests-iOS.xcscheme

Lines changed: 3 additions & 7 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 = "1020"
3+
LastUpgradeVersion = "1100"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -27,8 +27,6 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30-
<Testables>
31-
</Testables>
3230
<MacroExpansion>
3331
<BuildableReference
3432
BuildableIdentifier = "primary"
@@ -38,8 +36,8 @@
3836
ReferencedContainer = "container:LeanCloud.xcodeproj">
3937
</BuildableReference>
4038
</MacroExpansion>
41-
<AdditionalOptions>
42-
</AdditionalOptions>
39+
<Testables>
40+
</Testables>
4341
</TestAction>
4442
<LaunchAction
4543
buildConfiguration = "Debug"
@@ -61,8 +59,6 @@
6159
ReferencedContainer = "container:LeanCloud.xcodeproj">
6260
</BuildableReference>
6361
</BuildableProductRunnable>
64-
<AdditionalOptions>
65-
</AdditionalOptions>
6662
</LaunchAction>
6763
<ProfileAction
6864
buildConfiguration = "Release"

0 commit comments

Comments
 (0)