Skip to content

Commit d9c0d40

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 7d5744e + 3b91401 commit d9c0d40

File tree

645 files changed

+32991
-2788
lines changed

Some content is hidden

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

645 files changed

+32991
-2788
lines changed

AsposeWordsCloud.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'AsposeWordsCloud'
3-
s.version = '20.11'
3+
s.version = '21.1'
44
s.summary = 'Aspose Words for Cloud.'
55
s.homepage = 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git'
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ This repository contains Aspose.Words Cloud SDK for Swift source code. This SDK
1313
* Watermarks and protection
1414
* Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others
1515

16+
## Enhancements in Version 21.1
17+
18+
- Added online version for all API methods
19+
20+
1621
## Enhancements in Version 20.11
1722

1823
- In configuration json file appSid / appKey has been replaced to clientId / clientSecret.
@@ -105,7 +110,7 @@ Add link to this repository as dependency to your Package.swift:
105110

106111
dependencies: [
107112
// Dependencies declare other packages that this package depends on.
108-
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "20.11"),
113+
.package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "21.1"),
109114
],
110115
targets: [
111116
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -123,7 +128,7 @@ targets: [
123128
Add link to git repository as dependency to your Podfile:
124129

125130
```ruby
126-
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '20.11'
131+
pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '21.1'
127132
```
128133

129134
## Getting Started

Sources/AsposeWordsCloud/Api/ApiInvoker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="ApiInvoker.swift">
4-
* Copyright (c) 2020 Aspose.Words for Cloud
4+
* Copyright (c) 2021 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

Sources/AsposeWordsCloud/Api/Configuration.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="Configuration.swift">
4-
* Copyright (c) 2020 Aspose.Words for Cloud
4+
* Copyright (c) 2021 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -117,6 +117,6 @@ public class Configuration : Codable {
117117

118118
// Returns SDK version for using in statistics headers
119119
public func getSdkVersion() -> String {
120-
return "20.11";
120+
return "21.1";
121121
}
122122
}

Sources/AsposeWordsCloud/Api/ObjectSerializer.swift

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="ObjectSerializer.swift">
4-
* Copyright (c) 2020 Aspose.Words for Cloud
4+
* Copyright (c) 2021 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -176,6 +176,39 @@ class ObjectSerializer {
176176
return result;
177177
}
178178

179+
// Get multipart by name
180+
public static func getMultipartByName(multipart: [ResponseFormParam], name: String) throws -> ResponseFormParam {
181+
for part in multipart {
182+
let disposition = part.getHeaders()["Content-Disposition"];
183+
if (disposition == nil) {
184+
continue;
185+
}
186+
187+
var partName: String? = nil;
188+
for componentRawData in disposition!.components(separatedBy: ";") {
189+
let componentData = componentRawData.trimmingCharacters(in: .whitespacesAndNewlines);
190+
if (!componentData.isEmpty) {
191+
let componentDataParts = componentData.split(separator: "=");
192+
if (componentDataParts.count == 2) {
193+
let componentKey = componentDataParts[0].trimmingCharacters(in: .whitespaces);
194+
let componentValue = componentDataParts[1].trimmingCharacters(in: .whitespaces);
195+
if (componentKey == "name") {
196+
partName = componentValue;
197+
break;
198+
}
199+
}
200+
}
201+
}
202+
203+
if (partName != nil && partName == name)
204+
{
205+
return part;
206+
}
207+
}
208+
209+
throw WordsApiError.invalidMultipartResponse(message: "Part " + name + " not found in multipart data.");
210+
}
211+
179212
// Split data into parts
180213
public static func splitData(data: Data, separator: Data) -> [Data] {
181214
let endIndex = separator.count;

Sources/AsposeWordsCloud/Api/RequestFormParam.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="RequestFormParam.swift">
4-
* Copyright (c) 2020 Aspose.Words for Cloud
4+
* Copyright (c) 2021 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

Sources/AsposeWordsCloud/Api/ResponseFormParam.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="ResponseFormParam.swift">
4-
* Copyright (c) 2020 Aspose.Words for Cloud
4+
* Copyright (c) 2021 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)