Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
82be870
test: tweak code
zapcannon87 Sep 3, 2019
763a950
test: update case
zapcannon87 Sep 4, 2019
e3630da
refactor: add some extension functions
zapcannon87 Sep 7, 2019
23d2972
feat!: depend on GRDB & not support iOS 8 any more
zapcannon87 Sep 7, 2019
ae96d9c
refactor: GRDB replace FMDB
zapcannon87 Sep 7, 2019
0e0d6dd
test: update case
zapcannon87 Sep 7, 2019
7fc7a3d
chore: git submodule add GRDB
zapcannon87 Sep 7, 2019
9153dc8
refactor: remove FMDB
zapcannon87 Sep 9, 2019
8e22b95
chore: upgrade GRDB to 4.4.0
zapcannon87 Sep 9, 2019
2ed8ff2
chore: bump version to 17.0.0
zapcannon87 Sep 9, 2019
1495980
refactor: clear compiler warning
zapcannon87 Sep 10, 2019
55d2172
feat!: upgrade Alamofire to 5.0.0 & not support iOS 8, 9 any more
zapcannon87 Sep 11, 2019
22559be
test: update case
zapcannon87 Sep 11, 2019
91d9a63
chore: checkout Alamofire to 5.0.0-rc.2
zapcannon87 Sep 11, 2019
d997600
chore: resolve warnings for xcode 11
zapcannon87 Sep 11, 2019
5488982
chore: update git ignore
zapcannon87 Sep 11, 2019
deef067
chore: switch Alamofire's integration from git-submodule to SPM
zapcannon87 Sep 11, 2019
291a015
chore: switch SwiftProtobuf's integration from git-submodule to SPM
zapcannon87 Sep 11, 2019
db8b03a
chore: switch Starscream's integration from git-submodule to SPM
zapcannon87 Sep 11, 2019
5432218
chore: switch GRDB's integration from git-submodule to SPM
zapcannon87 Sep 11, 2019
a54080a
chore: tweak version restrictions of dependent library
zapcannon87 Sep 11, 2019
dbc5cf6
feat: support Swift Package Manager
zapcannon87 Sep 11, 2019
0317616
chore: delete unnecessary files
zapcannon87 Sep 11, 2019
fcfa50d
fix(IM): assertion abusing of client internal queue
zapcannon87 Sep 18, 2019
218510b
refactor: rename app router
zapcannon87 Sep 18, 2019
ae6b5d2
test: update case
zapcannon87 Sep 18, 2019
95d8e70
refactor: internal synchronizing
zapcannon87 Sep 20, 2019
6e6d7b2
refactor: http log
zapcannon87 Sep 20, 2019
89ad1cc
feat!: remove app router and fallback url of cn, ce, add server url f…
zapcannon87 Sep 20, 2019
e8ede25
test: update case
zapcannon87 Sep 20, 2019
b6d04ca
refactor: app router
zapcannon87 Sep 24, 2019
5792fb7
test: update app router case
zapcannon87 Sep 24, 2019
3a1f19c
refactor: app router
zapcannon87 Sep 24, 2019
24b11fc
test: update app router case
zapcannon87 Sep 24, 2019
50fa437
refactor: application
zapcannon87 Sep 24, 2019
88a33f2
test: update application case
zapcannon87 Sep 24, 2019
bd2bed1
refactor: current installation
zapcannon87 Sep 25, 2019
6828eca
test: update case of current installation
zapcannon87 Sep 25, 2019
96e4a82
refactor: tweak code
zapcannon87 Sep 25, 2019
992c0f7
test: update case
zapcannon87 Sep 25, 2019
5ff9886
feat!: use struct wrap version
zapcannon87 Sep 25, 2019
fce65c1
feat!: rename subspec of pod & tweak file organization
zapcannon87 Sep 25, 2019
99486ed
feat(IM): change access level of default media message to open
zapcannon87 Sep 25, 2019
3957ec3
release: 17.0.0-beta.2
zapcannon87 Sep 25, 2019
6e4dc06
merge master
zapcannon87 Sep 25, 2019
1ab227d
release: 17.0.0-beta.3
zapcannon87 Sep 25, 2019
25711a8
fix(storage): deadlock of LCFile's sync save function
zapcannon87 Sep 25, 2019
a472299
test: add case for file
zapcannon87 Sep 25, 2019
21c32af
refactor: make object save function overwritable
zapcannon87 Sep 25, 2019
0623798
refactor: add completion queue for file saving
zapcannon87 Sep 25, 2019
0970e60
refactor: tweak file saving of message
zapcannon87 Sep 25, 2019
951c322
fix(IM): priority of token and signature when opening
zapcannon87 Oct 8, 2019
4d10f44
fix(IM): signature for member changing and blacklist not support tran…
zapcannon87 Oct 8, 2019
b55b66f
fix(IM): make member managing of chat room available
zapcannon87 Oct 8, 2019
d74f348
chore: upgrade SwiftProtobuf to 1.7.0
zapcannon87 Oct 8, 2019
eaa9313
release: 17.0.0
zapcannon87 Oct 8, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 45 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
# Local Config
script_config.json

