Skip to content

Commit

Permalink
V 4.0.0 (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
marinofaggiana authored Jul 9, 2024
1 parent 5ab160f commit ef859ec
Show file tree
Hide file tree
Showing 33 changed files with 1,828 additions and 2,174 deletions.
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Marino Faggiana <[email protected]>
All contributors can be viewed at https://github.com/nextcloud/NextcloudKit/graphs/contributors
13 changes: 13 additions & 0 deletions COPYING.iOS
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
The NextcloudKit developers are aware that the terms of service that
apply to apps distributed via Apple's App Store services may conflict
with rights granted under the NextcloudKit license, the GNU General
Public License, version 3 or (at your option) any later version. The
copyright holders of the NextcloudKit do not wish this conflict
to prevent the otherwise-compliant distribution of derived apps via
the App Store. Therefore, we have committed not to pursue any license
violation that results solely from the conflict between the GNU GPLv3
or any later version and the Apple App Store terms of service. In
other words, as long as you comply with the GPL in all other respects,
including its requirements to provide users with source code and the
text of the license, we will not object to your distribution of the
NextcloudKit through the App Store.
674 changes: 674 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

78 changes: 38 additions & 40 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,43 +1,41 @@
{
"object": {
"pins": [
{
"package": "Alamofire",
"repositoryURL": "https://github.com/Alamofire/Alamofire",
"state": {
"branch": null,
"revision": "3dc6a42c7727c49bf26508e29b0a0b35f9c7e1ad",
"version": "5.8.1"
}
},
{
"package": "Mocker",
"repositoryURL": "https://github.com/WeTransfer/Mocker.git",
"state": {
"branch": null,
"revision": "5d86f27a8f80d4ba388bc1a379a3c2289a1f3d18",
"version": "2.6.0"
}
},
{
"package": "SwiftyJSON",
"repositoryURL": "https://github.com/SwiftyJSON/SwiftyJSON",
"state": {
"branch": null,
"revision": "b3dcd7dbd0d488e1a7077cb33b00f2083e382f07",
"version": "5.0.1"
}
},
{
"package": "SwiftyXMLParser",
"repositoryURL": "https://github.com/yahoojapan/SwiftyXMLParser",
"state": {
"branch": null,
"revision": "d7a1d23f04c86c1cd2e8f19247dd15d74e0ea8be",
"version": "5.6.0"
}
"pins" : [
{
"identity" : "alamofire",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Alamofire/Alamofire",
"state" : {
"revision" : "f455c2975872ccd2d9c81594c658af65716e9b9a",
"version" : "5.9.1"
}
]
},
"version": 1
},
{
"identity" : "mocker",
"kind" : "remoteSourceControl",
"location" : "https://github.com/WeTransfer/Mocker.git",
"state" : {
"revision" : "5d86f27a8f80d4ba388bc1a379a3c2289a1f3d18",
"version" : "2.6.0"
}
},
{
"identity" : "swiftyjson",
"kind" : "remoteSourceControl",
"location" : "https://github.com/SwiftyJSON/SwiftyJSON",
"state" : {
"revision" : "af76cf3ef710b6ca5f8c05f3a31307d44a3c5828",
"version" : "5.0.2"
}
},
{
"identity" : "swiftyxmlparser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/yahoojapan/SwiftyXMLParser",
"state" : {
"revision" : "d7a1d23f04c86c1cd2e8f19247dd15d74e0ea8be",
"version" : "5.6.0"
}
}
],
"version" : 2
}
92 changes: 0 additions & 92 deletions Sources/NextcloudKit/API/NextcloudKit+API_Async.swift

This file was deleted.

144 changes: 0 additions & 144 deletions Sources/NextcloudKit/E2EE/NextcloudKit+E2EE_Async.swift

This file was deleted.

4 changes: 2 additions & 2 deletions Sources/NextcloudKit/Extensions/Image+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public extension NSImage {
return nil
}

func resizeImage(size: CGSize, isAspectRation: Bool) -> NSImage? {
func resizeImage(size: CGSize, isAspectRation: Bool = true) -> NSImage? {
if let bitmapRep = NSBitmapImageRep(
bitmapDataPlanes: nil, pixelsWide: Int(size.width), pixelsHigh: Int(size.height),
bitsPerSample: 8, samplesPerPixel: 4, hasAlpha: true, isPlanar: false,
Expand All @@ -78,7 +78,7 @@ public extension NSImage {
import UIKit

extension UIImage {
internal func resizeImage(size: CGSize, isAspectRation: Bool) -> UIImage? {
internal func resizeImage(size: CGSize, isAspectRation: Bool = true) -> UIImage? {
let originRatio = self.size.width / self.size.height
let newRatio = size.width / size.height
var newSize = size
Expand Down
1 change: 0 additions & 1 deletion Sources/NextcloudKit/Extensions/String+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import Foundation
import Alamofire

extension String {

public var urlEncoded: String? {
// + for historical reason, most web servers treat + as a replacement of whitespace
// ?, & mark query pararmeter which should not be part of a url string, but added seperately
Expand Down
Loading

0 comments on commit ef859ec

Please sign in to comment.