# macOS
*.DS_Store

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
*.DS_Store
build/
DerivedData
## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## Various settings
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -19,17 +27,17 @@ DerivedData
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata

## Other
*.xccheckout
*.moved-aside
*.xcuserstate
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
Expand All @@ -39,6 +47,14 @@ playground.xcworkspace
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

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

# Carthage
#
Expand All @@ -56,12 +75,25 @@ playground.xcworkspace

Carthage/Build

# Accio dependency management
Dependencies/
.accio/

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/screenshots
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
12 changes: 0 additions & 12 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +0,0 @@
[submodule "Alamofire"]
path = Alamofire
url = https://github.com/Alamofire/Alamofire.git
[submodule "SwiftProtobuf"]
path = SwiftProtobuf
url = https://github.com/apple/swift-protobuf.git
[submodule "Starscream"]
path = Starscream
url = https://github.com/daltoniam/Starscream.git
[submodule "fmdb"]
path = fmdb
url = https://github.com/ccgus/fmdb.git
1 change: 0 additions & 1 deletion Alamofire
Submodule Alamofire deleted from 75bba5
22 changes: 11 additions & 11 deletions LeanCloud.podspec
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
Pod::Spec.new do |s|
s.name = 'LeanCloud'
s.version = '16.5.1'
s.version = '17.0.0'
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' }
s.summary = 'LeanCloud Swift SDK'
s.homepage = 'https://leancloud.cn/'
s.authors = 'LeanCloud'
s.source = { :git => 'https://github.com/leancloud/swift-sdk.git', :tag => s.version }
s.swift_version = '5.0'

s.ios.deployment_target = '8.0'
s.ios.deployment_target = '10.0'
s.osx.deployment_target = '10.12'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '3.0'

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

ss.source_files = 'Sources/Storage/**/*.{swift}'
ss.source_files = 'Sources/Foundation/**/*.{swift}'
end

s.subspec 'IM' do |ss|
ss.dependency 'SwiftProtobuf', '~> 1.6.0'
ss.dependency 'Starscream', '~> 3.1.0'
ss.dependency 'FMDB', '~> 2.7.0'
s.subspec 'RTM' do |ss|
ss.dependency 'SwiftProtobuf', '~> 1.7.0'
ss.dependency 'Starscream', '~> 3.1'
ss.dependency 'GRDB.swift', '~> 4.4'

ss.dependency 'LeanCloud/Storage'
ss.dependency 'LeanCloud/Foundation'

ss.source_files = 'Sources/IM/**/*.{swift}'
ss.source_files = 'Sources/RTM/**/*.{swift}'
end
end
725 changes: 168 additions & 557 deletions LeanCloud.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions LeanCloud.xcodeproj/xcshareddata/xcschemes/LeanCloud.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
LastUpgradeVersion = "1100"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,20 +26,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
codeCoverageEnabled = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8342FCC41C7B13A700C3CF15"
BuildableName = "LeanCloudTests.xctest"
BlueprintName = "LeanCloudTests"
ReferencedContainer = "container:LeanCloud.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
Expand All @@ -56,6 +44,18 @@
isEnabled = "YES">
</AdditionalOption>
</AdditionalOptions>
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8342FCC41C7B13A700C3CF15"
BuildableName = "LeanCloudTests.xctest"
BlueprintName = "LeanCloudTests"
ReferencedContainer = "container:LeanCloud.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand Down
20 changes: 10 additions & 10 deletions LeanCloud.xcodeproj/xcshareddata/xcschemes/LeanCloudTests.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
LastUpgradeVersion = "1100"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,8 +26,15 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
codeCoverageEnabled = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<AdditionalOptions>
<AdditionalOption
key = "NSZombieEnabled"
value = "YES"
isEnabled = "YES">
</AdditionalOption>
</AdditionalOptions>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -40,13 +47,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<AdditionalOptions>
<AdditionalOption
key = "NSZombieEnabled"
value = "YES"
isEnabled = "YES">
</AdditionalOption>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
LastUpgradeVersion = "1100"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -27,8 +27,6 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
Expand All @@ -38,8 +36,8 @@
ReferencedContainer = "container:LeanCloud.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -61,8 +59,6 @@
ReferencedContainer = "container:LeanCloud.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
Loading